Package org.wicketstuff.yui.helper
Class Attributes
- java.lang.Object
-
- org.wicketstuff.yui.helper.TokenSeparatedValues
-
- org.wicketstuff.yui.helper.NameValuePair<T>
-
- org.wicketstuff.yui.helper.JSObject<Attributes>
-
- org.wicketstuff.yui.helper.Attributes
-
- All Implemented Interfaces:
Serializable,JavascriptObject
public class Attributes extends JSObject<Attributes>
Attributes is a Javascript Object TODO : need to clean up- Author:
- josh
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static AttributesDELAY
-
Constructor Summary
Constructors Constructor Description Attributes()Construct an Empty AttributeAttributes(String element, boolean b)Attributes(String element, float value)Attributes(String element, float from, float to)Attributes(String element1, float float1, String element2, float float2)Attributes(String element, int value)Attributes(String element, int from, int to)Attributes(String element1, int int1, String element2, int int2)Attributes(String element, String value)constructor.Attributes(String element1, String value1, String element2, String value2)constructor for 2 elementsAttributes(String element, JavascriptObject json)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Attributesadd(String element, float float_value)allow adding of int valuesAttributesadd(String element, int int_value)allow adding of int valuesbooleanisEmpty()-
Methods inherited from class org.wicketstuff.yui.helper.JSObject
add, add, getNameValueSeparator, getPrefix, getSuffix, getValueSeparator
-
Methods inherited from class org.wicketstuff.yui.helper.NameValuePair
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
-
-
-
-
Field Detail
-
DELAY
public static Attributes DELAY
-
-
Constructor Detail
-
Attributes
public Attributes()
Construct an Empty Attribute
-
Attributes
public Attributes(String element, String value)
constructor. Adds a single value- Parameters:
element-value-
-
Attributes
public Attributes(String element, int value)
- Parameters:
element-value-
-
Attributes
public Attributes(String element, float value)
- Parameters:
element-value-
-
Attributes
public Attributes(String element1, String value1, String element2, String value2)
constructor for 2 elements- Parameters:
element1-value1-element2-value2-
-
Attributes
public Attributes(String element1, int int1, String element2, int int2)
- Parameters:
element1-int1-element2-int2-
-
Attributes
public Attributes(String element1, float float1, String element2, float float2)
- Parameters:
element1-float1-element2-float2-
-
Attributes
public Attributes(String element, JavascriptObject json)
- Parameters:
element-json-
-
Attributes
public Attributes(String element, int from, int to)
- Parameters:
element-from-to-
-
Attributes
public Attributes(String element, float from, float to)
- Parameters:
element-from-to-
-
Attributes
public Attributes(String element, boolean b)
-
-
Method Detail
-
add
public Attributes add(String element, int int_value)
allow adding of int values- Overrides:
addin classNameValuePair<Attributes>- Parameters:
element-int_value-- Returns:
-
add
public Attributes add(String element, float float_value)
allow adding of int values- Parameters:
element-float_value-
-
isEmpty
public boolean isEmpty()
- Returns:
-
-