|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fest.swing.fixture.ComponentFixture<JSplitPane>
org.fest.swing.fixture.JSplitPaneFixture
public class JSplitPaneFixture
Understands functional testing of
s:
JSplitPane
Field Summary |
---|
Fields inherited from class org.fest.swing.fixture.ComponentFixture |
---|
BACKGROUND_PROPERTY, FONT_PROPERTY, FOREGROUND_PROPERTY, robot, target |
Constructor Summary | |
---|---|
JSplitPaneFixture(Robot robot,
JSplitPane target)
Creates a new . |
|
JSplitPaneFixture(Robot robot,
String spinnerName)
Creates a new . |
Method Summary | |
---|---|
JSplitPaneFixture |
click()
Simulates a user clicking this fixture's . |
JSplitPaneFixture |
click(MouseButton button)
Simulates a user clicking this fixture's . |
JSplitPaneFixture |
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. |
JSplitPaneFixture |
doubleClick()
Simulates a user double-clicking this fixture's . |
protected void |
driver(JSplitPaneDriver newDriver)
Sets the to be used by this fixture. |
JSplitPaneFixture |
focus()
Gives input focus to this fixture's . |
JSplitPaneFixture |
moveDividerTo(int location)
Simulates a user moving the divider of this fixture's . |
JSplitPaneFixture |
pressAndReleaseKey(KeyPressInfo keyPressInfo)
Simulates a user pressing given key with the given modifiers on this fixture's . |
JSplitPaneFixture |
pressAndReleaseKeys(int... keyCodes)
Simulates a user pressing and releasing the given keys on this fixture's . |
JSplitPaneFixture |
pressKey(int keyCode)
Simulates a user pressing the given key on this fixture's . |
JSplitPaneFixture |
releaseKey(int keyCode)
Simulates a user releasing the given key on this fixture's . |
JSplitPaneFixture |
requireDisabled()
Asserts that this fixture's is disabled. |
JSplitPaneFixture |
requireEnabled()
Asserts that this fixture's is enabled. |
JSplitPaneFixture |
requireEnabled(Timeout timeout)
Asserts that this fixture's is enabled. |
JSplitPaneFixture |
requireFocused()
Asserts that this fixture's has input focus. |
JSplitPaneFixture |
requireNotVisible()
Asserts that this fixture's is not visible. |
JSplitPaneFixture |
requireToolTip(Pattern pattern)
Asserts that the toolTip in this fixture's matches the given regular expression
pattern. |
JSplitPaneFixture |
requireToolTip(String expected)
Asserts that the toolTip in this fixture's matches the given value. |
JSplitPaneFixture |
requireVisible()
Asserts that this fixture's is visible. |
JSplitPaneFixture |
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. |
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 JSplitPaneFixture(Robot robot, JSplitPane target)
JSplitPaneFixture
.
robot
- performs simulation of user events on the given JSplitPane
.target
- the JSplitPane
to be managed by this fixture.
NullPointerException
- if robot
is null
.
NullPointerException
- if target
is null
.public JSplitPaneFixture(Robot robot, String spinnerName)
JSplitPaneFixture
.
robot
- performs simulation of user events on a JSplitPane
.spinnerName
- the name of the JSplitPane
to find using the given Robot
.
ComponentLookupException
- if a matching JSplitPane
could not be found.
ComponentLookupException
- if more than one matching JSplitPane
is found.Method Detail |
---|
protected final void driver(JSplitPaneDriver newDriver)
JSplitPaneDriver
to be used by this fixture.
newDriver
- the new JSplitPaneDriver
.
NullPointerException
- if the given driver is null
.public JSplitPaneFixture moveDividerTo(int location)
JSplitPane
.
Since 1.2, this method respects the minimum and maximum values of the left and right components inside this
fixture's JSplitPane
.
location
- the location to move the divider to.
IllegalStateException
- if this fixture's JSplitPane
is disabled.
IllegalStateException
- if this fixture's JSplitPane
is not showing on the screen.public JSplitPaneFixture click()
JSplitPane
.
click
in interface MouseInputSimulationFixture
IllegalStateException
- if this fixture's JSplitPane
is disabled.
IllegalStateException
- if this fixture's JSplitPane
is not showing on the screen.public JSplitPaneFixture click(MouseButton button)
JSplitPane
.
click
in interface MouseInputSimulationFixture
button
- the button to click.
NullPointerException
- if the given MouseButton
is null
.
IllegalStateException
- if this fixture's JSplitPane
is disabled.
IllegalStateException
- if this fixture's JSplitPane
is not showing on the screen.public JSplitPaneFixture click(MouseClickInfo mouseClickInfo)
JSplitPane
.
click
in interface MouseInputSimulationFixture
mouseClickInfo
- 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 JSplitPane
is disabled.
IllegalStateException
- if this fixture's JSplitPane
is not showing on the screen.public JSplitPaneFixture doubleClick()
JSplitPane
.
doubleClick
in interface MouseInputSimulationFixture
IllegalStateException
- if this fixture's JSplitPane
is disabled.
IllegalStateException
- if this fixture's JSplitPane
is not showing on the screen.public JSplitPaneFixture rightClick()
JSplitPane
.
rightClick
in interface MouseInputSimulationFixture
IllegalStateException
- if this fixture's JSplitPane
is disabled.
IllegalStateException
- if this fixture's JSplitPane
is not showing on the screen.public JSplitPaneFixture focus()
JSplitPane
.
focus
in interface FocusableComponentFixture
IllegalStateException
- if this fixture's JSplitPane
is disabled.
IllegalStateException
- if this fixture's JSplitPane
is not showing on the screen.public JSplitPaneFixture pressAndReleaseKey(KeyPressInfo keyPressInfo)
JSplitPane
.
Modifiers is a mask from the available InputEvent
masks.
pressAndReleaseKey
in interface KeyboardInputSimulationFixture
keyPressInfo
- 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 JSplitPane
is disabled.
IllegalStateException
- if this fixture's JSplitPane
is not showing on the screen.KeyPressInfo
public JSplitPaneFixture pressAndReleaseKeys(int... keyCodes)
JSplitPane
. This
method does not affect the current focus.
pressAndReleaseKeys
in interface KeyboardInputSimulationFixture
keyCodes
- 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 JSplitPane
is disabled.
IllegalStateException
- if this fixture's JSplitPane
is not showing on the screen.KeyEvent
public JSplitPaneFixture pressKey(int keyCode)
JSplitPane
.
pressKey
in interface KeyboardInputSimulationFixture
keyCode
- 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 JSplitPane
is disabled.
IllegalStateException
- if this fixture's JSplitPane
is not showing on the screen.KeyEvent
public JSplitPaneFixture releaseKey(int keyCode)
JSplitPane
.
releaseKey
in interface KeyboardInputSimulationFixture
keyCode
- 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 JSplitPane
is disabled.
IllegalStateException
- if this fixture's JSplitPane
is not showing on the screen.KeyEvent
public JSplitPaneFixture requireFocused()
JSplitPane
has input focus.
requireFocused
in interface FocusableComponentFixture
AssertionError
- if this fixture's JSplitPane
does not have input focus.public JSplitPaneFixture requireEnabled()
JSplitPane
is enabled.
requireEnabled
in interface StateVerificationFixture
AssertionError
- if this fixture's JSplitPane
is disabled.public JSplitPaneFixture requireEnabled(Timeout timeout)
JSplitPane
is enabled.
requireEnabled
in interface StateVerificationFixture
timeout
- the time this fixture will wait for the component to be enabled.
WaitTimedOutError
- if this fixture's JSplitPane
is never enabled.public JSplitPaneFixture requireDisabled()
JSplitPane
is disabled.
requireDisabled
in interface StateVerificationFixture
AssertionError
- if this fixture's JSplitPane
is enabled.public JSplitPaneFixture requireVisible()
JSplitPane
is visible.
requireVisible
in interface StateVerificationFixture
AssertionError
- if this fixture's JSplitPane
is not visible.public JSplitPaneFixture requireNotVisible()
JSplitPane
is not visible.
requireNotVisible
in interface StateVerificationFixture
AssertionError
- if this fixture's JSplitPane
is visible.public JSplitPaneFixture requireToolTip(String expected)
JSplitPane
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 JSplitPane
does not match the given value.public JSplitPaneFixture requireToolTip(Pattern pattern)
JSplitPane
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 JSplitPane
does not match the given regular
expression.public Object clientProperty(Object key)
JSplitPane
, 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
.public JPopupMenuFixture showPopupMenu()
JSplitPane
as the invoker of the pop-up menu.
showPopupMenu
in interface JPopupMenuInvokerFixture
IllegalStateException
- if this fixture's JSplitPane
is disabled.
IllegalStateException
- if this fixture's JSplitPane
is not showing on the screen.
ComponentLookupException
- if a pop-up menu cannot be found.public JPopupMenuFixture showPopupMenuAt(Point p)
JSplitPane
as the invoker of the
pop-up menu.
showPopupMenuAt
in interface JPopupMenuInvokerFixture
p
- the given point where to show the pop-up menu.
IllegalStateException
- if this fixture's JSplitPane
is disabled.
IllegalStateException
- if this fixture's JSplitPane
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 |