Class JsUtils
java.lang.Object
org.wicketstuff.wiquery.core.javascript.JsUtils
$Id: JsUtils.java 1714 2011-09-22 20:38:30Z hielke.hoeve $
Helper class to ease JavaScript integration.
- Since:
- 0.7
- Author:
- Lionel Armanet
-
Method Summary
Modifier and TypeMethodDescriptionstatic CharSequencearray(CharSequence... args) static StringdoubleQuotes(CharSequence stringToDoubleQuote) Double quotes the given string (eg.static StringdoubleQuotes(CharSequence stringToDoubleQuote, boolean escapeDoubleQuote) Double quotes the given string (eg.static StringescapeDoubleQuote(CharSequence stringToDoubleQuote) static StringescapeQuote(CharSequence stringToQuote) static Stringimplode(EventLabel... eventLabels) Converts the given array ofEventLabelto aString.static Stringquotes(CharSequence stringToQuote) Quotes the given string (eg.static Stringquotes(CharSequence stringToQuote, boolean escapeQuote) Quotes the given string (eg.static Stringstring(int value) Converts an int to a String.
-
Method Details
-
array
- Returns:
- a javascript representation of the array
-
doubleQuotes
Double quotes the given string (eg. makes a JavaScript String). -
doubleQuotes
Double quotes the given string (eg. makes a JavaScript String). -
escapeDoubleQuote
- Returns:
- the sequence with escaped double quotes
-
escapeQuote
- Returns:
- the sequence with escaped quotes
-
implode
Converts the given array ofEventLabelto aString. -
quotes
Quotes the given string (eg. makes a JavaScript String). -
quotes
Quotes the given string (eg. makes a JavaScript String). -
string
Converts an int to a String. (common alias of valueOf).
-