public class JToolBarDriver extends JComponentDriver
JToolBars:
org.fest.swing.fixture in your tests.robot| Constructor and Description |
|---|
JToolBarDriver(Robot robot)
Creates a new
JToolBarDriver. |
| Modifier and Type | Method and Description |
|---|---|
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. |
clientProperty, invokeAction, isVisible, isVisible, requireToolTip, requireToolTip, scrollToVisiblemove, resize, resizeHeight, resizeWidthassertIsEnabledAndShowing, 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, waitForShowingpublic JToolBarDriver(Robot robot)
JToolBarDriver.robot - the robot to use to simulate user input.@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.Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.