Class ExternalizingCGridAreaConfiguration
java.lang.Object
bibliothek.gui.dock.common.behavior.ExternalizingCGridAreaConfiguration
The
Clients can use
ExternalizingCGridAreaConfiguration is a piece of code responsible for changing the behavior
of the framework such that externalized CDockable are not stacked, but put in a ExternalizingCGridArea.Clients can use
install(), installOn(CControl) and uninstall() to activate or
deactivate this configuration.- Author:
- Benjamin Sigg
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classA listener that is added to aScreenDockStation, every time someDockableis added to said station, a newExternalizingCGridAreais created and inserted. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new configuration. -
Method Summary
Modifier and TypeMethodDescriptionprotected ExternalizingCGridAreaCreates a newExternalizingCGridArea, the identifier of the new station is unique compared to all theCDockables that are currently registered atcontrol.Creates a new instance ofExternalizingCGridAreaConfiguration.SplitInserter.Gets theCControlfor which this configuration is used.protected DockStationGets theDockStationwhich was registered with the nameCControl.EXTERNALIZED_STATION_ID.Gets the listener that is responsible for inserting newExternalizingCGridAreas.voidinstall()Activates this configuration.Creates a newExternalizingCGridAreaConfigurationandinstallsit.voidDeactivates this configuration, existingExternalizingCGridAreas will not be cleaned up.
-
Constructor Details
-
ExternalizingCGridAreaConfiguration
Creates a new configuration.- Parameters:
control- the control for which this configuration will be used, notnull
-
-
Method Details
-
installOn
Creates a newExternalizingCGridAreaConfigurationandinstallsit.- Parameters:
control- the control in whose realm this configuration is used- Returns:
- the new configuration
-
getSplitInserter
Gets the listener that is responsible for inserting newExternalizingCGridAreas.- Returns:
- the listener, never
null
-
createSplitInserter
Creates a new instance ofExternalizingCGridAreaConfiguration.SplitInserter.- Returns:
- a new object, not
null
-
getControl
Gets theCControlfor which this configuration is used.- Returns:
- the
CControl
-
createGridArea
Creates a newExternalizingCGridArea, the identifier of the new station is unique compared to all theCDockables that are currently registered atcontrol.- Returns:
- the new area, not
null
-
install
public void install()Activates this configuration. -
uninstall
public void uninstall()Deactivates this configuration, existingExternalizingCGridAreas will not be cleaned up. -
getScreenDockStation
Gets theDockStationwhich was registered with the nameCControl.EXTERNALIZED_STATION_ID.- Returns:
- the station which will be the parent of all the new
ExternalizingCGridAreas
-