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 Preferencesprotected Stringprotected StringFields 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 TypeMethodDescriptionvoidflush()getChild(GuiPreferences preferences, String key) intgetKeys()getStore()protected PreferencesbooleanhasEntryKey(String key) booleanhasNodeKey(String key) voidvoidvoidvoiderase the node, but it might not remove the node from the parentprotected voidprotected <T> TMethods 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:
putStringin classGuiPreferences.GuiValueStore
-
getString
- Specified by:
getStringin classGuiPreferences.GuiValueStore
-
putInt
- Specified by:
putIntin classGuiPreferences.GuiValueStore
-
getInt
- Specified by:
getIntin classGuiPreferences.GuiValueStore
-
withTry
-
withTry
-
getChild
- Specified by:
getChildin classGuiPreferences.GuiValueStore
-
hasEntryKey
- Specified by:
hasEntryKeyin classGuiPreferences.GuiValueStore
-
hasNodeKey
- Specified by:
hasNodeKeyin classGuiPreferences.GuiValueStore
-
getKeys
- Specified by:
getKeysin 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:
removein classGuiPreferences.GuiValueStore
-
removeThisNode
public void removeThisNode()Description copied from class:GuiPreferences.GuiValueStoreerase the node, but it might not remove the node from the parent- Specified by:
removeThisNodein classGuiPreferences.GuiValueStore
-
flush
public void flush()- Overrides:
flushin classGuiPreferences.GuiValueStore
-
copyInitAsRoot
- Specified by:
copyInitAsRootin classGuiPreferences.GuiValueStore
-