public class MouseVisualizer extends DefaultVisualizer
super.activate(org.netbeans.jemmy.operators.WindowOperator).
Then, if java version is appropriate (1.3 or later) activates windows by robot mouse click on border.Operator.setVisualizer(Operator.ComponentVisualizer),
Timeouts used:
MouseVisualiser.BeforeClickTimeout - time to let a window manager to move a window as it wants
| Modifier and Type | Field and Description |
|---|---|
static int |
BOTTOM
A constant used to inform that window activating click
needs to performed on the botton side of frame.
|
static int |
LEFT
A constant used to inform that window activating click
needs to performed on the left side of frame.
|
static int |
RIGHT
A constant used to inform that window activating click
needs to performed on the right side of frame.
|
static int |
TOP
A constant used to inform that window activating click
needs to performed on the top side of frame.
|
| Constructor and Description |
|---|
MouseVisualizer()
Creates a visualizer which clicks on (0, 0) window coords.
|
MouseVisualizer(int place,
double pointLocation,
int depth,
boolean checkMouse)
Creates a visualizer which clicks on window boder.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isWindowActive(WindowOperator winOper)
Returns true if window is active.
|
protected void |
makeWindowActive(WindowOperator winOper)
Performs an atomic window-activization precedure.
|
activate, activateInternalFrame, activateWindow, checkForModal, cloneThis, initInternalFrame, makeVisible, scroll, scroll, switchTab, switchTabpublic static int TOP
MouseVisualizer()public static int BOTTOM
MouseVisualizer()public static int LEFT
MouseVisualizer()public static int RIGHT
MouseVisualizer()public MouseVisualizer()
public MouseVisualizer(int place,
double pointLocation,
int depth,
boolean checkMouse)
place == BOTTOM, for example
clicks on (width * pointLocation, height - depth) coordinates.place - One of the predefined value: TOP, BOTTOM, LEFT, RIGHTpointLocation - Proportial coordinates to click.depth - Distance from the border.checkMouse - Check if there is any java component under mouse (currently ignored)protected boolean isWindowActive(WindowOperator winOper)
DefaultVisualizerisWindowActive in class DefaultVisualizerwinOper - an operator representing the window.protected void makeWindowActive(WindowOperator winOper)
DefaultVisualizermakeWindowActive in class DefaultVisualizerwinOper - an operator representing the window.