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 null
public Setting getSetting()
null
public DockLayoutComposition getRoot(String root)
root
- the rootnull
public 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 layoutnull
public 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 setting