public class ExternalizingCGridAreaConfiguration extends Object
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.install(), installOn(CControl) and uninstall() to activate or
deactivate this configuration.| Modifier and Type | Class and Description |
|---|---|
protected class |
ExternalizingCGridAreaConfiguration.SplitInserter
A listener that is added to a
ScreenDockStation, every time some Dockable is added to said
station, a new ExternalizingCGridArea is created and inserted. |
| Constructor and Description |
|---|
ExternalizingCGridAreaConfiguration(CControl control)
Creates a new configuration.
|
| Modifier and Type | Method and Description |
|---|---|
protected ExternalizingCGridArea |
createGridArea()
Creates a new
ExternalizingCGridArea, the identifier of the new station is unique compared to all
the CDockables that are currently registered at control. |
protected ExternalizingCGridAreaConfiguration.SplitInserter |
createSplitInserter()
Creates a new instance of
ExternalizingCGridAreaConfiguration.SplitInserter. |
CControl |
getControl()
Gets the
CControl for which this configuration is used. |
protected DockStation |
getScreenDockStation()
Gets the
DockStation which was registered with the name CControl.EXTERNALIZED_STATION_ID. |
protected ExternalizingCGridAreaConfiguration.SplitInserter |
getSplitInserter()
Gets the listener that is responsible for inserting new
ExternalizingCGridAreas. |
void |
install()
Activates this configuration.
|
static ExternalizingCGridAreaConfiguration |
installOn(CControl control)
Creates a new
ExternalizingCGridAreaConfiguration and installs it. |
void |
uninstall()
Deactivates this configuration, existing
ExternalizingCGridAreas will not be cleaned up. |
public ExternalizingCGridAreaConfiguration(CControl control)
control - the control for which this configuration will be used, not nullpublic static ExternalizingCGridAreaConfiguration installOn(CControl control)
ExternalizingCGridAreaConfiguration and installs it.control - the control in whose realm this configuration is usedprotected ExternalizingCGridAreaConfiguration.SplitInserter getSplitInserter()
ExternalizingCGridAreas.nullprotected ExternalizingCGridAreaConfiguration.SplitInserter createSplitInserter()
ExternalizingCGridAreaConfiguration.SplitInserter.nullpublic CControl getControl()
CControl for which this configuration is used.CControlprotected ExternalizingCGridArea createGridArea()
ExternalizingCGridArea, the identifier of the new station is unique compared to all
the CDockables that are currently registered at control.nullpublic void install()
public void uninstall()
ExternalizingCGridAreas will not be cleaned up.protected DockStation getScreenDockStation()
DockStation which was registered with the name CControl.EXTERNALIZED_STATION_ID.ExternalizingCGridAreasCopyright © 2018. All rights reserved.