Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.globalretailtech.pos.events
Class PosDialogEvent  view PosDialogEvent download PosDialogEvent.java

java.lang.Object
  extended bycom.globalretailtech.pos.events.PosEvent
      extended bycom.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.


Field Summary
private  com.globalretailtech.pos.context.PosStateStack statestack
           
 
Fields inherited from class com.globalretailtech.pos.events.PosEvent
CUST_HIST, CUST_MAIN, FUNCTION, HOME, ITEM, ITEM_MODIFIER, NAVIGATE, NEXT, NUMBER, PREV
 
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.
 
Method Summary
 boolean isDialog()
          Used when loading events (loadDialog) to determine if states need to be pushed also.
 void nextDialogEvent()
          Finds the next event or dialog state and engages it.
 int popState()
          Pop the top and return it.
 void pushState(int value)
          Push a state on the stack
 void pushUserEvent(int id)
          Pushes a new event on, note that it also pops the current
 int state()
          Current state on top of stack (peek)
 com.globalretailtech.pos.context.PosStateStack states()
          Return the entire state stack.
 
Methods inherited from class com.globalretailtech.pos.events.PosEvent
blocked, checkProfile, clear, context, employeeHasProfile, engage, eventName, isValidEvent, setBlocked, setContext, toString, validTransition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

statestack

private com.globalretailtech.pos.context.PosStateStack statestack
Constructor Detail

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.

Method Detail

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