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 TypeMethodDescriptionvoid
load()
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)
.void
remove()
void
setIndex
(int index) void
void
store()
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.HistoryValueEntry
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)
. Also, when the value is not -1, load "$history/time" and decode it as aInstant
string.GuiPreferences.HistoryValueEntry.getValue()
will be null if it failed.- Overrides:
load
in classGuiPreferences.HistoryValueEntry
-
store
public void store()- Overrides:
store
in classGuiPreferences.HistoryValueEntry
-
remove
public void remove()- Overrides:
remove
in classGuiPreferences.HistoryValueEntry
-
setIndex
public void setIndex(int index) - Overrides:
setIndex
in classGuiPreferences.HistoryValueEntry
-
setTime
- Overrides:
setTime
in classGuiPreferences.HistoryValueEntry
-
getValueStore
- Overrides:
getValueStore
in classGuiPreferences.HistoryValueEntry
-