Package org.jboss.hal.ballroom.form
Class SingletonStateMachine
- java.lang.Object
-
- org.jboss.hal.ballroom.form.AbstractStateMachine
-
- org.jboss.hal.ballroom.form.SingletonStateMachine
-
- All Implemented Interfaces:
StateMachine
public class SingletonStateMachine extends AbstractStateMachine implements StateMachine
A state machine for singleton resources. Supports allstatesand operations.Please note: The singleton resource must be created outside the scope of this state machine. Once created the
Form.Operation.VIEWoperation is used to view the resource.(0)----view()----+ +--------+ | | | +---------remove()---------+ | | clear() | | | | reset() | +--+---v---+--+ | | | <-----+ | +-----view()----> READONLY | | | | <-----+------+ +--v-------+--+ +--+-------^--+ | | | | | | | | | EMPTY | edit() cancel() save() | | | | | | | +-------------+ +--v-------+--+ | | | | | | | EDITING +-----+ clear() | | | +------+------+ | | | +-------------------+(0) Initial states
-
-
Constructor Summary
Constructors Constructor Description SingletonStateMachine()SingletonStateMachine(EnumSet<Form.Operation> operations)
-
-
-
Constructor Detail
-
SingletonStateMachine
public SingletonStateMachine()
-
SingletonStateMachine
public SingletonStateMachine(EnumSet<Form.Operation> operations)
-
-