public class ExistingStateMachine extends AbstractStateMachine implements StateMachine
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 and Description |
|---|
ExistingStateMachine(boolean supportsReset) |
| Modifier and Type | Method and Description |
|---|---|
protected Form.State |
initial() |
protected String |
name() |
protected <C> void |
safeExecute(Form.Operation operation,
C context) |
current, execute, reset, supports, supportsprotected Form.State initial()
initial in class AbstractStateMachineprotected <C> void safeExecute(Form.Operation operation, C context)
safeExecute in class AbstractStateMachineprotected String name()
name in class AbstractStateMachineCopyright © 2018 JBoss, a division of Red Hat. All rights reserved.