|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsonification.dataimport.visbards_resourcetoolkit.model.DefaultPropertyContainer
public class DefaultPropertyContainer
| Constructor Summary | |
|---|---|
DefaultPropertyContainer(boolean allowNulls)
Initialize the property container. |
|
| Method Summary | |
|---|---|
void |
addListener(PropertyContainerListener listener)
Registers a listener. |
boolean |
allowsNulls()
Returns true if this container allows nulls. |
void |
arrowAdded(ArrowManager source)
Indicates that an arrow has been added. |
void |
arrowRemoved(ArrowManager source,
int idx)
Indicates that an arrow at index idx has been removed. |
void |
categoryAdded(CategoryPool source,
Category cat)
Indicates that a category has been added to the system. |
void |
categoryRemoved(CategoryPool source,
Category cat)
Indicates that a category has been removed from the system. |
void |
dispose()
Unregisters and cleans up. |
protected void |
firePropertyChangedEvent(Property prop)
Send a general event to all listeners. |
Property[] |
getAllProperties()
Returns all the currently existing properties. |
java.lang.String |
getHolderID()
Returns a string which identifies this object uniquely. |
java.lang.Object |
getPropertyValue(Property prop)
Return the value for a particular visual property |
java.util.HashMap |
getSettings()
Returns a hashmap of settings (strings) which represent the current object state, and are keyed by string names. |
boolean |
hasProperty(Property prop)
Returns true if this container has the property. |
void |
removeListener(PropertyContainerListener listener)
Unregisters a listener. |
void |
setPropertyValue(Property prop,
java.lang.Object val)
Change the visual property to a given value. |
void |
setSettings(java.util.HashMap settings)
Changes the settings of this object to match the settings in the specified hashmap. |
static java.lang.Object |
stringToVal(Property prop,
java.lang.String val)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultPropertyContainer(boolean allowNulls)
| Method Detail |
|---|
public void setPropertyValue(Property prop,
java.lang.Object val)
PropertyContainer
setPropertyValue in interface PropertyContainerpublic java.lang.Object getPropertyValue(Property prop)
getPropertyValue in interface PropertyContainer
public static java.lang.Object stringToVal(Property prop,
java.lang.String val)
public void categoryAdded(CategoryPool source,
Category cat)
categoryAdded in interface CategoryPoolListener
public void categoryRemoved(CategoryPool source,
Category cat)
categoryRemoved in interface CategoryPoolListenerpublic void arrowAdded(ArrowManager source)
arrowAdded in interface ArrowManagerListener
public void arrowRemoved(ArrowManager source,
int idx)
arrowRemoved in interface ArrowManagerListenerpublic void dispose()
dispose in interface PropertyContainerpublic Property[] getAllProperties()
getAllProperties in interface PropertyContainerpublic boolean allowsNulls()
allowsNulls in interface PropertyContainerpublic java.util.HashMap getSettings()
getSettings in interface SettingsHolderpublic void setSettings(java.util.HashMap settings)
setSettings in interface SettingsHolderpublic boolean hasProperty(Property prop)
hasProperty in interface PropertyContainerprotected void firePropertyChangedEvent(Property prop)
public void addListener(PropertyContainerListener listener)
addListener in interface PropertyContainerpublic void removeListener(PropertyContainerListener listener)
removeListener in interface PropertyContainerpublic java.lang.String getHolderID()
getHolderID in interface SettingsHolder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||