|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.javascript.JavaScriptUtil
Helper Class for JavaScript Resources
Constructor Summary | |
private |
JavaScriptUtil()
Constructor |
Method Summary | |
static java.lang.String |
createStringArrayLiteral(java.lang.String[] arr)
Creates a String representation to initialize a JavaScript array. |
static java.lang.String |
createStringLiteral(int value)
Creates a JavaScript String literal |
static java.lang.String |
createStringLiteral(java.lang.Object value)
Creates a JavaScript String literal |
static java.lang.String |
doCreateJSImage(java.lang.String resourceId,
ImageModel imageModel)
Creates a Javascript Icon Object which is used to generate images |
static java.lang.String |
escapeString(java.lang.Object raw)
Creates a String representation that is compatible with JavaScript syntax |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
private JavaScriptUtil()
Method Detail |
public static java.lang.String doCreateJSImage(java.lang.String resourceId, ImageModel imageModel)
resourceId
- The id for this resourceimageModel
- The image model, containing the information from the
registered image
public static java.lang.String createStringArrayLiteral(java.lang.String[] arr)
Example ['item1', 'item2', ... , 'itemN']
arr
- The array which should be transformed into a String
public static java.lang.String escapeString(java.lang.Object raw)
raw
- The string which should be transformed into a Java Script
String
public static java.lang.String createStringLiteral(int value)
value
- value
public static java.lang.String createStringLiteral(java.lang.Object value)
value
- value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |