public class JTableHeaderFixture extends ComponentFixture<JTableHeader> implements JComponentFixture
JTableHeader
s:
BACKGROUND_PROPERTY, FONT_PROPERTY, FOREGROUND_PROPERTY, robot, target
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
. |
JTableHeaderFixture |
clickColumn(int index,
MouseClickInfo mouseClickInfo)
Simulates a user clicking the column under the given index, in this fixture's
,
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
. |
JTableHeaderFixture |
clickColumn(Pattern columnNamePattern,
MouseClickInfo mouseClickInfo)
Simulates a user clicking the column which name matches the given regular expression pattern, in this fixture's
, 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
. |
JTableHeaderFixture |
clickColumn(String columnName,
MouseClickInfo mouseClickInfo)
Simulates a user clicking the column which name matches the given one, in this fixture's
, using the given mouse button, the given number of times. |
Object |
clientProperty(Object key)
Returns the client property stored in this fixture's
, under the given key. |
protected void |
driver(JTableHeaderDriver newDriver)
Sets the
to be used by this fixture. |
JTableHeaderFixture |
requireToolTip(Pattern pattern)
Asserts that the toolTip in this fixture's
matches the given regular expression
pattern. |
JTableHeaderFixture |
requireToolTip(String expected)
Asserts that the toolTip in this fixture's
matches the given value. |
JPopupMenuFixture |
showPopupMenuAt(int columnIndex)
Shows a pop-up menu using this fixture's
as the invoker of the pop-up menu. |
JPopupMenuFixture |
showPopupMenuAt(Pattern columnNamePattern)
Shows a pop-up menu using this fixture's
as the invoker of the pop-up menu. |
JPopupMenuFixture |
showPopupMenuAt(String columnName)
Shows a pop-up menu using this fixture's
as the invoker of the pop-up menu. |
background, component, font, foreground, requireShowing, targetCastedTo, validateNotNull
public JTableHeaderFixture(Robot robot, 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
.protected final void driver(JTableHeaderDriver newDriver)
JTableHeaderDriver
to be used by this fixture.newDriver
- the new JTableHeaderDriver
.NullPointerException
- if the given driver is null
.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.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.public JPopupMenuFixture showPopupMenuAt(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.public JPopupMenuFixture showPopupMenuAt(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.public JTableHeaderFixture clickColumn(int index, 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.public JTableHeaderFixture clickColumn(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.public JTableHeaderFixture clickColumn(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.public JTableHeaderFixture clickColumn(String columnName, 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.public JTableHeaderFixture clickColumn(Pattern columnNamePattern, 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.public JTableHeaderFixture requireToolTip(String expected)
JTableHeader
matches the given value.requireToolTip
in interface ToolTipDisplayFixture
expected
- the given value. It can be a regular expression.AssertionError
- if the toolTip in this fixture's JTableHeader
does not match the given value.public JTableHeaderFixture requireToolTip(Pattern pattern)
JTableHeader
matches the given regular expression
pattern.requireToolTip
in interface ToolTipDisplayFixture
pattern
- the regular expression pattern to match.NullPointerException
- if the given regular expression pattern is null
.AssertionError
- if the toolTip in this fixture's JTableHeader
does not match the given regular
expression.public Object clientProperty(Object key)
JTableHeader
, under the given key.clientProperty
in interface ClientPropertyStorageFixture
key
- the key to use to retrieve the client property.null
if the property was
not found.NullPointerException
- if the given key is null
.Copyright © 2007-2013 FEST (Fixtures for Easy Software Testing). All Rights Reserved.