Public Member Functions | |
void | loadMenuStatesAndApply () |
List< AnyMenuState > | loadMenuStates () |
void | saveMenuStates () |
An instance of Menu State serializer is used between runs of a local java application to load and save the state of any menu item that has the EEPROM field set to anything other than -1. It will generally be configured with a menu tree that will be used as the source of state data.
List<AnyMenuState> com.thecoderscorner.menu.persist.MenuStateSerialiser.loadMenuStates | ( | ) |
load the menu states but do not apply them to the tree
Implemented in com.thecoderscorner.menu.persist.PropertiesMenuStateSerialiser.
void com.thecoderscorner.menu.persist.MenuStateSerialiser.loadMenuStatesAndApply | ( | ) |
load back all states from the storage and apply them all to the tree, after this all items in the tree will contain the updated value.
Implemented in com.thecoderscorner.menu.persist.PropertiesMenuStateSerialiser.
void com.thecoderscorner.menu.persist.MenuStateSerialiser.saveMenuStates | ( | ) |
Save the latest state of the tree into storage.
Implemented in com.thecoderscorner.menu.persist.PropertiesMenuStateSerialiser.