Interface MenuStateSerialiser

All Known Implementing Classes:
PropertiesMenuStateSerialiser

public interface MenuStateSerialiser
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.
  • Method Summary

    Modifier and Type
    Method
    Description
    load the menu states but do not apply them to the tree
    void
    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.
    void
    Save the latest state of the tree into storage.
  • Method Details

    • loadMenuStatesAndApply

      void 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.
    • loadMenuStates

      List<AnyMenuState> loadMenuStates()
      load the menu states but do not apply them to the tree
      Returns:
      the list of states loaded from storage
    • saveMenuStates

      void saveMenuStates()
      Save the latest state of the tree into storage.