|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fest.swing.fixture.ComponentFixture<JScrollPane>
org.fest.swing.fixture.JScrollPaneFixture
public class JScrollPaneFixture
Understands functional testing of s:
JScrollPane
| Field Summary |
|---|
| Fields inherited from class org.fest.swing.fixture.ComponentFixture |
|---|
BACKGROUND_PROPERTY, FONT_PROPERTY, FOREGROUND_PROPERTY, robot, target |
| Constructor Summary | |
|---|---|
JScrollPaneFixture(Robot robot,
JScrollPane target)
Creates a new . |
|
JScrollPaneFixture(Robot robot,
String panelName)
Creates a new . |
|
| Method Summary | |
|---|---|
JScrollPaneFixture |
click()
Simulates a user clicking this fixture's . |
JScrollPaneFixture |
click(MouseButton button)
Simulates a user clicking this fixture's . |
JScrollPaneFixture |
click(MouseClickInfo mouseClickInfo)
Simulates a user clicking this fixture's . |
Object |
clientProperty(Object key)
Returns the client property stored in this fixture's , under the given key. |
JScrollPaneFixture |
doubleClick()
Simulates a user double-clicking this fixture's . |
protected void |
driver(JScrollPaneDriver newDriver)
Sets the to be used by this fixture. |
JScrollPaneFixture |
focus()
Gives input focus to this fixture's . |
JScrollBarFixture |
horizontalScrollBar()
Returns a managing the horizontal of this
target's . |
JScrollPaneFixture |
pressAndReleaseKey(KeyPressInfo keyPressInfo)
Simulates a user pressing given key with the given modifiers on this fixture's . |
JScrollPaneFixture |
pressAndReleaseKeys(int... keyCodes)
Simulates a user pressing and releasing the given keys on the managed by this
fixture. |
JScrollPaneFixture |
pressKey(int keyCode)
Simulates a user pressing the given key on this fixture's . |
JScrollPaneFixture |
releaseKey(int keyCode)
Simulates a user releasing the given key on this fixture's . |
JScrollPaneFixture |
requireDisabled()
Asserts that this fixture's is disabled. |
JScrollPaneFixture |
requireEnabled()
Asserts that this fixture's is enabled. |
JScrollPaneFixture |
requireEnabled(Timeout timeout)
Asserts that this fixture's is enabled. |
JScrollPaneFixture |
requireFocused()
Asserts that this fixture's has input focus. |
JScrollPaneFixture |
requireNotVisible()
Asserts that this fixture's is not visible. |
JScrollPaneFixture |
requireToolTip(Pattern pattern)
Asserts that the toolTip in this fixture's matches the given regular expression
pattern. |
JScrollPaneFixture |
requireToolTip(String expected)
Asserts that the toolTip in this fixture's matches the given value. |
JScrollPaneFixture |
requireVisible()
Asserts that this fixture's is visible. |
JScrollPaneFixture |
rightClick()
Simulates a user right-clicking this fixture's . |
JPopupMenuFixture |
showPopupMenu()
Shows a pop-up menu using this fixture's as the invoker of the pop-up menu. |
JPopupMenuFixture |
showPopupMenuAt(Point p)
Shows a pop-up menu at the given point using this fixture's as the invoker of the
pop-up menu. |
JScrollBarFixture |
verticalScrollBar()
Returns a managing the vertical of this
target's . |
| Methods inherited from class org.fest.swing.fixture.ComponentFixture |
|---|
background, component, font, foreground, requireShowing, targetCastedTo, validateNotNull |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JScrollPaneFixture(Robot robot,
JScrollPane target)
JScrollPaneFixture.
robot - performs simulation of user events on the given JScrollPane.target - the JScrollPane to be managed by this fixture.
NullPointerException - if robot is null.
IllegalArgumentException - if target is null.
public JScrollPaneFixture(Robot robot,
String panelName)
JScrollPaneFixture.
robot - performs simulation of user events on a JScrollPane.panelName - the name of the JScrollPane to find using the given Robot.
NullPointerException - if robot is null.
ComponentLookupException - if a matching JScrollPane could not be found.
ComponentLookupException - if more than one matching JScrollPane is found.| Method Detail |
|---|
protected final void driver(JScrollPaneDriver newDriver)
JScrollPaneDriver to be used by this fixture.
newDriver - the new JScrollPaneDriver.
NullPointerException - if the given driver is null.public JScrollBarFixture horizontalScrollBar()
JScrollBarFixture managing the horizontal JScrollBar of this
target's JScrollPane.
JScrollBar of this target's JScrollPane.public JScrollBarFixture verticalScrollBar()
JScrollBarFixture managing the vertical JScrollBar of this
target's JScrollPane.
JScrollBar of this target's JScrollPane.public JScrollPaneFixture click()
JScrollPane.
click in interface MouseInputSimulationFixtureIllegalStateException - if this fixture's JScrollPane is disabled.
IllegalStateException - if this fixture's JScrollPane is not showing on the screen.public JScrollPaneFixture click(MouseButton button)
JScrollPane.
click in interface MouseInputSimulationFixturebutton - the button to click.
NullPointerException - if the given MouseButton is null.
IllegalStateException - if this fixture's JScrollPane is disabled.
IllegalStateException - if this fixture's JScrollPane is not showing on the screen.public JScrollPaneFixture click(MouseClickInfo mouseClickInfo)
JScrollPane.
click in interface MouseInputSimulationFixturemouseClickInfo - specifies the button to click and the times the button should be clicked.
NullPointerException - if the given MouseClickInfo is null.
IllegalStateException - if this fixture's JScrollPane is disabled.
IllegalStateException - if this fixture's JScrollPane is not showing on the screen.public JScrollPaneFixture doubleClick()
JScrollPane.
doubleClick in interface MouseInputSimulationFixtureIllegalStateException - if this fixture's JScrollPane is disabled.
IllegalStateException - if this fixture's JScrollPane is not showing on the screen.public JScrollPaneFixture rightClick()
JScrollPane.
rightClick in interface MouseInputSimulationFixtureIllegalStateException - if this fixture's JScrollPane is disabled.
IllegalStateException - if this fixture's JScrollPane is not showing on the screen.public JScrollPaneFixture focus()
JScrollPane.
focus in interface FocusableComponentFixtureIllegalStateException - if this fixture's JScrollPane is disabled.
IllegalStateException - if this fixture's JScrollPane is not showing on the screen.public JScrollPaneFixture pressAndReleaseKey(KeyPressInfo keyPressInfo)
JScrollPane.
Modifiers is a mask from the available InputEvent masks.
pressAndReleaseKey in interface KeyboardInputSimulationFixturekeyPressInfo - specifies the key and modifiers to press.
NullPointerException - if the given KeyPressInfo is null.
IllegalArgumentException - if the given code is not a valid key code.
IllegalStateException - if this fixture's JScrollPane is disabled.
IllegalStateException - if this fixture's JScrollPane is not showing on the screen.KeyPressInfopublic JScrollPaneFixture pressAndReleaseKeys(int... keyCodes)
JScrollPane managed by this
fixture.
pressAndReleaseKeys in interface KeyboardInputSimulationFixturekeyCodes - one or more codes of the keys to press.
NullPointerException - if the given array of codes is null.
IllegalArgumentException - if any of the given code is not a valid key code.
IllegalStateException - if this fixture's JScrollPane is disabled.
IllegalStateException - if this fixture's JScrollPane is not showing on the screen.KeyEventpublic JScrollPaneFixture pressKey(int keyCode)
JScrollPane.
pressKey in interface KeyboardInputSimulationFixturekeyCode - the code of the key to press.
IllegalArgumentException - if any of the given code is not a valid key code.
IllegalStateException - if this fixture's JScrollPane is disabled.
IllegalStateException - if this fixture's JScrollPane is not showing on the screen.KeyEventpublic JScrollPaneFixture releaseKey(int keyCode)
JScrollPane.
releaseKey in interface KeyboardInputSimulationFixturekeyCode - the code of the key to release.
IllegalArgumentException - if any of the given code is not a valid key code.
IllegalStateException - if this fixture's JScrollPane is disabled.
IllegalStateException - if this fixture's JScrollPane is not showing on the screen.KeyEventpublic JScrollPaneFixture requireFocused()
JScrollPane has input focus.
requireFocused in interface FocusableComponentFixtureAssertionError - if this fixture's JScrollPane does not have input focus.public JScrollPaneFixture requireEnabled()
JScrollPane is enabled.
requireEnabled in interface StateVerificationFixtureAssertionError - if this fixture's JScrollPane is disabled.public JScrollPaneFixture requireEnabled(Timeout timeout)
JScrollPane is enabled.
requireEnabled in interface StateVerificationFixturetimeout - the time this fixture will wait for the component to be enabled.
WaitTimedOutError - if this fixture's JScrollPane is never enabled.public JScrollPaneFixture requireDisabled()
JScrollPane is disabled.
requireDisabled in interface StateVerificationFixtureAssertionError - if this fixture's JScrollPane is enabled.public JScrollPaneFixture requireVisible()
JScrollPane is visible.
requireVisible in interface StateVerificationFixtureAssertionError - if this fixture's JScrollPane is not visible.public JScrollPaneFixture requireNotVisible()
JScrollPane is not visible.
requireNotVisible in interface StateVerificationFixtureAssertionError - if this fixture's JScrollPane is visible.public JScrollPaneFixture requireToolTip(String expected)
JScrollPane matches the given value.
requireToolTip in interface ToolTipDisplayFixtureexpected - the given value. It can be a regular expression.
AssertionError - if the toolTip in this fixture's JScrollPane does not match the given value.public JScrollPaneFixture requireToolTip(Pattern pattern)
JScrollPane matches the given regular expression
pattern.
requireToolTip in interface ToolTipDisplayFixturepattern - the regular expression pattern to match.
NullPointerException - if the given regular expression pattern is null.
AssertionError - if the toolTip in this fixture's JScrollPane does not match the given regular
expression.public Object clientProperty(Object key)
JScrollPane, under the given key.
clientProperty in interface ClientPropertyStorageFixturekey - the key to use to retrieve the client property.
null if the property was
not found.
NullPointerException - if the given key is null.public JPopupMenuFixture showPopupMenu()
JScrollPane as the invoker of the pop-up menu.
showPopupMenu in interface JPopupMenuInvokerFixtureIllegalStateException - if this fixture's JScrollPane is disabled.
IllegalStateException - if this fixture's JScrollPane is not showing on the screen.
ComponentLookupException - if a pop-up menu cannot be found.public JPopupMenuFixture showPopupMenuAt(Point p)
JScrollPane as the invoker of the
pop-up menu.
showPopupMenuAt in interface JPopupMenuInvokerFixturep - the given point where to show the pop-up menu.
IllegalStateException - if this fixture's JScrollPane is disabled.
IllegalStateException - if this fixture's JScrollPane is not showing on the screen.
ComponentLookupException - if a pop-up menu cannot be found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||