public class SettingsBlop extends Object
Settings, represents the content of the file that is used by
DockFrontend to store the layout. The SettingsBlop is not yet
associated with DockElements, hence it is lightweight and an application
can easily store more than one blop.| Constructor and Description |
|---|
SettingsBlop() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCurrentName()
Gets the name of the
current setting. |
Setting |
getCurrentSetting()
Gets the current setting, the layout that is currently shown by the application.
|
String[] |
getNames()
Gets the names of all
Settings that are stored in this blop. |
Setting |
getSetting(String name)
|
void |
put(String name,
Setting setting)
|
void |
remove(String name)
Removes the
Setting name from this blop. |
void |
setCurrent(String name,
Setting setting)
Sets name and setting of the current layout.
|
public void put(String name, Setting setting)
name - the key of settingsetting - the data to storepublic void remove(String name)
Setting name from this blop.name - the name of the setting to removepublic String[] getNames()
Settings that are stored in this blop.public Setting getSetting(String name)
name - the name of a settingnull if name is not knownpublic void setCurrent(String name, Setting setting)
SettingsBlop
is not loaded).name - the name of the current setting, can be nullsetting - the current setting, should not be nullpublic String getCurrentName()
current setting.nullpublic Setting getCurrentSetting()
nullCopyright © 2017 Docking Frames. All rights reserved.