java.lang.Object
org.autogui.base.mapping.GuiPreferences.GuiValueStore
org.autogui.base.mapping.GuiPreferences.GuiValueStoreDefault
- Enclosing class:
GuiPreferences
the concrete implementation of the store by
Preferences
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Supplier
<Preferences> protected Preferences
protected String
protected String
Fields inherited from class org.autogui.base.mapping.GuiPreferences.GuiValueStore
preferences
-
Constructor Summary
ConstructorsConstructorDescriptionGuiValueStoreDefault
(GuiPreferences preferences, Supplier<Preferences> parentStore, String storeName) GuiValueStoreDefault
(GuiPreferences preferences, Preferences store) -
Method Summary
Modifier and TypeMethodDescriptionvoid
flush()
getChild
(GuiPreferences preferences, String key) int
getKeys()
getStore()
protected Preferences
boolean
hasEntryKey
(String key) boolean
hasNodeKey
(String key) void
void
void
void
erase the node, but it might not remove the node from the parentprotected void
protected <T> T
Methods inherited from class org.autogui.base.mapping.GuiPreferences.GuiValueStore
getChild, getChild, getPreferences, setPreferences
-
Field Details
-
store
-
parentStore
-
storeName
-
storeNameActual
-
-
Constructor Details
-
GuiValueStoreDefault
-
GuiValueStoreDefault
public GuiValueStoreDefault(GuiPreferences preferences, Supplier<Preferences> parentStore, String storeName)
-
-
Method Details
-
getStore
-
getOrCreateStore
-
getStoreFromParent
-
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
-
withTry
-
withTry
-
getChild
- Specified by:
getChild
in classGuiPreferences.GuiValueStore
-
hasEntryKey
- Specified by:
hasEntryKey
in classGuiPreferences.GuiValueStore
-
hasNodeKey
- Specified by:
hasNodeKey
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.
-
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
-
flush
public void flush()- Overrides:
flush
in classGuiPreferences.GuiValueStore
-
copyInitAsRoot
- Specified by:
copyInitAsRoot
in classGuiPreferences.GuiValueStore
-