Modifier and Type | Field and Description |
---|---|
protected java.util.HashMap<java.lang.String,java.lang.Object> |
properties |
Constructor and Description |
---|
Properties() |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyListener(PropertyListener listener)
Registers the specified property listener to this node.
|
java.lang.Object |
getProperty(java.lang.String key)
Returns the property stored under the specified key.
|
boolean |
hasProperty(java.lang.String key)
Returns the property stored under the specified key.
|
void |
removeProperty(java.lang.String key)
Removes the specified property.
|
void |
removePropertyListener(PropertyListener listener)
Unregisters the specified property listener for this node.
|
void |
setProperty(java.lang.String key,
java.lang.Object value)
Stores the specified property (value) under the specified name
(key).
|
public void addPropertyListener(PropertyListener listener)
listener
- The movement listener.public void removePropertyListener(PropertyListener listener)
listener
- The property listener.public java.lang.Object getProperty(java.lang.String key)
key
- The property key.Object
corresponding to the provided keypublic void setProperty(java.lang.String key, java.lang.Object value)
key
- The property name.value
- The property value.public void removeProperty(java.lang.String key)
key
- The property key.public boolean hasProperty(java.lang.String key)
key
- The property key.