|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.dockable.DockableStateListenerManager
public class DockableStateListenerManager
A handler for invoking DockableStateListeners. Can be used by Dockables.
Note:
| Constructor Summary | |
|---|---|
DockableStateListenerManager(Dockable dockable)
Creates a new manager. |
|
| Method Summary | |
|---|---|
void |
addListener(DockableStateListener listener)
Adds a listener to this observer. |
void |
checkShowing()
Checks whether the Dockable is showing and fires an event if the property changed. |
void |
event(int flags)
Informs this observer that dockable changed. |
protected boolean |
hasListeners()
Tells whether there is at least one DockableStateListener registered. |
protected void |
install()
Activates this observer. |
void |
removeListener(DockableStateListener listener)
Removes a listener from this observer |
protected void |
uninstall()
Deactivates this observer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DockableStateListenerManager(Dockable dockable)
dockable - the observed element| Method Detail |
|---|
public void checkShowing()
Dockable is showing and fires an event if the property changed.
public void addListener(DockableStateListener listener)
listener - the new listenerpublic void removeListener(DockableStateListener listener)
listener - the listener to removeprotected boolean hasListeners()
DockableStateListener registered.
public void event(int flags)
dockable changed. The flags are created using the
constants from DockableStateEvent.
flags - the changesprotected void install()
protected void uninstall()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||