public class JTableHeaderFixture extends AbstractJComponentFixture<JTableHeaderFixture,JTableHeader,JTableHeaderDriver>
JTableHeaders.BACKGROUND_PROPERTY, FONT_PROPERTY, FOREGROUND_PROPERTY| Constructor and Description |
|---|
JTableHeaderFixture(Robot robot,
JTableHeader target)
Creates a new
JTableHeaderFixture. |
| Modifier and Type | Method and Description |
|---|---|
JTableHeaderFixture |
clickColumn(int index)
Simulates a user clicking the column under the given index, in this fixture's
JTableHeader. |
JTableHeaderFixture |
clickColumn(int index,
MouseClickInfo mouseClickInfo)
Simulates a user clicking the column under the given index, in this fixture's
JTableHeader, using the given
mouse button, the given number of times. |
JTableHeaderFixture |
clickColumn(Pattern columnNamePattern)
Simulates a user clicking the column which name matches the given regular expression pattern, in this fixture's
JTableHeader. |
JTableHeaderFixture |
clickColumn(Pattern columnNamePattern,
MouseClickInfo mouseClickInfo)
Simulates a user clicking the column which name matches the given regular expression pattern, in this fixture's
JTableHeader, using the given mouse button, the given number of times. |
JTableHeaderFixture |
clickColumn(String columnName)
Simulates a user clicking the column which name matches the given value, in this fixture's
JTableHeader. |
JTableHeaderFixture |
clickColumn(String columnName,
MouseClickInfo mouseClickInfo)
Simulates a user clicking the column which name matches the given one, in this fixture's
JTableHeader,
using the given mouse button, the given number of times. |
protected JTableHeaderDriver |
createDriver(Robot robot) |
JPopupMenuFixture |
showPopupMenuAt(int columnIndex)
Shows a pop-up menu using this fixture's
JTableHeader as the invoker of the pop-up menu. |
JPopupMenuFixture |
showPopupMenuAt(Pattern columnNamePattern)
Shows a pop-up menu using this fixture's
JTableHeader as the invoker of the pop-up menu. |
JPopupMenuFixture |
showPopupMenuAt(String columnName)
Shows a pop-up menu using this fixture's
JTableHeader as the invoker of the pop-up menu. |
clientProperty, requireToolTip, requireToolTipbackground, click, click, click, doubleClick, driver, focus, font, foreground, isEnabled, myself, pressAndReleaseKey, pressAndReleaseKeys, pressKey, releaseKey, replaceDriverWith, requireDisabled, requireEnabled, requireEnabled, requireFocused, requireNotVisible, requireShowing, requireVisible, rightClick, robot, target, targetCastedTopublic JTableHeaderFixture(@Nonnull Robot robot, @Nonnull JTableHeader target)
JTableHeaderFixture.robot - performs simulation of user events on the given JTableHeader.target - the JTableHeader to be managed by this fixture.NullPointerException - if robot is null.NullPointerException - if target is null.@Nonnull protected JTableHeaderDriver createDriver(@Nonnull Robot robot)
createDriver in class AbstractComponentFixture<JTableHeaderFixture,JTableHeader,JTableHeaderDriver>@Nonnull public JTableHeaderFixture clickColumn(int index)
JTableHeader.index - the index of the column to click.IllegalStateException - if this fixture's JTableHeader is disabled.IllegalStateException - if this fixture's JTableHeader is not showing on the screen.IndexOutOfBoundsException - if the index is out of bounds.@Nonnull public JTableHeaderFixture clickColumn(@Nullable String columnName)
JTableHeader.columnName - the column name to match. It can be a regular expression.IllegalStateException - if this fixture's JTableHeader is disabled.IllegalStateException - if this fixture's JTableHeader is not showing on the screen.LocationUnavailableException - if a column with a matching name cannot be found.@Nonnull public JTableHeaderFixture clickColumn(@Nonnull Pattern columnNamePattern)
JTableHeader.columnNamePattern - the regular expression pattern to match.IllegalStateException - if this fixture's JTableHeader is disabled.IllegalStateException - if this fixture's JTableHeader is not showing on the screen.NullPointerException - if the given regular expression is null.LocationUnavailableException - if a column with a matching name cannot be found.@Nonnull public JTableHeaderFixture clickColumn(int index, @Nonnull MouseClickInfo mouseClickInfo)
JTableHeader, using the given
mouse button, the given number of times.index - the index of the column to click.mouseClickInfo - specifies the mouse button to use and the number of times to click.NullPointerException - if the given MouseClickInfo is null.IllegalStateException - if this fixture's JTableHeader is disabled.IllegalStateException - if this fixture's JTableHeader is not showing on the screen.IndexOutOfBoundsException - if the index is out of bounds.@Nonnull public JTableHeaderFixture clickColumn(@Nullable String columnName, @Nonnull MouseClickInfo mouseClickInfo)
JTableHeader,
using the given mouse button, the given number of times.columnName - the column name to match. It can be a regular expression.mouseClickInfo - specifies the mouse button to use and the number of times to click.NullPointerException - if the given MouseClickInfo is null.IllegalStateException - if this fixture's JTableHeader is disabled.IllegalStateException - if this fixture's JTableHeader is not showing on the screen.LocationUnavailableException - if a column with a matching name cannot be found.@Nonnull public JTableHeaderFixture clickColumn(@Nonnull Pattern columnNamePattern, @Nonnull MouseClickInfo mouseClickInfo)
JTableHeader, using the given mouse button, the given number of times.columnNamePattern - the regular expression pattern to match.mouseClickInfo - specifies the mouse button to use and the number of times to click.NullPointerException - if the given MouseClickInfo is null.IllegalStateException - if this fixture's JTableHeader is disabled.IllegalStateException - if this fixture's JTableHeader is not showing on the screen.NullPointerException - if the given regular expression pattern is null.LocationUnavailableException - if a column with a matching name cannot be found.@Nonnull public JPopupMenuFixture showPopupMenuAt(int columnIndex)
JTableHeader as the invoker of the pop-up menu.columnIndex - the index of the column where the pop-up menu will be displayed.IllegalStateException - if this fixture's JTableHeader is disabled.IllegalStateException - if this fixture's JTableHeader is not showing on the screen.IndexOutOfBoundsException - if the index is out of bounds.ComponentLookupException - if a pop-up menu cannot be found.@Nonnull public JPopupMenuFixture showPopupMenuAt(@Nullable String columnName)
JTableHeader as the invoker of the pop-up menu.columnName - the name of the column where the pop-up menu will be displayed. It can be a regular expression.IllegalStateException - if this fixture's JTableHeader is disabled.IllegalStateException - if this fixture's JTableHeader is not showing on the screen.ComponentLookupException - if a pop-up menu cannot be found.@Nonnull public JPopupMenuFixture showPopupMenuAt(@Nonnull Pattern columnNamePattern)
JTableHeader as the invoker of the pop-up menu. The name of the
column to use must match the given regular expression pattern.columnNamePattern - the regular expression pattern to match.IllegalStateException - if this fixture's JTableHeader is disabled.IllegalStateException - if this fixture's JTableHeader is not showing on the screen.NullPointerException - if the given regular expression pattern is null.ComponentLookupException - if a pop-up menu cannot be found.Copyright © 2014 AssertJ. All rights reserved.