Uiinfrastructure API Docs  
 

JSHelper Members

JSHelper overview

Public Static Fields

iconiconALIDOJO_OBJECT rob: Initialized in common-jsdojo build bea/dnd/dnd.js, probably should move to init.js *
iconiconSAFEJSVAR_CONTAINER_NAME Name of the safe javascript var container variable *

Public Static Methods

iconiconAddSafeJSVariable Helper function to define a safe javascript variable. The safe variable will be defined in its on javascript block, so it won't affect any other javascript if the assigned value is invalid. Reference it by using the javascript getSafeVariable or getSafeVariableWarn helper functions or GetSafeJSVariable or GetSafeJSVariableWarn java helper functions to generate the javascript calls. NOTE: The strValue is the string with the javascript value so don't surround it with quotes unless you want the value to be a string. E.g. strValue = "new Object()" - will assign a new object to the variable while strValue = "'new Object()'" - will assign the string 'new Object()'
iconiconescapeJS Escape JavaScript strings.
iconiconGetSafeJSVariable Helper function to retrieve a safe javascript variable. The javascript function will return false if it is unable to get the variable.
iconiconGetSafeJSVariableWarn Helper function to retrieve a safe javascript variable. The javascript function will show a javascript alert error with the name of the variable. Use for critical variables that absolutely need to be defined.
iconiconInitializeSafeJSVarElements Create the container to hold the safe variables. The container is just a javascript object and we but the vars on it as object properties.
iconiconJSEncodeString Escape single and double quotes, neccessary for javascript variable values.

Public Instance Constructors

icon JSHelper Constructor Initializes a new instance of the JSHelper class.

Public Instance Methods

iconEquals (inherited from Object)Determines whether the specified Object is equal to the current Object.
iconGetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
iconGetType (inherited from Object)Gets the Type of the current instance.
iconToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Methods

iconFinalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
iconMemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

JSHelper Class | com.plumtree.uiinfrastructure.statichelpers Namespace