java.lang.Object
org.autogui.base.mapping.GuiPreferences.HistoryValueEntry
org.autogui.base.mapping.GuiPreferences.HistoryValueEntryOnMemory
- Enclosing class:
GuiPreferences
public static class GuiPreferences.HistoryValueEntryOnMemory
extends GuiPreferences.HistoryValueEntry
an on-memory impl. of value history entry, created when the repr. is
GuiReprValue.isHistoryValueStored(Object).-
Field Summary
Fields inherited from class org.autogui.base.mapping.GuiPreferences.HistoryValueEntry
index, keyIndex, preferences, time, value, valueStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidload()load the "$history/index" value, and if the value is not -1, then also load "$history/value" and decode it as JSON andGuiRepresentation.fromJson(GuiMappingContext, Object, Object).voidremove()voidsetIndex(int index) voidvoidstore()Methods inherited from class org.autogui.base.mapping.GuiPreferences.HistoryValueEntry
fromJsonSource, getIndex, getKeyIndex, getParent, getStoredJsonValue, getTime, getValue, isJsonValue, loadAsCurrentValue, match, setKeyIndexWithLoadOrStore, setValue, storeAsCurrentValue, storeValue, toValueInit
-
Constructor Details
-
HistoryValueEntryOnMemory
-
-
Method Details
-
load
public void load()Description copied from class:GuiPreferences.HistoryValueEntryload the "$history/index" value, and if the value is not -1, then also load "$history/value" and decode it as JSON andGuiRepresentation.fromJson(GuiMappingContext, Object, Object). Also, when the value is not -1, load "$history/time" and decode it as aInstantstring.GuiPreferences.HistoryValueEntry.getValue()will be null if it failed.- Overrides:
loadin classGuiPreferences.HistoryValueEntry
-
store
public void store()- Overrides:
storein classGuiPreferences.HistoryValueEntry
-
remove
public void remove()- Overrides:
removein classGuiPreferences.HistoryValueEntry
-
setIndex
public void setIndex(int index) - Overrides:
setIndexin classGuiPreferences.HistoryValueEntry
-
setTime
- Overrides:
setTimein classGuiPreferences.HistoryValueEntry
-
getValueStore
- Overrides:
getValueStorein classGuiPreferences.HistoryValueEntry
-