org.wicketstuff.yui.helper
Class JSObject<T>

java.lang.Object
  extended by org.wicketstuff.yui.helper.TokenSeparatedValues
      extended by org.wicketstuff.yui.helper.NameValuePair<T>
          extended by org.wicketstuff.yui.helper.JSObject<T>
All Implemented Interfaces:
Serializable, JavascriptObject
Direct Known Subclasses:
Attributes

public class JSObject<T>
extends NameValuePair<T>
implements JavascriptObject

a Javascript Object "{name: value, name1 : value1}" TODO : Use JSON ??

Author:
josh
See Also:
Serialized Form

Constructor Summary
JSObject()
          construct.
 
Method Summary
 JavascriptObject add(String string)
           
 JSObject add(String name, JavascriptObject object)
           
 String getNameValueSeparator()
           
 String getPrefix()
          the prefix
 String getSuffix()
          the suffix
 String getValueSeparator()
          the separator value
 
Methods inherited from class org.wicketstuff.yui.helper.NameValuePair
add, add, add, getValues, isValid, wrapValue
 
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

JSObject

public JSObject()
construct.

Method Detail

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:

getNameValueSeparator

public String getNameValueSeparator()
Specified by:
getNameValueSeparator in class NameValuePair<T>
Returns:

add

public JSObject add(String name,
                    JavascriptObject object)

add

public JavascriptObject add(String string)
Specified by:
add in interface JavascriptObject


Copyright © 2013. All Rights Reserved.