java.lang.Object
org.autogui.base.mapping.GuiPreferences.GuiValueStore
org.autogui.base.mapping.GuiPreferences.GuiValueStoreOnMemory
- Direct Known Subclasses:
GuiPreferences.GuiValueStoreImmutable
- Enclosing class:
GuiPreferences
an on-memory impl. of value-store
-
Field Summary
FieldsFields inherited from class org.autogui.base.mapping.GuiPreferences.GuiValueStore
preferences
-
Constructor Summary
ConstructorsConstructorDescriptionfor test purpose: it's preferences can be set by the GuiPreferences constructor that takes the storeGuiValueStoreOnMemory
(GuiPreferences preferences) GuiValueStoreOnMemory
(GuiPreferences preferences, GuiPreferences.GuiValueStoreOnMemory parent) -
Method Summary
Modifier and TypeMethodDescriptiongetChild
(GuiPreferences preferences, String key) int
getKeys()
boolean
hasEntryKey
(String key) boolean
hasNodeKey
(String key) void
putChild
(String name, GuiPreferences.GuiValueStore value) void
void
void
void
erase the node, but it might not remove the node from the parenttoJson()
Methods inherited from class org.autogui.base.mapping.GuiPreferences.GuiValueStore
flush, getChild, getChild, getPreferences, setPreferences
-
Field Details
-
parent
-
values
-
-
Constructor Details
-
GuiValueStoreOnMemory
public GuiValueStoreOnMemory()for test purpose: it's preferences can be set by the GuiPreferences constructor that takes the store -
GuiValueStoreOnMemory
-
GuiValueStoreOnMemory
public GuiValueStoreOnMemory(GuiPreferences preferences, GuiPreferences.GuiValueStoreOnMemory parent)
-
-
Method Details
-
putString
- Specified by:
putString
in classGuiPreferences.GuiValueStore
-
getString
- Specified by:
getString
in classGuiPreferences.GuiValueStore
-
putInt
- Specified by:
putInt
in classGuiPreferences.GuiValueStore
-
getInt
- Specified by:
getInt
in classGuiPreferences.GuiValueStore
-
getChild
- Specified by:
getChild
in classGuiPreferences.GuiValueStore
-
getKeys
- Specified by:
getKeys
in classGuiPreferences.GuiValueStore
- Returns:
- list of a key which might be different from a given key for put(k,...)
because of the max key length,
converted by
GuiPreferences.toStoreKey(String)
. such key will be acceptable as an argument for other methods.
-
hasEntryKey
- Specified by:
hasEntryKey
in classGuiPreferences.GuiValueStore
-
hasNodeKey
- Specified by:
hasNodeKey
in classGuiPreferences.GuiValueStore
-
putChild
-
toJson
-
remove
- Specified by:
remove
in classGuiPreferences.GuiValueStore
-
removeThisNode
public void removeThisNode()Description copied from class:GuiPreferences.GuiValueStore
erase the node, but it might not remove the node from the parent- Specified by:
removeThisNode
in classGuiPreferences.GuiValueStore
-
copyInitAsRoot
- Specified by:
copyInitAsRoot
in classGuiPreferences.GuiValueStore
-