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.GuiValueStorevoidflush()getChild(GuiPreferences preferences) abstract GuiPreferences.GuiValueStoregetChild(GuiPreferences preferences, String key) abstract intgetKeys()abstract Stringabstract booleanhasEntryKey(String key) abstract booleanhasNodeKey(String key) abstract voidabstract voidabstract voidabstract voiderase the node, but it might not remove the node from the parentvoidsetPreferences(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
-