Class POSKeyboardProperties

java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
de.gmxhome.conrad.jpos.jpos_base.poskeyboard.POSKeyboardProperties
All Implemented Interfaces:
JposBaseInterface, POSKeyboardInterface
Direct Known Subclasses:
POSKeyboard

public class POSKeyboardProperties extends JposCommonProperties implements POSKeyboardInterface
Class containing the keyboard specific properties, their default values and default implementations of POSKeyboardInterface. For details about properties, methods and method parameters, see UPOS specification, chapter POS Keyboard.
  • Field Details

    • CapKeyUp

      public boolean CapKeyUp
      UPOS property CapKeyUp. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • EventTypes

      public int EventTypes
      UPOS property EventTypes. Default: ET_DOWN. Can be overwritten by objects derived from JposDevice within the changeDefaults method.
    • POSKeyData

      public int POSKeyData
      UPOS property POSKeyData.
    • POSKeyEventType

      public int POSKeyEventType
      UPOS property POSKeyEventType.
  • Constructor Details

    • POSKeyboardProperties

      public POSKeyboardProperties(int dev)
      Constructor. Sets ExclusiveUse to ExclusiveYes to match the POSKeyboard device model.
      Parameters:
      dev - Device index
  • Method Details

    • initOnOpen

      public void initOnOpen()
      Description copied from class: JposCommonProperties
      Initialization of properties that must be initialized during open.
      Overrides:
      initOnOpen in class JposCommonProperties
    • clearDataProperties

      public void clearDataProperties()
      Description copied from class: JposCommonProperties
      Clear data properties. Performed during ClearInput and ClearInputProperties.
      Overrides:
      clearDataProperties in class JposCommonProperties
    • eventTypes

      public void eventTypes(int type) throws jpos.JposException
      Description copied from interface: POSKeyboardInterface
      Final part of setting EventTypes. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:
      • Device has not been closed,
      • CapKeyUp is true: type is KBD_ET_DOWN or KBD_ET_DOWN_UP,
      • CapKeyUp is false: type is KBD_ET_DOWN,
      • internal property AllowAlwaysSetProperties is true or type equals the previous value of EventTypes.
      Specified by:
      eventTypes in interface POSKeyboardInterface
      Parameters:
      type - New EventTypes value
      Throws:
      jpos.JposException - If an error occurs during enable or disable