protected class DefaultLayoutChangeStrategy.SettingAccess extends Object
Setting, allows algorithms access to the settings
but also allows to modify the data without changing the setting.| Constructor and Description |
|---|
SettingAccess(Setting setting)
Creates a new wrapper.
|
| Modifier and Type | Method and Description |
|---|---|
void |
fillMissing(DockSituation situation)
Using the factories given by
situation, this method tries
to fill any gaps in the layout. |
int |
getInvisibleCount()
Gets the number of stored invisible elements.
|
String |
getInvisibleKey(int index)
Gets the key of the index'th invisible element.
|
DockLayoutComposition |
getInvisibleLayout(int index)
Gets the layout of the index'th invisible element.
|
DockableProperty |
getInvisibleLocation(int index)
Gets the location of the index'th invisible element.
|
String |
getInvisibleRoot(int index)
Gets the preferred root of the index'th invisible element.
|
DockLayoutComposition |
getRoot(String root)
Gets the layout of a root.
|
String[] |
getRootKeys()
Gets the keys of all known roots.
|
Setting |
getSetting()
Gets the setting that is hidden by this wrapper.
|
public SettingAccess(Setting setting)
setting - the source for all data, not nullpublic Setting getSetting()
nullpublic DockLayoutComposition getRoot(String root)
root - the rootnullpublic String[] getRootKeys()
public int getInvisibleCount()
public String getInvisibleKey(int index)
index - the index of the elementpublic String getInvisibleRoot(int index)
index - the index of the elementpublic DockableProperty getInvisibleLocation(int index)
index - the index of the elementpublic DockLayoutComposition getInvisibleLayout(int index)
index - the index of the layoutnullpublic void fillMissing(DockSituation situation)
situation, this method tries
to fill any gaps in the layout.situation - a set of factories to useIllegalArgumentException - if situation cannot handle
the content of this settingCopyright © 2017 Docking Frames. All rights reserved.