IBM Rational Functional Tester
Version 8.1.1000
IBM Rational Functional Tester API Reference

Project Version 2.3

com.rational.test.ft.script
Class LowLevelKeyEvent

java.lang.Object   extended by com.rational.test.ft.script.LowLevelEvent
      extended by com.rational.test.ft.script.LowLevelKeyEvent

public class LowLevelKeyEvent
extends LowLevelEvent

Represents a low level key event. These should be constructed by using the SubitemFactory methods keyDown and keyUp. Emitting the event (by using com.rational.test.ft.object.interfaces.RootTestObject.emitLowLevelEvent) will play back the key action to the system under test.

See Also:
SubitemFactory.keyDown(String), SubitemFactory.keyUp(String), RootTestObject.emitLowLevelEvent(LowLevelEvent[]), RootTestObject.emitLowLevelEvent(LowLevelEvent)

Field Summary
static int KEYDOWN
           
static int KEYUP
           
 
Constructor Summary
LowLevelKeyEvent(java.lang.String key, int kind)
          Constructor for a LowLevelEvent representing a key event.
 
Method Summary
 
Methods inherited from class com.rational.test.ft.script.LowLevelEvent
emit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEYDOWN

public static final int KEYDOWN
See Also:
Constant Field Values

KEYUP

public static final int KEYUP
See Also:
Constant Field Values
Constructor Detail

LowLevelKeyEvent

public LowLevelKeyEvent(java.lang.String key,                         int kind)
Constructor for a LowLevelEvent representing a key event.

Parameters:
key - the character or the tool given name for a non-printable character.
kind - whether the event is a key down or key up. Either KEYDOWN or KEYUP
Since:
RFT2.0
See Also:
SubitemFactory.keyDown(String), RootTestObject.emitLowLevelEvent(LowLevelEvent[]), RootTestObject.emitLowLevelEvent(LowLevelEvent)