Package com.hp.lft.sdk.java
Class KeyboardEventInfo
java.lang.Object
com.hp.lft.sdk.java.KeyboardEventInfo
- All Implemented Interfaces:
com.hp.lft.sdk.internal.java.LeanFtPreDefinedEventInfo,EventInfo
public class KeyboardEventInfo
extends Object
implements com.hp.lft.sdk.internal.java.LeanFtPreDefinedEventInfo
A Java technology Keyboard event info to be used by fireEvent methods.
-
Method Summary
Modifier and TypeMethodDescriptionObject[]Returns an array of the event arguments.Returns theKeyboardEventof this event info.Returns the Unicode character generated by this event.intReturns the key code for the physical key pressed, independent of the character generated.Returns the location on the keyboard of the key that originated this event.intReturns the Lean FT event id.intReturns the mask of modifier keys down during event.longgetWhen()Returns the time the event occurred.
-
Method Details
-
getLeanFtEventID
public int getLeanFtEventID()Description copied from interface:com.hp.lft.sdk.internal.java.LeanFtPreDefinedEventInfoReturns the Lean FT event id.- Specified by:
getLeanFtEventIDin interfacecom.hp.lft.sdk.internal.java.LeanFtPreDefinedEventInfo- Returns:
- the Lean FT event id.
-
getEventArgs
Description copied from interface:com.hp.lft.sdk.internal.java.LeanFtPreDefinedEventInfoReturns an array of the event arguments.- Specified by:
getEventArgsin interfacecom.hp.lft.sdk.internal.java.LeanFtPreDefinedEventInfo- Returns:
- an array of the event arguments.
-
getKeyboardEvent
Returns theKeyboardEventof this event info.- Returns:
- the
KeyboardEventof this event info.
-
getWhen
public long getWhen()Returns the time the event occurred.- Returns:
- the time the event occurred.
-
getModifiers
public int getModifiers()Returns the mask of modifier keys down during event. See the documentation for java.awt.event.InputEvent.- Returns:
- the modifier keys down during event.
-
getKeyCode
public int getKeyCode()Returns the key code for the physical key pressed, independent of the character generated. For example, pressing the "a" key sends VK_A whether the character generated is "a" or "A". See the documentation for java.awt.event.KeyEvent.- Returns:
- the code for the key pressed or VK_UNDEFINED.
-
getKeyChar
Returns the Unicode character generated by this event.- Returns:
- the Unicode character generated by this event.
-
getKeyLocation
Returns the location on the keyboard of the key that originated this event.- Returns:
- One of the KEY_LOCATION_* values from java.awt.event.KeyEvent.
-