com.plumtree.xpshared.htmlconstructs
Class ConstructStaticHelpers

java.lang.Object
  extended by com.plumtree.xpshared.htmlconstructs.ConstructStaticHelpers

public class ConstructStaticHelpers
extends java.lang.Object

This class contains static methods that generate HTMLElements.


Field Summary
static java.lang.String BLANK_URL
          This should be used whenever you need a blank URL (such as when you have a javascript onClick and the URL should never be called).
 
Constructor Summary
ConstructStaticHelpers()
           
 
Method Summary
static HTMLAnchor GetJavascriptAnchor(java.lang.String strJavascript)
          Static method to create a javascript onclick anchor.
static HTMLAnchor GetJavascriptAnchor(java.lang.String strText, java.lang.String strJavascript)
          Static method to create a javascript onclick anchor.
static HTMLAnchor GetJavascriptAnchorReturnFunctionValue(java.lang.String strText, java.lang.String strJavascript)
          Static method to create a javascript onclick anchor.
static HTMLAnchor GetJavascriptAnchorReturnTrue(java.lang.String strText, java.lang.String strJavascript)
          Static method to create a javascript onclick anchor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BLANK_URL

public static final java.lang.String BLANK_URL
This should be used whenever you need a blank URL (such as when you have a javascript onClick and the URL should never be called). This should always be used because it may redirect to a no-javascript error page in the future.

See Also:
Constant Field Values
Constructor Detail

ConstructStaticHelpers

public ConstructStaticHelpers()
Method Detail

GetJavascriptAnchor

public static HTMLAnchor GetJavascriptAnchor(java.lang.String strJavascript)
Static method to create a javascript onclick anchor. This version returns false, and adds no text to be displayed in the anchor. This is the most common case.

Parameters:
String - strJavascript the text for the javascript OnClick method without trailing semicolon or return (will be added)

GetJavascriptAnchor

public static HTMLAnchor GetJavascriptAnchor(java.lang.String strText,
                                             java.lang.String strJavascript)
Static method to create a javascript onclick anchor. This version returns false. This is the most common case.

Parameters:
String - strText the text to be displayed in the Anchor
String - strJavascript the text for the javascript OnClick method without trailing semicolon or return (will be added)

GetJavascriptAnchorReturnTrue

public static HTMLAnchor GetJavascriptAnchorReturnTrue(java.lang.String strText,
                                                       java.lang.String strJavascript)
Static method to create a javascript onclick anchor. This version returns true.

Parameters:
String - strText the text to be displayed in the Anchor
String - strJavascript the text for the javascript OnClick method without trailing semicolon or return (will be added)

GetJavascriptAnchorReturnFunctionValue

public static HTMLAnchor GetJavascriptAnchorReturnFunctionValue(java.lang.String strText,
                                                                java.lang.String strJavascript)
Static method to create a javascript onclick anchor. This version returns the return value of the javascript function.

Parameters:
String - strText the text to be displayed in the Anchor
String - strJavascript the text for the javascript OnClick method without trailing semicolon or return (will be added)



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.