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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.globalretailtech.pos.events.PosEvent
      extended bycom.globalretailtech.pos.events.FirstItem

public class FirstItem
extends PosEvent

An item has been entered. Set this event as the first on the stack. FirstItem is used by other classes to determine valid transitions, example: you can not start a discount sale after an item has been entered.


Field Summary
private static java.lang.String eventname
           
 
Fields inherited from class com.globalretailtech.pos.events.PosEvent
CUST_HIST, CUST_MAIN, FUNCTION, HOME, ITEM, ITEM_MODIFIER, NAVIGATE, NEXT, NUMBER, PREV
 
Constructor Summary
FirstItem(com.globalretailtech.pos.context.PosContext context)
          Constructor with context.
 
Method Summary
 void clear()
          Clear impementation for clear, do nothing.
 void engage(int value)
          Just update the dialogs and displays.
static java.lang.String eventName()
          Return staic name.
 java.lang.String promptText()
          The register open prompt from the context.
 java.lang.String toString()
          Return staic name.
 boolean validTransition(java.lang.String event)
          Always return true.
 
Methods inherited from class com.globalretailtech.pos.events.PosEvent
blocked, checkProfile, context, employeeHasProfile, isDialog, isValidEvent, setBlocked, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

eventname

private static java.lang.String eventname
Constructor Detail

FirstItem

public FirstItem(com.globalretailtech.pos.context.PosContext context)
Constructor with context.

Method Detail

promptText

public java.lang.String promptText()
The register open prompt from the context.


engage

public void engage(int value)
Just update the dialogs and displays. For displays like reciepts this clears.

Specified by:
engage in class PosEvent

validTransition

public boolean validTransition(java.lang.String event)
Always return true.

Specified by:
validTransition in class PosEvent

clear

public void clear()
Clear impementation for clear, do nothing.

Specified by:
clear in class PosEvent

toString

public java.lang.String toString()
Return staic name.

Overrides:
toString in class PosEvent

eventName

public static java.lang.String eventName()
Return staic name.