tcMenuJavaAPI
Public Member Functions | List of all members
com.thecoderscorner.menu.persist.MenuStateSerialiser Interface Reference
Inheritance diagram for com.thecoderscorner.menu.persist.MenuStateSerialiser:
com.thecoderscorner.menu.persist.PropertiesMenuStateSerialiser

Public Member Functions

void loadMenuStatesAndApply ()
 
List< AnyMenuStateloadMenuStates ()
 
void saveMenuStates ()
 

Detailed Description

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.

Member Function Documentation

◆ loadMenuStates()

List<AnyMenuState> com.thecoderscorner.menu.persist.MenuStateSerialiser.loadMenuStates ( )

load the menu states but do not apply them to the tree

Returns
the list of states loaded from storage

Implemented in com.thecoderscorner.menu.persist.PropertiesMenuStateSerialiser.

◆ loadMenuStatesAndApply()

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.

◆ saveMenuStates()

void com.thecoderscorner.menu.persist.MenuStateSerialiser.saveMenuStates ( )

Save the latest state of the tree into storage.

Implemented in com.thecoderscorner.menu.persist.PropertiesMenuStateSerialiser.


The documentation for this interface was generated from the following file: