java.lang.Object
org.autogui.base.mapping.GuiPreferences.GuiValueStore
- Direct Known Subclasses:
GuiPreferences.GuiValueStoreDefault
,GuiPreferences.GuiValueStoreOnMemory
- Enclosing class:
GuiPreferences
the abstract definition of key-value store.
- a key may be associated with a child node or an entry, and it shares the name space.
- an entry can be obtained as a String or a Integer
- an Integer entry can be obtained as a String entry
- a node is associated with a
GuiPreferences
, which might be the preferences of the store or a sub-preferences. if a sub-preferences, the name of the prefs (GuiPreferences.getName()
becomes the node key.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract GuiPreferences.GuiValueStore
void
flush()
getChild
(GuiPreferences preferences) abstract GuiPreferences.GuiValueStore
getChild
(GuiPreferences preferences, String key) abstract int
getKeys()
abstract String
abstract boolean
hasEntryKey
(String key) abstract boolean
hasNodeKey
(String key) abstract void
abstract void
abstract void
abstract void
erase the node, but it might not remove the node from the parentvoid
setPreferences
(GuiPreferences preferences)
-
Field Details
-
preferences
-
-
Constructor Details
-
GuiValueStore
-
-
Method Details
-
getPreferences
-
setPreferences
-
putString
-
getString
-
putInt
-
getInt
-
getChild
-
getChild
-
getChild
-
hasEntryKey
-
hasNodeKey
-
getKeys
- 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.
-
remove
-
removeThisNode
public abstract void removeThisNode()erase the node, but it might not remove the node from the parent -
flush
public void flush() -
copyInitAsRoot
-