|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.event.DockStationAdapter
bibliothek.gui.dock.station.support.DockableShowingManager
public class DockableShowingManager
Knows for every child of a DockStation whether it is visible or not. The
station can call the fire()-method to send events to listeners,
if the visibility of some children has changed. The manager fires events
automatically if a Dockable is added or removed from the
parent station. The manager tries to minimize the number of messages
sent to the listeners.
| Constructor Summary | |
|---|---|
DockableShowingManager(DockStationListenerManager listeners)
Constructs a new manager |
|
| Method Summary | |
|---|---|
void |
dockableAdded(DockStation station,
Dockable dockable)
Invoked after dockable has been added to station.Note: this method is called when the tree of DockElements contains
the new element, other properties - like the bounds of the
Component of dockable - might not yet be set. |
void |
dockableRemoved(DockStation station,
Dockable dockable)
Invoked after dockable has been removed from
station. |
void |
fire()
Checks which Dockables have changed their state and
fires events for them. |
| Methods inherited from class bibliothek.gui.dock.event.DockStationAdapter |
|---|
dockableAdding, dockableRemoving, dockableSelected, dockableShowingChanged, dockablesRepositioned |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DockableShowingManager(DockStationListenerManager listeners)
listeners - the listeners used to fire events| Method Detail |
|---|
public void fire()
Dockables have changed their state and
fires events for them.
public void dockableAdded(DockStation station,
Dockable dockable)
DockStationListenerdockable has been added to station.DockElements contains
the new element, other properties - like the bounds of the
Component of dockable - might not yet be set.
dockableAdded in interface DockStationListenerdockableAdded in class DockStationAdapterstation - the station where the new child was addeddockable - the new child
public void dockableRemoved(DockStation station,
Dockable dockable)
DockStationListenerdockable has been removed from
station.
dockableRemoved in interface DockStationListenerdockableRemoved in class DockStationAdapterstation - the station where the old child was removeddockable - the old child
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||