|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gwtopenmaps.openlayers.client.util.JSObjectWrapper
org.gwtopenmaps.openlayers.client.util.Attributes
public class Attributes
Class to hold arbitrary attributes. More constrained than JSObject.
Constructor Summary | |
---|---|
|
Attributes()
|
protected |
Attributes(JSObject jsObject)
|
Method Summary | |
---|---|
boolean |
getAttributeAsBoolean(String name)
Get the value of an attribute as a boolean. |
double |
getAttributeAsDouble(String name)
Get the value of an attribute as a double. |
float |
getAttributeAsFloat(String name)
Get the value of an attribute as a float. |
int |
getAttributeAsInt(String name)
Get the value of an attribute as an integer. |
String |
getAttributeAsString(String name)
Get the value of an attribute as a String |
Attributes |
getAttributes(String name)
Get a nested attribute object. |
static Attributes |
narrowToAttributes(JSObject attributes)
|
void |
setAttribute(String name,
Attributes attributes)
Allows nesting attribute objects. |
void |
setAttribute(String name,
boolean value)
Sets a boolean value to the arbitrary attribute. |
void |
setAttribute(String name,
double value)
Sets a double value to the arbitrary attribute. |
void |
setAttribute(String name,
float value)
Sets a float value to the arbitrary attribute. |
void |
setAttribute(String name,
int value)
Sets an integer value to the arbitrary attribute. |
void |
setAttribute(String name,
long value)
Sets a long value to the arbitrary attribute. |
void |
setAttribute(String name,
String value)
Sets a String value to the arbitrary attribute. |
Methods inherited from class org.gwtopenmaps.openlayers.client.util.JSObjectWrapper |
---|
getJSObject, setJSObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Attributes()
protected Attributes(JSObject jsObject)
Method Detail |
---|
public static Attributes narrowToAttributes(JSObject attributes)
public void setAttribute(String name, String value)
name
- - Name of the attributevalue
- - String value of the attributepublic void setAttribute(String name, int value)
name
- - Name of the attributevalue
- - Integer value of the attributepublic void setAttribute(String name, long value)
name
- - Name of the attributevalue
- - Long value of the attributepublic void setAttribute(String name, boolean value)
name
- Name of the attributevalue
- Value of the attributepublic void setAttribute(String name, float value)
name
- - Name of the attributevalue
- - Value of the attributepublic void setAttribute(String name, double value)
name
- - Name of the attributevalue
- - Value of the attributepublic void setAttribute(String name, Attributes attributes)
public String getAttributeAsString(String name)
name
- - name of the attribute
public int getAttributeAsInt(String name)
name
- - name of the attribute
public boolean getAttributeAsBoolean(String name)
name
- - name of the attribute
public float getAttributeAsFloat(String name)
name
- - name of the attribute
public double getAttributeAsDouble(String name)
name
- - name of the attribute
public Attributes getAttributes(String name)
name
- - name of the attribute holding the attributes object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |