org.wicketstuff.yui.helper
Class JSArray

java.lang.Object
  extended by org.wicketstuff.yui.helper.TokenSeparatedValues
      extended by 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

Constructor Summary
JSArray()
          construct.
JSArray(int... int_values)
           
JSArray(List<String> array)
          constructor for a list of array
JSArray(String[] javaArray)
           
 
Method Summary
 JSArray add(JavascriptObject object)
           
 JSArray add(String value)
           
 String getPrefix()
          the prefix
 String getSuffix()
          the suffix
 List<String> getValues()
          allow child to quote
 String getValueSeparator()
          the separator value
 void setValues(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
 

Constructor Detail

JSArray

public JSArray()
construct.


JSArray

public JSArray(List<String> array)
constructor for a list of array

Parameters:
array -

JSArray

public JSArray(int... int_values)
Parameters:
int_values -

JSArray

public JSArray(String[] javaArray)
Method Detail

add

public JSArray add(String value)
Specified by:
add in interface JavascriptObject

add

public JSArray add(JavascriptObject object)

getPrefix

public String getPrefix()
Description copied from class: TokenSeparatedValues
the prefix

Specified by:
getPrefix in class TokenSeparatedValues
Returns:

getSuffix

public String getSuffix()
Description copied from class: TokenSeparatedValues
the suffix

Specified by:
getSuffix in class TokenSeparatedValues
Returns:

getValueSeparator

public String getValueSeparator()
Description copied from class: TokenSeparatedValues
the separator value

Specified by:
getValueSeparator in class TokenSeparatedValues
Returns:

getValues

public List<String> getValues()
Description copied from class: TokenSeparatedValues
allow child to quote

Specified by:
getValues in class TokenSeparatedValues
Returns:

setValues

public void setValues(List<String> values)


Copyright © 2013. All Rights Reserved.