Package | Description |
---|---|
org.assertj.swing.core |
Low-level components that enable functional testing of AWT and Swing
Component s. |
org.assertj.swing.driver |
Component -specific test drivers. |
org.assertj.swing.fixture |
Public API, source of AssertJ-Swing's power and flexibility.
|
Modifier and Type | Method and Description |
---|---|
MouseButton |
MouseClickInfo.button() |
MouseButton |
Settings.dragButton() |
static MouseButton |
MouseButton.lookup(int mask)
Returns the mouse button whose mask matches the given mask.
|
static MouseButton |
MouseButton.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MouseButton[] |
MouseButton.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static MouseClickInfo |
MouseClickInfo.button(MouseButton button)
Specifies that the given button should be clicked once.
|
void |
Robot.click(Component c,
MouseButton button)
Simulates a user clicking once the given AWT or Swing
Component using the given mouse button. |
void |
BasicRobot.click(Component c,
MouseButton button) |
void |
Robot.click(Component c,
MouseButton button,
int times)
Simulates a user clicking the given mouse button, the given times on the given AWT or Swing
Component . |
void |
BasicRobot.click(Component c,
MouseButton button,
int times) |
void |
Robot.click(Component c,
Point where,
MouseButton button,
int times)
Simulates a user clicking the given mouse button, the given times at the given position on the given AWT or Swing
Component . |
void |
BasicRobot.click(Component c,
Point where,
MouseButton button,
int times) |
void |
Robot.click(Point where,
MouseButton button,
int times)
Simulates a user clicking the given mouse button, the given times at the given absolute coordinates.
|
void |
BasicRobot.click(Point where,
MouseButton button,
int times) |
void |
Settings.dragButton(MouseButton button)
Changes the
MouseButton to use for drag operations. |
void |
Robot.pressMouse(Component c,
Point where,
MouseButton button)
Simulates a user pressing the given mouse button on the given AWT or Swing
Component . |
void |
BasicRobot.pressMouse(Component c,
Point where,
MouseButton button) |
void |
Robot.pressMouse(MouseButton button)
Simulates a user pressing a mouse button.
|
void |
BasicRobot.pressMouse(MouseButton button) |
void |
Robot.pressMouse(Point where,
MouseButton button)
Simulates a user pressing the given mouse button on the given coordinates.
|
void |
BasicRobot.pressMouse(Point where,
MouseButton button) |
void |
Robot.pressMouseWhileRunning(Component c,
Point where,
MouseButton button,
Runnable runnable)
Simulates a user pressing the given mouse button on the given AWT or Swing
Component , running the given
runnable and releasing the mouse button again. |
void |
BasicRobot.pressMouseWhileRunning(Component c,
Point where,
MouseButton button,
Runnable runnable) |
void |
Robot.pressMouseWhileRunning(MouseButton button,
Runnable runnable)
Simulates a user pressing a mouse button, running the given runnable and releasing the mouse button again.
|
void |
BasicRobot.pressMouseWhileRunning(MouseButton button,
Runnable runnable) |
void |
Robot.pressMouseWhileRunning(Point where,
MouseButton button,
Runnable runnable)
Simulates a user pressing the given mouse button on the given coordinates, running the given
runnable and releasing the mouse button again.
|
void |
BasicRobot.pressMouseWhileRunning(Point where,
MouseButton button,
Runnable runnable) |
void |
Robot.releaseMouse(MouseButton button)
Releases the given mouse button.
|
void |
BasicRobot.releaseMouse(MouseButton button) |
Modifier and Type | Method and Description |
---|---|
void |
ComponentDriver.click(Component c,
MouseButton button)
Simulates a user clicking once the given AWT or Swing
Component using the given mouse button. |
void |
ComponentDriver.click(Component c,
MouseButton button,
int times)
Simulates a user clicking the given mouse button, the given times on the given AWT or Swing
Component . |
void |
JTableDriver.click(JTable table,
TableCell cell,
MouseButton mouseButton,
int times)
Clicks the given cell, using the specified mouse button, the given number of times.
|
void |
JTableHeaderDriver.clickColumn(JTableHeader tableHeader,
int columnIndex,
MouseButton button,
int times)
Clicks the column under the given index using the given mouse button the given number of times.
|
void |
JTableHeaderDriver.clickColumn(JTableHeader tableHeader,
Pattern columnNamePattern,
MouseButton button,
int times)
Clicks the column which name matches the given regular expression pattern using the given mouse button the given
number of times.
|
void |
JTableHeaderDriver.clickColumn(JTableHeader tableHeader,
String columnName,
MouseButton button,
int times)
Clicks the column which name matches the given one using the given mouse button the given number of times.
|
void |
JListDriver.clickItem(JList<?> list,
int index,
MouseButton button,
int times)
Clicks the item under the given index, using the specified mouse button, the given number times.
|
void |
JListDriver.clickItem(JList<?> list,
Pattern pattern,
MouseButton button,
int times)
Clicks the first item matching the given regular expression pattern, using the specified mouse button, the given
number times.
|
void |
JListDriver.clickItem(JList<?> list,
String value,
MouseButton button,
int times)
Clicks the first item matching the given value, using the specified mouse button, the given number times.
|
void |
JTreeDriver.clickPath(JTree tree,
String path,
MouseButton button)
Clicks the given path, expanding parent nodes if necessary.
|
void |
JTreeDriver.clickRow(JTree tree,
int row,
MouseButton button)
Clicks the given row.
|
Modifier and Type | Method and Description |
---|---|
S |
AbstractComponentFixture.click(MouseButton button)
Simulates a user clicking this fixture's
Component . |
JTreePathFixture |
JTreePathFixture.click(MouseButton button)
Simulates a user clicking this fixture's tree node.
|
JTableCellFixture |
JTableCellFixture.click(MouseButton button)
Simulates a user clicking a cell in this fixture's table cell once, using the specified mouse button.
|
JListItemFixture |
JListItemFixture.click(MouseButton button)
Simulates a user clicking this fixture's list item.
|
S |
MouseInputSimulationFixture.click(MouseButton button)
Simulates a user clicking this fixture's
Component . |
JTreeRowFixture |
JTreeRowFixture.click(MouseButton button)
Simulates a user clicking this fixture's tree node.
|
JTableFixture |
JTableFixture.click(TableCell cell,
MouseButton button)
Simulates a user clicking a cell in this fixture's
JTable once, using the specified mouse button. |
JTreeFixture |
JTreeFixture.clickPath(String path,
MouseButton button)
Clicks the given path, expanding parent nodes if necessary.
|
JTreeFixture |
JTreeFixture.clickRow(int row,
MouseButton button)
Clicks the given row.
|
Copyright © 2014–2019 AssertJ. All rights reserved.