com.ibm.retail.AEF.workstation
Interface KeyConsumer

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
KeyConsumerProxy

public interface KeyConsumer
extends java.rmi.Remote

Consumer/Listener interface for receiving POS keyboard events from the terminal workstation. An event is fired whenever a function key or data key is pressed on the POS keyboard.

WARNING: This is a synchronous call which allows keyboard events to be consumed if the listener returns a value of "true". As a result, the POS sales application is blocked waiting until the listener event processing completes. For best performance it is recommended that any lengthy event processing (e.g. GUI updates) be performed after a Thread context switch. SwingUtilities.invokeLater() may be used for this purpose.


Method Summary
 boolean keyPress(com.ibm.retail.AEF.workstation.KeyCode key)
          A function or data key has been pressed.
 

Method Detail

keyPress

public boolean keyPress(com.ibm.retail.AEF.workstation.KeyCode key)
                 throws java.rmi.RemoteException
A function or data key has been pressed.

Parameters:
key - KeyCode object contains information about the key press
Returns:
boolean
java.rmi.RemoteException


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