public class SettingsBlop
extends java.lang.Object
Setting
s, represents the content of the file that is used by
DockFrontend
to store the layout. The SettingsBlop
is not yet
associated with DockElement
s, hence it is lightweight and an application
can easily store more than one blop.Constructor and Description |
---|
SettingsBlop() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCurrentName()
Gets the name of the
current setting . |
Setting |
getCurrentSetting()
Gets the current setting, the layout that is currently shown by the application.
|
java.lang.String[] |
getNames()
Gets the names of all
Setting s that are stored in this blop. |
Setting |
getSetting(java.lang.String name)
|
void |
put(java.lang.String name,
Setting setting)
Stores
setting in a Map using name as key. |
void |
remove(java.lang.String name)
Removes the
Setting name from this blop. |
void |
setCurrent(java.lang.String name,
Setting setting)
Sets name and setting of the current layout.
|
public void put(java.lang.String name, Setting setting)
setting
in a Map
using name
as key.name
- the key of setting
setting
- the data to storepublic void remove(java.lang.String name)
Setting
name
from this blop.name
- the name of the setting to removepublic java.lang.String[] getNames()
Setting
s that are stored in this blop.public Setting getSetting(java.lang.String name)
name
- the name of a settingnull
if name
is not knownpublic void setCurrent(java.lang.String name, Setting setting)
SettingsBlop
is not loaded).name
- the name of the current setting, can be null
setting
- the current setting, should not be null
public java.lang.String getCurrentName()
current setting
.null
public Setting getCurrentSetting()
null