|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.IconManager.Entry
private class IconManager.Entry
A set of icons with different priority and a set of listeners.
Field Summary | |
---|---|
private javax.swing.Icon[] |
icons
|
private java.lang.String |
key
|
private java.util.List<IconManagerListener> |
listeners
|
Constructor Summary | |
---|---|
IconManager.Entry(java.lang.String key)
Creates a new entry. |
Method Summary | |
---|---|
void |
add(IconManagerListener listener)
Adds a listener to this entry |
javax.swing.Icon |
getIcon()
Gets the current icon of this entry. |
void |
remove(IconManagerListener listener)
Removes a listener from this entry |
void |
set(Priority priority,
javax.swing.Icon icon)
Replaces the current icon of this entry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String key
private javax.swing.Icon[] icons
private java.util.List<IconManagerListener> listeners
Constructor Detail |
---|
public IconManager.Entry(java.lang.String key)
key
- the key of this entryMethod Detail |
---|
public javax.swing.Icon getIcon()
public void set(Priority priority, javax.swing.Icon icon)
priority
- the priority, where to store the iconicon
- the new icon or null
public void add(IconManagerListener listener)
listener
- the new listenerpublic void remove(IconManagerListener listener)
listener
- the listener to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |