Class ExistingStateMachine

  • All Implemented Interfaces:
    StateMachine

    public class ExistingStateMachine
    extends AbstractStateMachine
    implements StateMachine
    A state machine for existing models. Supports the Form.State.READONLY and Form.State.EDITING state and all operations except Form.Operation.REMOVE.

               +--------+      (0)
               |        |       |
            clear()     |     view()
            reset()     |       |
               |     +--v-------v--+
               |     |             |
               +-----+  READONLY   <-----+------+
                     |             |     |      |
                     +--+-------^--+     |      |
                        |       |        |      |
                     edit()  cancel()  save()   |
                        |       |        |      |
                     +--v-------+--+     |      |
                     |             |     |      |
      (0)---edit()--->   EDITING   +-----+    clear()
                     |             |            |
                     +------+------+            |
                            |                   |
                            +-------------------+
     
    (0) Initial states
    • Constructor Detail

      • ExistingStateMachine

        public ExistingStateMachine​(boolean supportsReset)