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

Quick Search    Search Deep

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

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

public class LookupItem
extends PosEvent

Simulates an item lookup by creating an EjItem then engaging that class with the value from the input. If the input line is less than 8 (MAX_PLU_LEN) digits use the plu else lookup the sku directly.


Field Summary
private static java.lang.String eventname
           
static int MAX_PLU_LEN
           
 
Fields inherited from class com.globalretailtech.pos.events.PosEvent
CUST_HIST, CUST_MAIN, FUNCTION, HOME, ITEM, ITEM_MODIFIER, NAVIGATE, NEXT, NUMBER, PREV
 
Constructor Summary
LookupItem()
          Simple constructor for dynamic load
 
Method Summary
 void clear()
          Clear key implementation for this class
 void engage(int value)
          If the input line is a certain length test to see if it exists as an item in the PLU file.
static java.lang.String eventName()
          Return staic name.
 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

MAX_PLU_LEN

public static final int MAX_PLU_LEN
See Also:
Constant Field Values

eventname

private static java.lang.String eventname
Constructor Detail

LookupItem

public LookupItem()
Simple constructor for dynamic load

Method Detail

engage

public void engage(int value)
If the input line is a certain length test to see if it exists as an item in the PLU file. Note: a 1-to-1 PLU to SKU map must be set up. Note: this should be connected to a filter instead of the hard-coded MAX_PLU_LEN. Otherwise Assume the PLU is coming from the input line, again Note: a 1-to-1 PLU to SKU map must be set up.

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()
Clear key implementation for this class

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.