Class DelayedWorkingAreaSetter
java.lang.Object
bibliothek.gui.dock.event.DockRegisterAdapter
bibliothek.gui.dock.common.intern.DelayedWorkingAreaSetter
- All Implemented Interfaces:
DockRegisterListener
A
DelayedWorkingAreaSetter is a listener that is added to a CControl and
waits until a CStation with a specific identifier is registered. It then calls
CDockable.setWorkingArea(CStation) with this station. This listener automatically
removes itself once its mission is over.- Author:
- Benjamin Sigg
-
Constructor Summary
ConstructorsConstructorDescriptionDelayedWorkingAreaSetter(String area, CDockable dockable, CControl control) Creates a new setter. -
Method Summary
Modifier and TypeMethodDescriptionvoiddockStationRegistering(DockController controller, DockStation station) voidinstall()voidregisterUnstalled(DockController controller) voidRemoves all listeners thisDelayedWorkingAreaSetterhas added anywhere.Methods inherited from class bibliothek.gui.dock.event.DockRegisterAdapter
dockableCycledRegister, dockableRegistered, dockableRegistering, dockableUnregistered, dockStationRegistered, dockStationUnregistered, registerStalled
-
Constructor Details
-
DelayedWorkingAreaSetter
Creates a new setter.- Parameters:
area- theCStationfor which to searchdockable- the element whose working area should be setcontrol- the control to monitor
-
-
Method Details
-
install
public void install() -
uninstall
public void uninstall()Removes all listeners thisDelayedWorkingAreaSetterhas added anywhere. -
dockStationRegistering
- Specified by:
dockStationRegisteringin interfaceDockRegisterListener- Overrides:
dockStationRegisteringin classDockRegisterAdapter
-
registerUnstalled
- Specified by:
registerUnstalledin interfaceDockRegisterListener- Overrides:
registerUnstalledin classDockRegisterAdapter
-