|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.util.DockProperties.Entry<A>
A
- the type of the valueprivate class DockProperties.Entry<A>
An entry that contains key, listeners and a value.
Field Summary | |
---|---|
private PropertyKey<A> |
key
the name of this entry |
private java.util.List<DockPropertyListener<A>> |
listeners
listeners to this entry |
private A |
value
the value stored in this entry |
Constructor Summary | |
---|---|
private |
DockProperties.Entry()
|
Method Summary | |
---|---|
void |
addListener(DockPropertyListener<A> listener)
Adds a new listener to this entry. |
PropertyKey<A> |
getKey()
Gets the name of this entry. |
A |
getValue()
Gets the value of this entry. |
boolean |
removeable()
Tells whether this entry is needed any longer or not. |
void |
removeListener(DockPropertyListener<A> listener)
Removes a listener from this entry. |
void |
setValue(A value)
Sets the new value of this entry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private PropertyKey<A> key
private java.util.List<DockPropertyListener<A>> listeners
private A value
Constructor Detail |
---|
private DockProperties.Entry()
Method Detail |
---|
public void setValue(A value)
value
- the new valuepublic A getValue()
public PropertyKey<A> getKey()
public void addListener(DockPropertyListener<A> listener)
listener
- the new listenerpublic void removeListener(DockPropertyListener<A> listener)
listener
- the listener to removepublic boolean removeable()
true
if this entry can be deleted safely.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |