public class JToolBarFixture extends AbstractSwingContainerFixture<JToolBarFixture,JToolBar,JToolBarDriver>
JToolBar
s.Modifier and Type | Class and Description |
---|---|
static class |
JToolBarFixture.UnfloatConstraint
Constraints used to unfloat a floating
JToolBar s. |
BACKGROUND_PROPERTY, FONT_PROPERTY, FOREGROUND_PROPERTY
Constructor and Description |
---|
JToolBarFixture(Robot robot,
JToolBar target)
Creates a new
JToolBarFixture . |
JToolBarFixture(Robot robot,
String toolbarName)
Creates a new
JToolBarFixture . |
Modifier and Type | Method and Description |
---|---|
protected JToolBarDriver |
createDriver(Robot robot) |
JToolBarFixture |
floatTo(Point point)
Simulates a user dragging this fixture's
JToolBar to the given location, causing it to float. |
JToolBarFixture |
unfloat()
Simulates a user unfloating this fixture's
JToolBar . |
JToolBarFixture |
unfloat(JToolBarFixture.UnfloatConstraint constraint)
Simulates a user dropping this fixture's
JToolBar to the requested constraint position. |
clientProperty, requireToolTip, requireToolTip, showPopupMenu, showPopupMenuAt
button, button, button, checkBox, checkBox, checkBox, comboBox, comboBox, comboBox, defaultDialogLookupTimeout, dialog, dialog, dialog, dialog, dialog, dialog, fileChooser, fileChooser, fileChooser, fileChooser, fileChooser, fileChooser, find, findByName, findByType, finder, internalFrame, internalFrame, internalFrame, label, label, label, list, list, list, menuItem, menuItem, menuItemWithPath, optionPane, optionPane, panel, panel, panel, progressBar, progressBar, progressBar, radioButton, radioButton, radioButton, scrollBar, scrollBar, scrollBar, scrollPane, scrollPane, scrollPane, slider, slider, slider, spinner, spinner, spinner, splitPane, splitPane, splitPane, tabbedPane, tabbedPane, tabbedPane, table, table, table, textBox, textBox, textBox, toggleButton, toggleButton, toggleButton, toolBar, toolBar, toolBar, tree, tree, tree, with
background, click, click, click, doubleClick, driver, drop, equals, focus, font, foreground, hashCode, isEnabled, myself, pressAndReleaseKey, pressAndReleaseKeys, pressKey, pressKeyWhileRunning, releaseKey, replaceDriverWith, requireDisabled, requireEnabled, requireEnabled, requireFocused, requireNotVisible, requireShowing, requireVisible, rightClick, robot, target, targetCastedTo
public JToolBarFixture(@Nonnull Robot robot, @Nonnull JToolBar target)
JToolBarFixture
.robot
- performs simulation of user events on the given JToolBar
.target
- the JToolBar
to be managed by this fixture.NullPointerException
- if robot
is null
.NullPointerException
- if target
is null
.public JToolBarFixture(@Nonnull Robot robot, @Nullable String toolbarName)
JToolBarFixture
.robot
- performs simulation of user events on a JToolBar
.toolbarName
- the name of the JToolBar
to find using the given Robot
.NullPointerException
- if robot
is null
.ComponentLookupException
- if a matching JToolBar
could not be found.ComponentLookupException
- if more than one matching JToolBar
is found.@Nonnull protected JToolBarDriver createDriver(@Nonnull Robot robot)
createDriver
in class AbstractComponentFixture<JToolBarFixture,JToolBar,JToolBarDriver>
@Nonnull public JToolBarFixture floatTo(@Nonnull Point point)
JToolBar
to the given location, causing it to float.point
- the point where the JToolBar
will be floating to.ActionFailedException
- if the JToolBar
is not floatable.ActionFailedException
- if the JToolBar
cannot be dragged.@Nonnull public JToolBarFixture unfloat()
JToolBar
.ActionFailedException
- if the dock container cannot be found.@Nonnull public JToolBarFixture unfloat(@Nonnull JToolBarFixture.UnfloatConstraint constraint)
JToolBar
to the requested constraint position.constraint
- the constraint position.ActionFailedException
- if the dock container cannot be found.Copyright © 2014–2019 AssertJ. All rights reserved.