|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.dockable.DockableStateListenerManager
public class DockableStateListenerManager
A handler for invoking DockableStateListener
s. Can be used by Dockable
s.
Note:
Constructor Summary | |
---|---|
DockableStateListenerManager(Dockable dockable)
Creates a new manager. |
Method Summary | |
---|---|
void |
addListener(DockableStateListener listener)
Adds a listener to this observer. |
void |
checkVisibility()
Rechecks the visibility state and may fire an event if the visibility 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 elementMethod Detail |
---|
public void checkVisibility()
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 |