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 SummaryModifier 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- 
getLeanFtEventIDpublic int getLeanFtEventID()Description copied from interface:com.hp.lft.sdk.internal.java.LeanFtPreDefinedEventInfoReturns the Lean FT event id.- Specified by:
- getLeanFtEventIDin interface- com.hp.lft.sdk.internal.java.LeanFtPreDefinedEventInfo
- Returns:
- the Lean FT event id.
 
- 
getEventArgsDescription copied from interface:com.hp.lft.sdk.internal.java.LeanFtPreDefinedEventInfoReturns an array of the event arguments.- Specified by:
- getEventArgsin interface- com.hp.lft.sdk.internal.java.LeanFtPreDefinedEventInfo
- Returns:
- an array of the event arguments.
 
- 
getKeyboardEventReturns theKeyboardEventof this event info.- Returns:
- the KeyboardEventof this event info.
 
- 
getWhenpublic long getWhen()Returns the time the event occurred.- Returns:
- the time the event occurred.
 
- 
getModifierspublic 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.
 
- 
getKeyCodepublic 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.
 
- 
getKeyCharReturns the Unicode character generated by this event.- Returns:
- the Unicode character generated by this event.
 
- 
getKeyLocationReturns the location on the keyboard of the key that originated this event.- Returns:
- One of the KEY_LOCATION_* values from java.awt.event.KeyEvent.
 
 
-