IBM Rational Functional Tester
Version 6.1
IBM Rational Functional Tester API Reference

Project Version 2.0

com.rational.test.ft.script
Class LowLevelMouseEvent

java.lang.Object
  extended bycom.rational.test.ft.script.LowLevelEvent
      extended bycom.rational.test.ft.script.LowLevelMouseEvent

public class LowLevelMouseEvent
extends LowLevelEvent

Represents a low level mouse event. These should be constructed by using the SubitemFactory methods leftMouseButtonDown, leftMouseButtonUp, middleMouseButtonDown, middleMouseButtonUp, rightMouseButtonDown, rightMouseButtonUp, mouseMove, and mouseScroll. Emitting the event (by using com.rational.test.ft.object.interfaces.RootTestObject.emitLowLevelEvent) will play back the mouse action to the system under test.

See Also:
SubitemFactory.leftMouseButtonDown(), SubitemFactory.leftMouseButtonUp(), SubitemFactory.middleMouseButtonDown(), SubitemFactory.middleMouseButtonUp(), SubitemFactory.rightMouseButtonDown(), SubitemFactory.rightMouseButtonUp(), SubitemFactory.mouseMove(Point), SubitemFactory.mouseWheel(int), RootTestObject.emitLowLevelEvent(LowLevelEvent[]), RootTestObject.emitLowLevelEvent(LowLevelEvent)

Field Summary
static int LEFT_BUTTON_DOWN
           
static int LEFT_BUTTON_UP
           
static int MIDDLE_BUTTON_DOWN
           
static int MIDDLE_BUTTON_UP
           
static int MOVE
           
static int RIGHT_BUTTON_DOWN
           
static int RIGHT_BUTTON_UP
           
static int SCROLL
           
 
Constructor Summary
LowLevelMouseEvent(int kind)
          Constructor for a LowLevelEvent representing a mouse event.
LowLevelMouseEvent(int kind, int scrollAmount)
          Constructor for a LowLevelEvent representing a mouse event.
LowLevelMouseEvent(int kind, java.awt.Point pt)
          Constructor for a LowLevelEvent representing a mouse event.
 
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

LEFT_BUTTON_DOWN

public static final int LEFT_BUTTON_DOWN
See Also:
Constant Field Values

LEFT_BUTTON_UP

public static final int LEFT_BUTTON_UP
See Also:
Constant Field Values

MIDDLE_BUTTON_DOWN

public static final int MIDDLE_BUTTON_DOWN
See Also:
Constant Field Values

MIDDLE_BUTTON_UP

public static final int MIDDLE_BUTTON_UP
See Also:
Constant Field Values

RIGHT_BUTTON_DOWN

public static final int RIGHT_BUTTON_DOWN
See Also:
Constant Field Values

RIGHT_BUTTON_UP

public static final int RIGHT_BUTTON_UP
See Also:
Constant Field Values

SCROLL

public static final int SCROLL
See Also:
Constant Field Values

MOVE

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

LowLevelMouseEvent

public LowLevelMouseEvent(int kind)
Constructor for a LowLevelEvent representing a mouse event.

Parameters:
kind - Whether the event is a button up or down, a mouse move, or a wheel movement. One of LEFT_BUTTON_DOWN, LEFT_BUTTON_UP, MIDDLE_BUTTON_DOWN,MIDDLE_BUTTON_UP, RIGHT_BUTTON_DOWN,RIGHT_BUTTON_UP, SCROLL, or MOVE.
Since:
RFT2.0
See Also:
RootTestObject.emitLowLevelEvent(LowLevelEvent[]), RootTestObject.emitLowLevelEvent(LowLevelEvent)

LowLevelMouseEvent

public LowLevelMouseEvent(int kind,
                          java.awt.Point pt)
Constructor for a LowLevelEvent representing a mouse event.

Parameters:
kind - Whether the event is a button up or down, a mouse move, or a wheel movement. One of LEFT_BUTTON_DOWN, LEFT_BUTTON_UP, MIDDLE_BUTTON_DOWN,MIDDLE_BUTTON_UP, RIGHT_BUTTON_DOWN,RIGHT_BUTTON_UP, SCROLL, or MOVE.
pt - The screen point associated with the mouse event
Since:
RFT2.0
See Also:
RootTestObject.emitLowLevelEvent(LowLevelEvent[]), RootTestObject.emitLowLevelEvent(LowLevelEvent)

LowLevelMouseEvent

public LowLevelMouseEvent(int kind,
                          int scrollAmount)
Constructor for a LowLevelEvent representing a mouse event.

Parameters:
kind - Whether the event is a button up or down, a mouse move, or a wheel movement. One of LEFT_BUTTON_DOWN, LEFT_BUTTON_UP, MIDDLE_BUTTON_DOWN,MIDDLE_BUTTON_UP, RIGHT_BUTTON_DOWN,RIGHT_BUTTON_UP, SCROLL, or MOVE.
scrollAmount - the number of wheel clicks to scroll
Since:
RFT2.0
See Also:
RootTestObject.emitLowLevelEvent(LowLevelEvent[]), RootTestObject.emitLowLevelEvent(LowLevelEvent)