public class LowLevelMouseEvent extends LowLevelEvent
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.SubitemFactory.leftMouseButtonDown(),
SubitemFactory.leftMouseButtonUp(),
SubitemFactory.middleMouseButtonDown(),
SubitemFactory.middleMouseButtonUp(),
SubitemFactory.rightMouseButtonDown(),
SubitemFactory.rightMouseButtonUp(),
SubitemFactory.mouseMove(Point),
SubitemFactory.mouseWheel(int),
RootTestObject.emitLowLevelEvent(LowLevelEvent[]),
RootTestObject.emitLowLevelEvent(LowLevelEvent)| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
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. |
emitpublic static final int LEFT_BUTTON_DOWN
public static final int LEFT_BUTTON_UP
public static final int MIDDLE_BUTTON_DOWN
public static final int MIDDLE_BUTTON_UP
public static final int RIGHT_BUTTON_DOWN
public static final int RIGHT_BUTTON_UP
public static final int SCROLL
public static final int MOVE
public LowLevelMouseEvent(int kind)
LowLevelEvent representing a mouse event.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.RootTestObject.emitLowLevelEvent(LowLevelEvent[]),
RootTestObject.emitLowLevelEvent(LowLevelEvent)public LowLevelMouseEvent(int kind,
java.awt.Point pt)
LowLevelEvent representing a mouse event.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 eventRootTestObject.emitLowLevelEvent(LowLevelEvent[]),
RootTestObject.emitLowLevelEvent(LowLevelEvent)public LowLevelMouseEvent(int kind,
int scrollAmount)
LowLevelEvent representing a mouse event.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 scrollRootTestObject.emitLowLevelEvent(LowLevelEvent[]),
RootTestObject.emitLowLevelEvent(LowLevelEvent)