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
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 Summary
FieldsModifier and TypeFieldDescriptionboolean
UPOS property CapKeyUp.int
UPOS property EventTypes.int
UPOS property POSKeyData.int
UPOS property POSKeyEventType.Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
AllowAlwaysSetProperties, AllowDeprecatedMethods, AsyncInputActive, AsyncMode, AutoDisable, CapStatisticsReporting, CapUpdateStatistics, CheckHealthText, Claimed, Claiming, ClaimWaiters, CurrentCommands, CurrentUnitID, DataCount, DataEventEnabled, DataEventList, Device, DeviceEnabled, DeviceServiceDescription, DeviceServiceVersion, DevProps, ErrorString, ErrorUnits, EventCB, EventList, EventSource, EventString, EventUnitID, EventUnits, ExclusiveAllowed, ExclusiveNo, ExclusiveUse, ExclusiveYes, FirstEnableHappened, FlagWhenIdle, FlagWhenIdleStatusValue, FreezeEvents, Index, LogicalName, MaximumConfirmationEventWaitingTime, OutputID, PowerNotify, PowerState, SerializedRequestRunner, SerializedRequests, State, StrictFIFOEventHandling, SuspendedCommands, SuspendedConcurrentCommands, UnitsOnline, UsesSubsystemUnits
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Clear data properties.void
eventTypes(int type)
Final part of setting EventTypes.void
Initialization of properties that must be initialized during open.Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
addProperties, asyncMode, attachWaiter, autoDisable, checkForDeprecation, checkHealth, checkProperties, claim, clearErrorProperties, clearInput, clearOutput, clearOutputErrorProperties, close, compareFirmwareVersion, dataEventEnabled, deviceEnabled, directIO, directIO, flagWhenIdle, freezeEvents, getClaimingInstance, handlePowerStateOnEnable, initOnClaim, initOnEnable, initOnFirstEnable, newJposOutputRequest, open, powerNotify, release, releaseWaiter, removeFromPropertySetList, resetStatistics, retrieveStatistics, retryInput, retryOutput, signalWaiter, unitDataCount, updateFirmware, updateFirmware, updateStatistics, waitWaiter
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.gmxhome.conrad.jpos.jpos_base.JposBaseInterface
asyncMode, autoDisable, checkHealth, claim, clearInput, clearOutput, close, compareFirmwareVersion, dataEventEnabled, deviceEnabled, directIO, directIO, flagWhenIdle, freezeEvents, handlePowerStateOnEnable, newJposOutputRequest, open, powerNotify, release, removeFromPropertySetList, resetStatistics, retrieveStatistics, retryInput, retryOutput, unitDataCount, updateFirmware, updateFirmware, updateStatistics
-
Field Details
-
CapKeyUp
public boolean CapKeyUpUPOS property CapKeyUp. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
EventTypes
public int EventTypesUPOS property EventTypes. Default: ET_DOWN. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
POSKeyData
public int POSKeyDataUPOS property POSKeyData. -
POSKeyEventType
public int POSKeyEventTypeUPOS 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 classJposCommonProperties
-
clearDataProperties
public void clearDataProperties()Description copied from class:JposCommonProperties
Clear data properties. Performed during ClearInput and ClearInputProperties.- Overrides:
clearDataProperties
in classJposCommonProperties
-
eventTypes
public void eventTypes(int type) throws jpos.JposExceptionDescription 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 interfacePOSKeyboardInterface
- Parameters:
type
- New EventTypes value- Throws:
jpos.JposException
- If an error occurs during enable or disable
-