com.ibm.eNetwork.beans.HOD.event
Class SendKeyEvent
java.lang.Object
|
+--java.util.EventObject
|
+--com.ibm.eNetwork.beans.HOD.event.HODEvent
|
+--com.ibm.eNetwork.beans.HOD.event.SendKeyEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class SendKeyEvent
- extends com.ibm.eNetwork.beans.HOD.event.HODEvent
The send key event. Fired to SendKeyListeners, such as Session or Terminal,
to send keystrokes and functions to the host. The event contains a string
representing either one or more characters or functions in any combination.
It also contains the java.awt.event.KeyEvent, if the SendKeyEvent was generated
by the Screen bean. User generated SendKeyEvents can set the KeyEvent to null.
The functions are formatted in the ECLPS.SendKeys()
mnemonic keyword style.
- See Also:
- SendKeyListener,
Screen,
KeyPad,
KeyRemap,
ECLPS.SendKeys()
- See Also:
- Serialized Form
Constructor Summary |
SendKeyEvent(java.lang.Object source,
java.lang.String keys,
java.awt.event.KeyEvent ke)
Constructs a new send key event with the specified source and keys. |
Method Summary |
java.awt.event.KeyEvent |
getKeyEvent()
Get the java.awt.event.KeyEvent object associated with the SendKeyEvent
object as set by the Screen bean. |
java.lang.String |
getKeys()
Returns the keys or function associated with this event. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SendKeyEvent
public SendKeyEvent(java.lang.Object source,
java.lang.String keys,
java.awt.event.KeyEvent ke)
- Constructs a new send key event with the specified source and keys. The
java.awt.event.KeyEvent can be used to let SendKeyListeners know the
actual key pressed that generated this SendKeyEvent, though it
is not necessary.
- Parameters:
source
- The source of the SendKeyEvent.keys
- The SendKey string.ke
- The java.awt.event.KeyEvent. This can be null.
getKeys
public java.lang.String getKeys()
- Returns the keys or function associated with this event.
getKeyEvent
public java.awt.event.KeyEvent getKeyEvent()
- Get the java.awt.event.KeyEvent object associated with the SendKeyEvent
object as set by the Screen bean. Note that this method can return null.