Package org.wicketstuff.yui.helper
Class JSArray
- java.lang.Object
-
- org.wicketstuff.yui.helper.TokenSeparatedValues
-
- org.wicketstuff.yui.helper.JSArray
-
- All Implemented Interfaces:
Serializable,JavascriptObject
public class JSArray extends TokenSeparatedValues implements JavascriptObject
a Javascript Array "[value1, value2, value3]" TODO : Use JSON ?- Author:
- josh
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JSArrayadd(String value)JSArrayadd(JavascriptObject object)StringgetPrefix()the prefixStringgetSuffix()the suffixList<String>getValues()allow child to quoteStringgetValueSeparator()the separator valuevoidsetValues(List<String> values)-
Methods inherited from class org.wicketstuff.yui.helper.TokenSeparatedValues
toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.wicketstuff.yui.helper.JavascriptObject
toString
-
-
-
-
Method Detail
-
add
public JSArray add(String value)
- Specified by:
addin interfaceJavascriptObject
-
add
public JSArray add(JavascriptObject object)
-
getPrefix
public String getPrefix()
Description copied from class:TokenSeparatedValuesthe prefix- Specified by:
getPrefixin classTokenSeparatedValues- Returns:
-
getSuffix
public String getSuffix()
Description copied from class:TokenSeparatedValuesthe suffix- Specified by:
getSuffixin classTokenSeparatedValues- Returns:
-
getValueSeparator
public String getValueSeparator()
Description copied from class:TokenSeparatedValuesthe separator value- Specified by:
getValueSeparatorin classTokenSeparatedValues- Returns:
-
getValues
public List<String> getValues()
Description copied from class:TokenSeparatedValuesallow child to quote- Specified by:
getValuesin classTokenSeparatedValues- Returns:
-
-