Package org.wicketstuff.yui.helper
Class NameValuePair<T>
- java.lang.Object
-
- org.wicketstuff.yui.helper.TokenSeparatedValues
-
- org.wicketstuff.yui.helper.NameValuePair<T>
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CSSInlineStyle,JSObject
public abstract class NameValuePair<T> extends TokenSeparatedValues
This is the abstract class that helps to generate the notations for name pairs 1. Inline Styles. eg. padding:1px ; color:#FF0000; 2. Javscript Objects. eg. {name:"josh" , age : "44"} as both are the same thing except it is used at different points (1) in "style=" and (2) in javascript this abstract class handles the basic concatenation of these name/value pairs and generate the "dhtml"- Author:
- josh
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NameValuePair()construct
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Tadd(String element, int int_value)Tadd(String element, Object object)Tadd(NameValuePair another)abstract StringgetNameValueSeparator()List<String>getValues()allow child to quotebooleanisValid(String key, Object value)protected StringwrapValue(String value)-
Methods inherited from class org.wicketstuff.yui.helper.TokenSeparatedValues
getPrefix, getSuffix, getValueSeparator, toString
-
-
-
-
Method Detail
-
add
public T add(NameValuePair another)
-
getValues
public List<String> getValues()
Description copied from class:TokenSeparatedValuesallow child to quote- Specified by:
getValuesin classTokenSeparatedValues- Returns:
-
getNameValueSeparator
public abstract String getNameValueSeparator()
- Returns:
-
-