org.wicketstuff.yui.helper
Class Attributes

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<Attributes>
              extended by 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
static Attributes DELAY
           
 
Constructor Summary
Attributes()
          Construct an Empty Attribute
Attributes(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, JavascriptObject json)
           
Attributes(String element, String value)
          constructor.
Attributes(String element1, String value1, String element2, String value2)
          constructor for 2 elements
 
Method Summary
 Attributes add(String element, float float_value)
          allow adding of int values
 Attributes add(String element, int int_value)
          allow adding of int values
 boolean isEmpty()
           
 
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:
add in class NameValuePair<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:


Copyright © 2013. All Rights Reserved.