public abstract class DockStationAdapter extends Object implements DockStationListener
DockStationListener.
All methods of this class are empty. The class can be used instead of
DockStationListener if only a few methods have to be implemented.| Constructor and Description |
|---|
DockStationAdapter() |
| Modifier and Type | Method and Description |
|---|---|
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 |
dockableAdding(DockStation station,
Dockable dockable)
Invoked before
dockable is added to station. |
void |
dockableRemoved(DockStation station,
Dockable dockable)
Invoked after
dockable has been removed from
station. |
void |
dockableRemoving(DockStation station,
Dockable dockable)
Invoked before
dockable is removed from station. |
void |
dockableSelected(DockStation station,
Dockable oldSelection,
Dockable newSelection)
Called when
dockable has been selected. |
void |
dockableShowingChanged(DockStation station,
Dockable dockable,
boolean visible)
Invoked if the visibility of a child has been changed.
|
void |
dockablesRepositioned(DockStation station,
Dockable[] dockables)
Called when the location and/or size of one or several
dockables changed. |
public void dockableAdding(DockStation station, Dockable dockable)
DockStationListenerdockable is added to station.dockableAdding in interface DockStationListenerstation - the station where the new child will be addeddockable - the new childpublic void dockableRemoving(DockStation station, Dockable dockable)
DockStationListenerdockable is removed from station.dockableRemoving in interface DockStationListenerstation - the station where the old child will be removeddockable - the old childpublic 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 DockStationListenerstation - the station where the new child was addeddockable - the new childpublic void dockableRemoved(DockStation station, Dockable dockable)
DockStationListenerdockable has been removed from
station.dockableRemoved in interface DockStationListenerstation - the station where the old child was removeddockable - the old childpublic void dockableShowingChanged(DockStation station, Dockable dockable, boolean visible)
DockStationListenerdockable. See also
Dockable.isDockableShowing().DockableShowingManager to organize the calls in an easy way.dockableShowingChanged in interface DockStationListenerstation - the station whose children have changed their visibilitydockable - the Dockable whose visibility has changedvisible - the new visibility-statepublic void dockableSelected(DockStation station, Dockable oldSelection, Dockable newSelection)
DockStationListenerdockable has been selected. The value of
dockable should be the same as DockStation.getFrontDockable().dockableSelected in interface DockStationListenerstation - the source of the eventoldSelection - the element which was selected before the change, can be nullnewSelection - the current value of DockStation.getFrontDockable(), can be nullpublic void dockablesRepositioned(DockStation station, Dockable[] dockables)
DockStationListenerdockables changed. This means that
DockStation.getDockableProperty(Dockable, Dockable) now returns another value than
before. This method may or may not be called for Dockables that were just added or being removed
from station.dockablesRepositioned in interface DockStationListenerstation - the source of the eventdockables - the affected elementsCopyright © 2017 Docking Frames. All rights reserved.