|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.frontend.SettingsBlop
public class SettingsBlop
A set of 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 Summary | |
---|---|
SettingsBlop()
|
Method Summary | |
---|---|
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 Setting s that are stored in this blop. |
Setting |
getSetting(String name)
Gets the Setting which was stored using the
key name . |
void |
put(String name,
Setting setting)
Stores setting in a Map using name as key. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SettingsBlop()
Method Detail |
---|
public void put(String name, Setting setting)
setting
in a Map
using name
as key.
name
- the key of setting
setting
- the data to storepublic void remove(String name)
Setting
name
from this blop.
name
- the name of the setting to removepublic String[] getNames()
Setting
s that are stored in this blop.
public Setting getSetting(String name)
Setting
which was stored
using the
key name
.
name
- the name of a setting
null
if name
is not knownpublic void setCurrent(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 String getCurrentName()
current setting
.
null
public Setting getCurrentSetting()
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |