public class DockableStateListenerManager extends Object
DockableStateListener
s. Can be used by Dockable
s.Constructor and Description |
---|
DockableStateListenerManager(Dockable dockable)
Creates a new manager.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public DockableStateListenerManager(Dockable dockable)
dockable
- the observed elementpublic 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()