|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.taco.data.ObservableMap.ValueElement
protected static class ObservableMap.ValueElement
The data structure that is used for map values. It contains both the original value to be map, and a collection of listeners for the associated key.
Field Summary | |
---|---|
protected java.util.Collection |
_listeners
A collection of instances of PropertyChangeListener
that listen to changes to the value mapped from the associated key. |
protected java.lang.Object |
_value
The value actually mapped to the associated key. |
Constructor Summary | |
---|---|
protected |
ObservableMap.ValueElement(java.lang.Object value)
|
Method Summary | |
---|---|
void |
addListener(java.beans.PropertyChangeListener listener)
Add the listener to the listener list. |
java.lang.Object |
clone()
|
java.util.Collection |
getListeners()
Return the list of listeners of changes to the associated key. |
java.lang.Object |
getValue()
Return the mapped value. |
void |
removeListener(java.beans.PropertyChangeListener listener)
Try to remove the listener from the listener list. |
void |
setListeners(java.util.Collection c)
Set the listeners of changes to the associated key. |
java.lang.Object |
setValue(java.lang.Object value)
Set the mapped value to the argument, returning the old value. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.Object _value
protected java.util.Collection _listeners
PropertyChangeListener
that listen to changes to the value mapped from the associated key.
Constructor Detail |
---|
protected ObservableMap.ValueElement(java.lang.Object value)
Method Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public java.lang.Object getValue()
public java.lang.Object setValue(java.lang.Object value)
public void addListener(java.beans.PropertyChangeListener listener)
public void removeListener(java.beans.PropertyChangeListener listener)
public java.util.Collection getListeners()
public void setListeners(java.util.Collection c)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |