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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.globalretailtech.pos.events.PosEvent
      extended bycom.globalretailtech.pos.events.NumKey
Direct Known Subclasses:
MultKey

public class NumKey
extends PosEvent

Handles number key input. Add to the input buffer. Also checks for length of the input buffer if it matches a mask, do an item lookup (needs to be parameterized in the property file.) (not implemented)


Field Summary
private static java.lang.String eventname
           
private  java.lang.String numText
           
private  java.lang.String promptText
           
 
Fields inherited from class com.globalretailtech.pos.events.PosEvent
CUST_HIST, CUST_MAIN, FUNCTION, HOME, ITEM, ITEM_MODIFIER, NAVIGATE, NEXT, NUMBER, PREV
 
Constructor Summary
NumKey()
          Simple constructor for dynamic load
 
Method Summary
 void clear()
          Erase the last char on the input line
 void engage(int value)
          If the input is >= 0, assume valid number is entered.
static java.lang.String eventName()
          Return staic name.
 java.lang.String numText()
          Number text for dialogs
 java.lang.String promptText()
          Prompt text for dialogs
 java.lang.String toString()
          Return staic name.
 boolean validTransition(java.lang.String event)
          Validate transistions state
 
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

promptText

private java.lang.String promptText

numText

private java.lang.String numText

eventname

private static java.lang.String eventname
Constructor Detail

NumKey

public NumKey()
Simple constructor for dynamic load

Method Detail

promptText

public java.lang.String promptText()
Prompt text for dialogs


numText

public java.lang.String numText()
Number text for dialogs


engage

public void engage(int value)
If the input is >= 0, assume valid number is entered. Else look at the current PosEvent and figure out what to do:
  • Logon, get the prompt text from that event
  • EjCheckTender, get the prompt text from that event
etc.

Specified by:
engage in class PosEvent

validTransition

public boolean validTransition(java.lang.String event)
Validate transistions state

Specified by:
validTransition in class PosEvent

clear

public void clear()
Erase the last char on the input line

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.