|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fest.swing.core.MouseClickInfo
public final class MouseClickInfo
Understands information about clicking a mouse button.
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);
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
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 ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||