|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fest.swing.driver.ComponentDriver
org.fest.swing.driver.ContainerDriver
org.fest.swing.driver.JComponentDriver
org.fest.swing.driver.JToolBarDriver
public class JToolBarDriver
Understands functional testing of s:
JToolBar
org.fest.swing.fixture in your tests.
| Field Summary |
|---|
| Fields inherited from class org.fest.swing.driver.ComponentDriver |
|---|
robot |
| Constructor Summary | |
|---|---|
JToolBarDriver(Robot robot)
Creates a new JToolBarDriver. |
|
| Method Summary | |
|---|---|
void |
floatTo(JToolBar toolBar,
int x,
int y)
Drags the to the given location, causing it to float. |
boolean |
isFloating(JToolBar toolBar)
Indicates whether the given is floating or not. |
void |
makeFloat(JToolBar toolBar)
Makes the given float. |
void |
unfloat(JToolBar toolBar)
Closes a floating , making it go back to its original container in its last known
location. |
void |
unfloat(JToolBar toolBar,
String constraint)
Drop the JToolBar to the requested constraint position. |
| Methods inherited from class org.fest.swing.driver.JComponentDriver |
|---|
clientProperty, invokeAction, isVisible, isVisible, requireToolTip, requireToolTip, scrollToVisible |
| Methods inherited from class org.fest.swing.driver.ContainerDriver |
|---|
move, resize, resizeHeight, resizeWidth |
| Methods inherited from class org.fest.swing.driver.ComponentDriver |
|---|
assertIsEnabledAndShowing, click, click, click, click, click, doubleClick, drag, dragOver, drop, focus, focusAndWaitForFocusGain, invokePopupMenu, invokePopupMenu, moveMouseIgnoringAnyError, moveMouseIgnoringAnyError, performAccessibleActionOf, pressAndReleaseKey, pressAndReleaseKey, pressAndReleaseKeys, pressKey, propertyName, releaseKey, requireDisabled, requireEnabled, requireEnabled, requireFocused, requireNotVisible, requireSize, requireVisible, rightClick, settings, waitForShowing |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JToolBarDriver(Robot robot)
JToolBarDriver.
robot - the robot to use to simulate user input.| Method Detail |
|---|
@RunsInEDT public boolean isFloating(JToolBar toolBar)
JToolBar is floating or not.
toolBar - the target JToolBar.
true if the JToolBar is floating, false otherwise.public void makeFloat(JToolBar toolBar)
JToolBar float.
toolBar - the target JToolBar.
IllegalStateException - if the JToolBar is disabled.
IllegalStateException - if the JToolBar is not showing on the screen.
IllegalStateException - if the JToolBar is not floatable.
ActionFailedException - if the JToolBar cannot be dragged.
@RunsInEDT
public void floatTo(JToolBar toolBar,
int x,
int y)
JToolBar to the given location, causing it to float.
toolBar - the target JToolBar.x - the horizontal coordinate of the location to drag the JToolBar to.y - the vertical coordinate of the location to drag the JToolBar to.
IllegalStateException - if the JToolBar is disabled.
IllegalStateException - if the JToolBar is not showing on the screen.
IllegalStateException - if the JToolBar is not floatable.
ActionFailedException - if the JToolBar cannot be dragged.
@RunsInEDT
public void unfloat(JToolBar toolBar,
String constraint)
JToolBar to the requested constraint position. The constraint position must be one of the
constants NORTH, EAST,
SOUTH, or WEST.
toolBar - the target JToolBar.constraint - the constraint position.
IllegalStateException - if the JToolBar is disabled.
IllegalStateException - if the JToolBar is not showing on the screen.
IllegalArgumentException - if the constraint has an invalid value.
ActionFailedException - if the dock container cannot be found.@RunsInEDT public void unfloat(JToolBar toolBar)
JToolBar, making it go back to its original container in its last known
location.
toolBar - the target JToolBar.
IllegalStateException - if the JToolBar is disabled.
IllegalStateException - if the JToolBar is not showing on the screen.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||