public final class MouseClickInfo extends Object
Examples:
Specify that the right button should be clicked once:
// import static org.fest.swing.fixture.MouseClickInfo.*; MouseClickInfo i = rightButton();
Specify that the left button should be clicked two times (similar to double-click):
// import static org.fest.swing.fixture.MouseClickInfo.*; MouseClickInfo i = leftButton().times(2);
Modifier and Type | Method and Description |
---|---|
MouseButton |
button()
Returns the button to click.
|
static MouseClickInfo |
button(MouseButton button)
Specifies that the given button should be clicked once.
|
static MouseClickInfo |
leftButton()
Specifies that the left button should be clicked once.
|
static MouseClickInfo |
middleButton()
Specifies that the middle button should be clicked once.
|
static MouseClickInfo |
rightButton()
Specifies that the right button should be clicked once.
|
int |
times()
Returns how many times the
should be clicked. |
MouseClickInfo |
times(int newTimes)
Specifies how many times the mouse button should be clicked.
|
String |
toString() |
public static MouseClickInfo leftButton()
public static MouseClickInfo middleButton()
public static MouseClickInfo rightButton()
public static MouseClickInfo button(MouseButton button)
button
- the mouse button to click.NullPointerException
- if button
is null
.public MouseButton button()
public int times()
mouse button
should be clicked.mouse button
should be clicked.public MouseClickInfo times(int newTimes)
newTimes
- the specified number of times to click the mouse button.public String toString()
toString
in class Object
Object.toString()
Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.