com.ibm.retail.AEF.workstation
Class KeyCode

java.lang.Object
  |
  +--com.ibm.retail.AEF.workstation.KeyCode
All Implemented Interfaces:
java.io.Serializable

public class KeyCode
extends java.lang.Object
implements java.io.Serializable

KeyCode encapsulates data for a POS function or data key.

See Also:
Serialized Form

Field Summary
protected  java.lang.String dataString
           
protected  boolean doubleKey
           
protected  boolean functionKey
           
protected  int logicalKeyCode
           
protected  int rawScanCode
           
 
Constructor Summary
KeyCode()
          Default constructor
KeyCode(int rawScanCode, int logicalKeyCode, java.lang.String dataString, boolean doubleKey, boolean functionKey)
          Constructor
 
Method Summary
 java.lang.String getDataString()
          Get the string value of this key For double zeroes returns "00" For triple zeroes returns "000"
 int getLogicalKeyCode()
          Get the logical key code
 int getRawScanCode()
          Get the raw scan code
 boolean isDoubleKey()
          Is this a double key (Two keys physically joined)
 boolean isFunctionKey()
          Is this a function key
 void setDataString(java.lang.String value)
          Set the string value of this key
 void setDoubleKey(boolean value)
          Set Is this a double key (Two keys physically joined)
 void setFunctionKey(boolean value)
          Set Is this a function key
 void setLogicalKeyCode(int value)
          Set the logical key code
 void setRawScanCode(int value)
          Set the raw scan code
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rawScanCode

protected int rawScanCode

logicalKeyCode

protected int logicalKeyCode

dataString

protected java.lang.String dataString

doubleKey

protected boolean doubleKey

functionKey

protected boolean functionKey
Constructor Detail

KeyCode

public KeyCode()
Default constructor


KeyCode

public KeyCode(int rawScanCode,
               int logicalKeyCode,
               java.lang.String dataString,
               boolean doubleKey,
               boolean functionKey)
Constructor

Method Detail

getLogicalKeyCode

public int getLogicalKeyCode()
Get the logical key code

Returns:
int logical key code

getRawScanCode

public int getRawScanCode()
Get the raw scan code

Returns:
int raw scan code

getDataString

public java.lang.String getDataString()
Get the string value of this key For double zeroes returns "00" For triple zeroes returns "000"

Returns:
String value of this key

isFunctionKey

public boolean isFunctionKey()
Is this a function key

Returns:
true if this is a function key

isDoubleKey

public boolean isDoubleKey()
Is this a double key (Two keys physically joined)

Returns:
true if this is a double key

setLogicalKeyCode

public void setLogicalKeyCode(int value)
Set the logical key code


setRawScanCode

public void setRawScanCode(int value)
Set the raw scan code


setDataString

public void setDataString(java.lang.String value)
Set the string value of this key


setFunctionKey

public void setFunctionKey(boolean value)
Set Is this a function key


setDoubleKey

public void setDoubleKey(boolean value)
Set Is this a double key (Two keys physically joined)



Copyright © 2004 IBM. All Rights Reserved.
Generated: July 19 2004