java.lang.Object
com.globalretailtech.pos.events.PosEvent
com.globalretailtech.pos.events.PosDialogEvent
- Direct Known Subclasses:
- EOD, ExecScript, PosDecimalDialog, PosNumberDialog, RecallEj
- public abstract class PosDialogEvent
- extends PosEvent
POS dialog event super class. This class is extended
by any POS event or EJ line that wishes to move the user
through a series of prompts. Has it's own stack of
states to manage this.
|
Constructor Summary |
PosDialogEvent()
Constructor calls superclass constructor and
creates a state stack. |
PosDialogEvent(int state)
Constructor calls superclass constructor,
creates a state stack and pushes an initial event. |
| Methods inherited from class com.globalretailtech.pos.events.PosEvent |
blocked, checkProfile, clear, context, employeeHasProfile, engage, eventName, isValidEvent, setBlocked, setContext, toString, validTransition |
statestack
private com.globalretailtech.pos.context.PosStateStack statestack
PosDialogEvent
public PosDialogEvent()
- Constructor calls superclass constructor and
creates a state stack.
PosDialogEvent
public PosDialogEvent(int state)
- Constructor calls superclass constructor,
creates a state stack and pushes an initial event.
state
public int state()
- Current state on top of stack (peek)
popState
public int popState()
- Pop the top and return it.
pushState
public void pushState(int value)
- Push a state on the stack
states
public com.globalretailtech.pos.context.PosStateStack states()
- Return the entire state stack.
isDialog
public boolean isDialog()
- Used when loading events (loadDialog) to determine if
states need to be pushed also.
- Overrides:
isDialog in class PosEvent
nextDialogEvent
public void nextDialogEvent()
- Finds the next event or dialog state and engages it.
pushUserEvent
public void pushUserEvent(int id)
- Pushes a new event on, note that it also pops the current