Uses of Annotation Interface
org.fest.swing.annotation.RunsInEDT
Packages that use RunsInEDT
Package
Description
Support for testing Java Applets.
Utility methods related to AWT.
Building blocks for all FEST-Swing fixtures.
Simple (but useful) data structures.
Drivers that simulate user input on GUI
Component
s.
The power and flexibility of FEST-Swing come from the fixtures in
this package.
Component formatters that create a
String
representation of GUI components.
GUI component hierarchies.
Utility methods related to images.
Launches applications from a "main" method and Java applets
Monitors that track the state of GUI components (intended for internal use only.)
Queries, executed in the event dispatch thread (EDT,) that read property values from GUI components.
-
Uses of RunsInEDT in org.fest.swing.applet
Methods in org.fest.swing.applet with annotations of type RunsInEDTModifier and TypeMethodDescriptionprivate static AppletViewer
AppletViewer.createInEDT
(Applet applet) static AppletViewer
Creates a newAppletViewer
.static AppletViewer
AppletViewer.newViewer
(Applet applet, AppletStub stub) Creates a newAppletViewer
.static AppletViewer
Creates a newAppletViewer
.void
AppletViewer.showStatus
(String status) Displays the given status message. -
Uses of RunsInEDT in org.fest.swing.awt
Methods in org.fest.swing.awt with annotations of type RunsInEDTModifier and TypeMethodDescriptionstatic Point
AWT.visibleCenterOf
(Component c) Returns a point at the center of the visible area of the given
.Component
-
Uses of RunsInEDT in org.fest.swing.cell
Classes in org.fest.swing.cell with annotations of type RunsInEDTModifier and TypeInterfaceDescriptioninterface
Understands how to edit the value of a cell in a
.JTable
-
Uses of RunsInEDT in org.fest.swing.core
Classes in org.fest.swing.core with annotations of type RunsInEDTMethods in org.fest.swing.core with annotations of type RunsInEDTModifier and TypeMethodDescriptionprivate void
Activates the given
.Window
(package private) static void
ActivateWindowTask.activateWindow
(Window w) private void
BasicRobot.activateWindowOfFocusTarget
(Component target, Component currentOwner) private JPopupMenu
BasicRobot.activePopupMenu()
private static void
BasicComponentFinder.appendComponents
(StringBuilder message, Collection<Component> found) private static Collection<Component>
FinderDelegate.childrenOfComponent
(Component c, ComponentHierarchy h) void
BasicRobot.cleanUp()
Cleans up any used resources (keyboard, mouse, open windows and
) used by this robot.ScreenLock
private void
BasicRobot.cleanUp
(boolean disposeWindows) void
BasicRobot.cleanUpWithoutDisposingWindows()
Cleans up any used resources (keyboard, mouse and
) used by this robot.ScreenLock
void
Simulates a user clicking once the given
using the left mouse button.Component
void
Simulates a user clicking at the given position on the given
.Component
void
BasicRobot.click
(Component c, Point where, MouseButton button, int times) Simulates a user clicking the given mouse button, the given times at the given position on the given
.Component
void
BasicRobot.click
(Component c, MouseButton button) Simulates a user clicking once the given
using the given mouse button.Component
void
BasicRobot.click
(Component c, MouseButton button, int times) Simulates a user clicking the given mouse button, the given times on the given
.Component
void
BasicRobot.click
(Point where, MouseButton button, int times) Simulates a user clicking the given mouse button, the given times at the given absolute coordinates.void
Simulates a user closing the given window.private ComponentLookupException
BasicComponentFinder.componentNotFound
(ComponentHierarchy h, ComponentMatcher m) (package private) void
FrameDisposer.disposeFrames()
private static void
BasicRobot.disposeWindows
(ComponentHierarchy hierarchy) private static void
FrameDisposer.doDisposeFrames()
private void
BasicRobot.doPressKey
(int keyCode) void
BasicRobot.doubleClick
(Component c) Simulates a user double-clicking the given
.Component
void
Performs a drag action at the given point.void
Ends a drag operation, releasing the mouse button over the given target location.void
Simulates a user entering the given text.BasicComponentFinder.find
(Container root, ComponentMatcher m) Finds a
using the givenComponent
in the hierarchy under the given root.ComponentMatcher
<T extends Component>
TBasicComponentFinder.find
(Container root, GenericTypeMatcher<T> m) Finds a
using the givenComponent
in the hierarchy under the given root.GenericTypeMatcher
BasicComponentFinder.find
(ComponentMatcher m) Finds a
using the givenComponent
.ComponentMatcher
<T extends Component>
TBasicComponentFinder.find
(GenericTypeMatcher<T> m) Finds a
using the givenComponent
.GenericTypeMatcher
private Component
BasicComponentFinder.find
(ComponentHierarchy h, ComponentMatcher m) (package private) Collection<Component>
FinderDelegate.find
(ComponentHierarchy h, ComponentMatcher m) private void
FinderDelegate.find
(ComponentHierarchy h, ComponentMatcher m, Component root, Set<Component> found) (package private) <T extends Component>
Collection<T>FinderDelegate.find
(ComponentHierarchy h, GenericTypeMatcher<T> m) private <T extends Component>
voidFinderDelegate.find
(ComponentHierarchy h, GenericTypeMatcher<T> m, Component root, Set<T> found) BasicRobot.findActivePopupMenu()
Returns the currently active pop-up menu, if any.private Applet
BasicRobot.findAppletDescendent
(Container c) BasicComponentFinder.findByLabel
(Container root, String label) BasicComponentFinder.findByLabel
(Container root, String label, boolean showing) <T extends Component>
TBasicComponentFinder.findByLabel
(Container root, String label, Class<T> type) <T extends Component>
TBasicComponentFinder.findByLabel
(Container root, String label, Class<T> type, boolean showing) BasicComponentFinder.findByLabel
(String label) BasicComponentFinder.findByLabel
(String label, boolean showing) <T extends Component>
TBasicComponentFinder.findByLabel
(String label, Class<T> type) <T extends Component>
TBasicComponentFinder.findByLabel
(String label, Class<T> type, boolean showing) BasicComponentFinder.findByName
(Container root, String name) Finds a
by name, in the hierarchy under the given root.Component
BasicComponentFinder.findByName
(Container root, String name, boolean showing) Finds a
by name, in the hierarchy under the given root.Component
<T extends Component>
TBasicComponentFinder.findByName
(Container root, String name, Class<T> type) Finds a
by name and type, in the hierarchy under the given root.Component
<T extends Component>
TBasicComponentFinder.findByName
(Container root, String name, Class<T> type, boolean showing) Finds a
by name and type, in the hierarchy under the given root.Component
BasicComponentFinder.findByName
(String name) Finds a
by name.Component
BasicComponentFinder.findByName
(String name, boolean showing) Finds a
by name.Component
<T extends Component>
TBasicComponentFinder.findByName
(String name, Class<T> type) Finds a
by name and type.Component
<T extends Component>
TBasicComponentFinder.findByName
(String name, Class<T> type, boolean showing) Finds a
by name and type.Component
<T extends Component>
TBasicComponentFinder.findByType
(Container root, Class<T> type) Finds a
by type in the hierarchy under the given root.Component
<T extends Component>
TBasicComponentFinder.findByType
(Container root, Class<T> type, boolean showing) Finds a
by type in the hierarchy under the given root.Component
<T extends Component>
TBasicComponentFinder.findByType
(Class<T> type, boolean showing) Finds a
by type.Component
void
Gives input focus to the given
.Component
private void
void
BasicRobot.focusAndWaitForFocusGain
(Component c) private String
BasicComponentFinder.formattedHierarchy
(Container root) (package private) static void
ComponentRequestFocusTask.giveFocusTo
(Component c) static Component
FocusOwnerFinder.inEdtFocusOwner()
Returns the focus owner.BasicRobot.invokerAndCenterOfInvoker
(JPopupMenu popupMenu) (package private) static boolean
ComponentIsFocusableQuery.isFocusable
(Component component) private static boolean
FinderDelegate.isMatching
(Component c, ComponentMatcher m) private static <T extends Component>
booleanFinderDelegate.isMatching
(Component c, GenericTypeMatcher<T> m) private boolean
BasicRobot.isWindowAncestorReadyForInput
(JPopupMenu popup) void
Makes the mouse pointer show small quick jumpy movements on the given
.Component
void
Makes the mouse pointer show small quick jumpy movements on the given
at the given point.Component
private void
BasicRobot.keyPressAndRelease
(int keyCode, int modifiers) private void
ComponentDragAndDrop.mouseMoveOnWindowsAndMacintosh
(Component target, int x, int y) private void
BasicRobot.mouseRelease
(int buttons) void
Simulates a user moving the mouse pointer to the center of the given
.Component
void
Simulates a user moving the mouse pointer to the given coordinates relative to the given
.Component
void
Simulates a user moving the mouse pointer to the given coordinates relative to the given
.Component
private static ComponentLookupException
BasicComponentFinder.multipleComponentsFound
(Collection<Component> found, ComponentMatcher m) private boolean
BasicRobot.postInvocationEvent
(EventQueue eventQueue, long timeout) void
BasicRobot.pressAndReleaseKey
(int keyCode, int... modifiers) Type the given key code with the given modifiers.void
BasicRobot.pressAndReleaseKeys
(int... keyCodes) Simulates a user pressing and releasing the given keys.void
BasicRobot.pressKey
(int keyCode) Simulates a user pressing given key.private static void
BasicComponentPrinter.print
(ComponentHierarchy hierarchy, ComponentMatcher matcher, PrintStream out) void
BasicComponentPrinter.printComponents
(PrintStream out) Prints all the components in the hierarchy.void
BasicComponentPrinter.printComponents
(PrintStream out, Container root) Prints all the components in the hierarchy under the given root.void
BasicComponentPrinter.printComponents
(PrintStream out, Class<? extends Component> type) Prints only the components of the given type in the hierarchy.void
BasicComponentPrinter.printComponents
(PrintStream out, Class<? extends Component> type, Container root) Prints all the components of the given type in the hierarchy under the given root.void
BasicRobot.releaseKey
(int keyCode) Simulates a user releasing the given key.void
BasicRobot.releaseMouse
(MouseButton button) Releases the given mouse button.void
BasicRobot.releaseMouseButtons()
Releases any mouse button(s) used by the robot.void
BasicRobot.requireNoJOptionPaneIsShowing()
Ensures that there is no
showing, and potentially blocking GUI tests.JOptionPane
(package private) void
UnexpectedJOptionPaneFinder.requireNoJOptionPaneIsShowing()
void
BasicRobot.rightClick
(Component c) Simulates a user right-clicking the given
.Component
private static Collection<? extends Component>
FinderDelegate.rootsOf
(ComponentHierarchy h) BasicRobot.showPopupMenu
(Component invoker) Shows a pop-up menu.BasicRobot.showPopupMenu
(Component invoker, Point location) Shows a pop-up menu at the given coordinates.void
BasicRobot.showWindow
(Window w) Safely display a window with proper EDT synchronization.void
BasicRobot.showWindow
(Window w, Dimension size) Safely display a window with proper EDT synchronization.void
BasicRobot.showWindow
(Window w, Dimension size, boolean pack) Safely display a window with proper EDT synchronization.void
BasicRobot.type
(char character) Types the given character.private boolean
BasicRobot.waitForComponentToBeReady
(Component c, long timeout) void
BasicRobot.waitForIdle()
Wait for an idle AWT event queue.private void
BasicRobot.waitForWindow
(Window w) BasicRobot.windowAncestorsOf
(Component one, Component two) -
Uses of RunsInEDT in org.fest.swing.data
Methods in org.fest.swing.data with annotations of type RunsInEDTModifier and TypeMethodDescriptionprivate static TableCell
TableCellByColumnId.findCell
(JTable table, JTableCellReader cellReader) Finds a cell in the given
that has a matching row index and column id.JTable
TableCellFinder.findCell
(JTable table, JTableCellReader cellReader) Finds a cell in the given
based on some search criteria specified by this finder.JTable
TableCellInRowByValue.findCell
(JTable table, JTableCellReader cellReader) Finds a cell in the given
that: is located in the first row whose values match the given ones has a matching row indexJTable
private static int
TableCellInRowByValue.findRowIndex
(JTable table, JTableCellReader cellReader, String[] values) private static int
TableCellInSelectedRow.selectedRowOf
(JTable table) -
Uses of RunsInEDT in org.fest.swing.driver
Classes in org.fest.swing.driver with annotations of type RunsInEDTModifier and TypeClassDescription(package private) final class
Understands an action, executed in the event dispatch thread, that returns the number of items in a given
.JComboBox
(package private) final class
Understands an action, executed in the event dispatch thread, that returns the number of items in a given
.JList
Methods in org.fest.swing.driver with annotations of type RunsInEDTModifier and TypeMethodDescriptionprivate static Component
JComboBoxDriver.accessibleEditorOf
(JComboBox comboBox) private JTextComponent
JTableTextComponentEditorCellWriter.activateEditorWithDoubleClick
(JTable table, int row, int column, Point cellLocation) private JTextComponent
JTableTextComponentEditorCellWriter.activateEditorWithF2Key
(JTable table, int row, int column, Point cellLocation) private void
JMenuItemDriver.activateParentIfIsAMenu
(JMenuItemLocation location) private static boolean
private String
JOptionPaneDriver.actualMessageTypeAsText
(JOptionPane optionPane) private static String[]
JTabbedPaneDriver.allTabTitlesIn
(JTabbedPane tabbedPane) private static AppletContext
JAppletDriver.appletContext
(JApplet applet) JAppletDriver.appletContextOf
(JApplet applet) Returns the
of the givenAppletContext
.JApplet
JFileChooserDriver.approveButton
(JFileChooser fileChooser) Finds the "Approve" button in the given
.JFileChooser
private void
JComboBoxDriver.assertEditable
(JComboBox comboBox, boolean expected) private void
JTextComponentDriver.assertEditable
(JTextComponent textBox, boolean editable) private void
JTreeDriver.assertEditable
(JTree tree, boolean editable) private void
JOptionPaneDriver.assertEqualMessageType
(JOptionPane optionPane, int expected) protected static void
ComponentDriver.assertIsEnabledAndShowing
(Component c) Validates that the given
is enabled and showing on the screen.Component
private void
JProgressBarDriver.assertIsInBetweenMinAndMax
(JProgressBar progressBar, int value) private static void
JTableDriver.assertNoSelection
(JTable table) private void
AbstractButtonDriver.assertThatButtonIsSelected
(AbstractButton button, boolean selected) JTableDriver.background
(JTable table, TableCell cell) Returns the background color of the given table cell.JOptionPaneDriver.button
(JOptionPane optionPane) Deprecated.in 1.2JOptionPaneDriver.buttonWithText
(JOptionPane optionPane, String text) Finds a button in the
containing the given text.JOptionPane
JOptionPaneDriver.buttonWithText
(JOptionPane optionPane, Pattern pattern) Finds a button in the
whose text matches the given regular expression pattern.JOptionPane
private JButton
JOptionPaneDriver.buttonWithTextFromUIManager
(JOptionPane optionPane, String key) JFileChooserDriver.cancelButton
(JFileChooser fileChooser) Finds the "Cancel" button in the given
.JFileChooser
JOptionPaneDriver.cancelButton
(JOptionPane optionPane) Finds the "Cancel" button in the
.JOptionPane
void
AbstractJTableCellWriter.cancelCellEditing
(JTable table, int row, int column) Cancels editing the given cell of the
.JTable
void
JTableDriver.cancelCellEditing
(JTable table, TableCell cell) Cancels editing the given cell of the
, using this driver'sJTable
.JTableCellWriter
(package private) static void
JTableCancelCellEditingTask.cancelEditing
(JTable table, int row, int column) (package private) static void
JTableCancelCellEditingTask.cancelEditing
(TableCellEditor cellEditor) Returns a cell from the given
whose value matches the given one.JTable
Returns a cell from the given
whose value matches the given regular expression pattern.JTable
JTableDriver.cell
(JTable table, TableCellFinder cellFinder) Returns a cell from the given
using the given cell finder.JTable
private static Color
JTableDriver.cellBackground
(JTable table, TableCell cell, JTableCellReader cellReader) protected static TableCellEditor
AbstractJTableCellWriter.cellEditor
(JTable table, int row, int column) Returns the editor for the given table cell.JTableDriver.cellEditor
(JTable table, TableCell cell) Returns the editor in the given cell of the
, using this driver'sJTable
.JTableCellWriter
private static Component
AbstractJTableCellWriter.cellEditorComponent
(JTable table, int row, int column) private static Font
JTableDriver.cellFont
(JTable table, TableCell cell, JTableCellReader cellReader) private static Color
JTableDriver.cellForeground
(JTable table, TableCell cell, JTableCellReader cellReader) protected static Point
AbstractJTableCellWriter.cellLocation
(JTable table, int row, int column, JTableLocation location) Returns the location of the given table cell.private static org.fest.assertions.Description
JTableDriver.cellProperty
(JTable table, String propertyName) JTableDriver.cellSelectionInfo
(JTable table, int row, int column, JTableLocation location) private static String
JTableDriver.cellValue
(JTable table, int row, int column, JTableCellReader cellReader) private static String
JTableDriver.cellValue
(JTable table, TableCell cell, JTableCellReader cellReader) (package private) static Object
JTableCellValueQuery.cellValueOf
(JTable table, int row, int column) private org.fest.assertions.Description
JTableDriver.cellValueProperty
(JTable table, TableCell cell) (package private) static TableCell
JTableMatchingCellQuery.cellWithValue
(JTable table, TextMatcher matcher, JTableCellReader cellReader) (package private) static Point
JListMatchingItemQuery.centerOfMatchingItemCell
(JList list, String value, JListCellReader cellReader) (package private) static int
JTreeChildOfPathCountQuery.childCount
(JTree tree, TreePath path) private void
JTreeDriver.clearSelection
(JTree tree) private static void
JListDriver.clearSelectionOf
(JList list) (package private) static void
JTreeClearSelectionTask.clearSelectionOf
(JTree tree) void
Simulates a user clicking once the given
using the left mouse button.Component
void
Simulates a user clicking at the given position on the given
.Component
void
ComponentDriver.click
(Component c, MouseButton button) Simulates a user clicking once the given
using the given mouse button.Component
void
ComponentDriver.click
(Component c, MouseButton button, int times) Simulates a user clicking the given mouse button, the given times on the given
.Component
void
ComponentDriver.click
(Component c, MouseClickInfo mouseClickInfo) Simulates a user clicking the given mouse button, the given times on the given
.Component
void
Finds and selects the given
.JMenuItem
void
JTableDriver.click
(JTable table, TableCell cell, MouseButton mouseButton, int times) Clicks the given cell, using the specified mouse button, the given number of times.void
JFileChooserDriver.clickApproveButton
(JFileChooser fileChooser) Finds and clicks the "Approve" button in the given
.JFileChooser
void
JFileChooserDriver.clickCancelButton
(JFileChooser fileChooser) Finds and clicks the "Cancel" button in the given
.JFileChooser
void
JTableHeaderDriver.clickColumn
(JTableHeader tableHeader, int columnIndex) Clicks the column under the given index.void
JTableHeaderDriver.clickColumn
(JTableHeader tableHeader, int columnIndex, MouseButton button, int times) Clicks the column under the given index using the given mouse button the given number of times.void
JTableHeaderDriver.clickColumn
(JTableHeader tableHeader, String columnName) Clicks the column which name matches the given value.void
JTableHeaderDriver.clickColumn
(JTableHeader tableHeader, String columnName, MouseButton button, int times) Clicks the column which name matches the given one using the given mouse button the given number of times.void
JTableHeaderDriver.clickColumn
(JTableHeader tableHeader, Pattern columnNamePattern) Clicks the column which name matches the given regular expression pattern.void
JTableHeaderDriver.clickColumn
(JTableHeader tableHeader, Pattern columnNamePattern, MouseButton button, int times) Clicks the column which name matches the given regular expression pattern using the given mouse button the given number of times.private void
JTableHeaderDriver.clickColumn
(JTableHeader tableHeader, TextMatcher matcher, MouseButton button, int times) void
JListDriver.clickItem
(JList list, int index, MouseButton button, int times) Clicks the item under the given index, using the specified mouse button, the given number times.void
Clicks the given path, expanding parent nodes if necessary.void
JTreeDriver.clickPath
(JTree tree, String path, MouseButton button) Clicks the given path, expanding parent nodes if necessary.void
JTreeDriver.clickPath
(JTree tree, String path, MouseClickInfo mouseClickInfo) Clicks the given path, expanding parent nodes if necessary.void
Clicks the given row.void
JTreeDriver.clickRow
(JTree tree, int row, MouseButton button) Clicks the given row.private void
JTreeDriver.clickRow
(JTree tree, int row, MouseButton button, int times) void
JTreeDriver.clickRow
(JTree tree, int row, MouseClickInfo mouseClickInfo) Clicks the given row.JComponentDriver.clientProperty
(JComponent c, Object key) Returns the client property stored in the given
, under the given key.JComponent
void
JInternalFrameDriver.close
(JInternalFrame internalFrame) Closes the given
.JInternalFrame
void
Closing the
.Window
private static Point
private static URL
JAppletDriver.codeBaseOf
(JApplet applet) Returns the URL of the directory that contains the given
.JApplet
void
JTreeDriver.collapsePath
(JTree tree, String path) Collapses the given path, is possible.void
JTreeDriver.collapseRow
(JTree tree, int row) Collapses the given row, is possible.(package private) static int
JTableColumnCountQuery.columnCountOf
(JTable table) int
JTableDriver.columnIndex
(JTable table, Object columnId) Returns the index of the column in the given
whose id matches the given one.JTable
private static void
void
ComponentShownWaiter.componentShown
(ComponentEvent e) Notification that the component to wait for is finally shown on the screen.(package private) static String[]
JComboBoxContentQuery.contents
(JComboBox comboBox, JComboBoxCellReader cellReader) (package private) static String[]
JListContentQuery.contents
(JList list, JListCellReader cellReader) String[][]
String[]
JComboBoxDriver.contentsOf
(JComboBox comboBox) Returns an array ofString
s that represents the contents of the given
list.JComboBox
String[]
JListDriver.contentsOf
(JList list) Returns an array ofString
s that represents the contents of the given
, using this driver'sJList
.JListCellReader
void
Decrements the value of the
.JSpinner
void
Decrements the value of the
the given number of times.JSpinner
void
Deiconifies the given
.Frame
void
JInternalFrameDriver.deiconify
(JInternalFrame internalFrame) De-iconifies the given
.JInternalFrame
void
JTextComponentDriver.deleteText
(JTextComponent textBox) Deletes the text of the
.JTextComponent
private void
AbstractJTableCellWriter.doCancelCellEditing()
private void
AbstractJTableCellWriter.doCancelCellEditing
(JTable table, int row, int column) private void
private static URL
JAppletDriver.documentBase
(JApplet applet) JAppletDriver.documentBaseOf
(JApplet applet) Returns the URL of the document the given
is embedded.JApplet
private void
private static void
WindowDriver.doMoveToBack
(Window w) private static void
WindowDriver.doMoveToFront
(Window w) private static void
JTableCheckBoxEditorCellWriter.doStartCellEditing
(JTable table, int row, int column, JTableLocation location) private JComboBox
JTableComboBoxEditorCellWriter.doStartCellEditing
(JTable table, int row, int column) private JTextComponent
JTableTextComponentEditorCellWriter.doStartCellEditing
(JTable table, int row, int column) private void
AbstractJTableCellWriter.doStopCellEditing()
private void
AbstractJTableCellWriter.doStopCellEditing
(JTable table, int row, int column) void
ComponentDriver.doubleClick
(Component c) Simulates a user double-clicking the given
.Component
void
JTreeDriver.doubleClickPath
(JTree tree, String path) Double-clicks the given path.void
JTreeDriver.doubleClickRow
(JTree tree, int row) Double-clicks the given row.protected final void
Performs a drag action at the given point.void
Deprecated.use
instead.ComponentDragAndDrop
void
Starts a drag operation at the location of the given index.void
Starts a drag operation at the location of the first item matching the given value.void
Starts a drag operation at the location of the first item matching the given regular expression pattern.void
Starts a drag operation at the location of the given table cell.void
Starts a drag operation at the location of the given row.void
Starts a drag operation at the location of the given
.TreePath
protected final void
Ends a drag operation, releasing the mouse button over the given target location.void
Deprecated.use
instead.ComponentDragAndDrop
void
Ends a drag operation at the center of the
.JList
void
Ends a drag operation at the location of the given index.void
Ends a drag operation at the location of the first item matching the given value.void
Starts a drop operation at the location of the given table cell.void
Ends a drag operation at the location of the given row.void
Ends a drag operation at the location of the given
.TreePath
JComboBoxDriver.dropDownList()
private void
JComboBoxDriver.dropDownVisibleThroughUIDelegate
(JComboBox comboBox, boolean visible) private static org.fest.assertions.Description
JComboBoxDriver.editableProperty
(JComboBox comboBox) private static org.fest.assertions.Description
JTextComponentDriver.editableProperty
(JTextComponent textBox) private static org.fest.assertions.Description
JTreeDriver.editableProperty
(JTree tree) Returns the
used as editor in the givenJTextComponent
.JSpinner
private static Component
JComboBoxDriver.editorComponentOf
(JComboBox comboBox) AbstractJTableCellWriter.editorForCell
(JTable table, int row, int column) Returns the
used as editor of the given cell.Component
private static Component
JComboBoxDriver.editorIfEditable
(JComboBox comboBox) private static org.fest.assertions.Description
ComponentDriver.enabledProperty
(Component c) private void
JMenuItemDriver.ensurePopupIsShowing
(JMenuItem menuItem) void
Simulates a user entering the specified text in the
.JComboBox
void
Enters the given text in the
, assuming its editor has aJSpinner
under it.JTextComponent
void
JTextComponentDriver.enterText
(JTextComponent textBox, String text) Types the given text into the
.JTextComponent
void
JSpinnerDriver.enterTextAndCommit
(JSpinner spinner, String text) Enters and commits the given text in the
, assuming its editor has aJSpinner
under it.JTextComponent
void
JTableCheckBoxEditorCellWriter.enterValue
(JTable table, int row, int column, String value) Enters the given value at the given cell of the
.JTable
void
JTableComboBoxEditorCellWriter.enterValue
(JTable table, int row, int column, String value) Enters the given value at the given cell of the
.JTable
void
JTableTextComponentEditorCellWriter.enterValue
(JTable table, int row, int column, String value) Enters the given value at the given cell of the
.JTable
void
JTableDriver.enterValueInCell
(JTable table, TableCell cell, String value) Enters the given value in the given cell of the
, using this driver'sJTable
.JTableCellWriter
void
JTreeDriver.expandPath
(JTree tree, String path) Expands the given path, is possible.void
Expands the given row, is possible.(package private) static void
JTreeExpandPathTask.expandTreePath
(JTree tree, TreePath path) private void
JListDriver.failNoSelection
(JList list) JFileChooserDriver.fileNameTextBox
(JFileChooser fileChooser) Returns the text field where the user can enter the name of the file to select.private JButton
JFileChooserDriver.findButton
(JFileChooser fileChooser, String logicalName, String text) private static int
JTableDriver.findColumnIndex
(JTable table, Object columnId) (package private) JList
JComboBoxDropDownListFinder.findDropDownList()
private JTextComponent
JSpinnerDriver.findEditor
(JSpinner spinner) JToolBarDriver.floatInfo
(JToolBar toolBar, JToolBarLocation location) void
Drags the
to the given location, causing it to float.JToolBar
void
Gives input focus to the given
.Component
void
ComponentDriver.focusAndWaitForFocusGain
(Component c) Returns the font of the given table cell.JTableDriver.foreground
(JTable table, TableCell cell) Returns the foreground color of the given table cell.private void
JComboBoxDriver.hideDropDownListIfVisible
(JComboBox comboBox) private static JScrollBar
JScrollPaneDriver.horizontalScrollBar
(JScrollPane scrollPane) JScrollPaneDriver.horizontalScrollBarIn
(JScrollPane scrollPane) Returns the horizontal
in the givenJScrollBar
.JScrollPane
void
Iconifies the given
.Frame
void
JInternalFrameDriver.iconify
(JInternalFrame internalFrame) Iconifies the given
.JInternalFrame
private static Point
FrameDriver.iconifyInfo
(Frame frame) void
Increments the value of the
.JSpinner
void
Increments the value of the
the given number of times.JSpinner
int
Returns the index of the first item matching the given value.int
Returns the index of the first item matching the given regular expression pattern.private int
JListDriver.indexOf
(JList list, TextMatcher matcher) private static int
JTextComponentDriver.indexOfText
(JTextComponent textBox, String text) private static void
JComboBoxDriver.inEdtValidateEditorIsAccessible
(JComboBox comboBox) protected final void
JComponentDriver.invokeAction
(JComponent c, String name) ComponentDriver.invokePopupMenu
(Component c) Shows a pop-up menu using the given
as the invoker of the pop-up menu.Component
ComponentDriver.invokePopupMenu
(Component c, Point p) Shows a pop-up menu at the given point using the given
as the invoker of the pop-up menu.Component
boolean
Indicates whether the given
is active or not.JApplet
(package private) static boolean
JComboBoxEditableQuery.isEditable
(JComboBox comboBox) (package private) static boolean
JTextComponentEditableQuery.isEditable
(JTextComponent textBox) (package private) static boolean
JTreeEditableQuery.isEditable
(JTree tree) boolean
JToolBarDriver.isFloating
(JToolBar toolBar) Indicates whether the given
is floating or not.JToolBar
(package private) static boolean
JProgressBarIndeterminateQuery.isIndeterminate
(JProgressBar progressBar) (package private) static boolean
boolean
JMenuItemLocation.isParentAMenu()
Indicates whether the parent of the
is another menu.JMenuItem
(package private) static boolean
AbstractButtonSelectedQuery.isSelected
(AbstractButton button) private static int
JListDriver.itemIndex
(JList list, TextMatcher matcher, JListCellReader cellReader) (package private) static String
JListItemValueQuery.itemValue
(JList list, int index, JListCellReader cellReader) private static JMenuItemLocation
JMenuItemDriver.locationOf
(JMenuItem menuItem) (package private) static int
JSplitPaneLocationCalculator.locationToMoveDividerTo
(JSplitPane splitPane, int desiredLocation) private boolean
JTreeDriver.makeParentVisible
(JTree tree, TreePath path) private boolean
JTreeDriver.makeVisible
(JTree tree, TreePath path, boolean expandWhenFound) Matches, makes visible, and expands the path one component at a time, from uppermost ancestor on down, since children may be lazily loaded/created.(package private) static int
JComboBoxMatchingItemQuery.matchingItemIndex
(JComboBox comboBox, TextMatcher matcher, JComboBoxCellReader cellReader) JListMatchingItemQuery.matchingItemIndices
(JList list, TextMatcher matcher, JListCellReader cellReader) JListMatchingItemQuery.matchingItemValues
(JList list, TextMatcher matcher, JListCellReader cellReader) (package private) static TreePath
JTreeMatchingPathQuery.matchingPathFor
(JTree tree, String path, JTreePathFinder pathFinder) void
Makes the
full size.Frame
void
JInternalFrameDriver.maximize
(JInternalFrame internalFrame) Maximizes the given
, deconifying it first if it is iconified.JInternalFrame
private static Point
FrameDriver.maximizeInfo
(Frame frame) private void
JInternalFrameDriver.maximizeOrNormalize
(JInternalFrame internalFrame, JInternalFrameAction action, Pair<Container, Point> toMoveMouseTo) (package private) static int
JProgressBarMaximumQuery.maximumOf
(JProgressBar progressBar) (package private) static String[]
JPopupMenuElementsAsTextQuery.menuElementsAsText
(JPopupMenu popupMenu) JPopupMenuDriver.menuItem
(JPopupMenu popupMenu, String name) String[]
JPopupMenuDriver.menuLabelsOf
(JPopupMenu popupMenu) Returns the contents of the pop-up menu as aString
array.(package private) static Object
JOptionPaneMessageQuery.messageOf
(JOptionPane optionPane) (package private) static int
JOptionPaneMessageTypeQuery.messageTypeOf
(JOptionPane optionPane) JProgressBarMinimumAndMaximumQuery.minimumAndMaximumOf
(JProgressBar progressBar) private void
DragAndDrop.mouseMoveOnWindowsAndMacintosh
(Component target, int x, int y) Deprecated.void
Move the given
to the requested location.Container
private void
(package private) static void
ComponentMoveTask.moveComponent
(Component c, Point location) void
JSplitPaneDriver.moveDividerTo
(JSplitPane splitPane, int location) Sets the divider position to an absolute position.protected final void
ComponentDriver.moveMouseIgnoringAnyError
(Component c, int x, int y) Simulates a user moving the mouse pointer to the given coordinates relative to the given
.Component
protected final void
ComponentDriver.moveMouseIgnoringAnyError
(Component c, Point p) Simulates a user moving the mouse pointer to the given coordinates relative to the given
.Component
private void
JMenuItemDriver.moveParentWindowToFront
(JMenuItemLocation location) void
JInternalFrameDriver.moveTo
(JInternalFrame internalFrame, Point where) Moves the
to the given location.JInternalFrame
void
JInternalFrameDriver.moveToBack
(JInternalFrame internalFrame) Brings the given
to the back.JInternalFrame
void
WindowDriver.moveToBack
(Window w) If the given
is visible, sends it to the back and may cause it to lose focus or activation if it is the focused or active.Window
void
JInternalFrameDriver.moveToFront
(JInternalFrame internalFrame) Brings the given
to the front.JInternalFrame
private void
JMenuItemDriver.moveToFront
(Window w) void
WindowDriver.moveToFront
(Window w) If the given
is visible, brings it to the front and may make it the focused one.Window
(package private) final void
MultipleSelectionTemplate.multiSelect()
JOptionPaneDriver.noButton
(JOptionPane optionPane) Finds the "No" button in the
.JOptionPane
(package private) static String
JTreeNodeTextQuery.nodeText
(JTree tree, int row, JTreeLocation location, JTreePathFinder pathFinder) (package private) static String
JTreeNodeTextQuery.nodeText
(JTree tree, String path, JTreePathFinder pathFinder) Returns theString
representation of the node at the given path.void
Normalizes the given
.Frame
void
JInternalFrameDriver.normalize
(JInternalFrame internalFrame) Normalizes the given
, deconifying it first if it is iconified.JInternalFrame
JOptionPaneDriver.okButton
(JOptionPane optionPane) Finds the "OK" button in the
.JOptionPane
(package private) static Object[]
JOptionPaneOptionsQuery.optionsOf
(JOptionPane optionPane) private static String
JAppletDriver.parameterValue
(JApplet applet, String parameterName) Returns the value of the named parameter in the given
in the HTML tag, orJApplet
null
if not set.private static void
JTextComponentDriver.performAndValidateTextSelection
(JTextComponent textBox, int start, int end) Returns the coordinates of the first item matching the given value.Converts the given table cell into a coordinate pair.private static Point
JTableDriver.pointAtCell
(JTable table, TableCell cell, JTableLocation location) private static Point
JTableHeaderDriver.pointAtIndex
(JTableHeader tableHeader, int columnIndex, JTableHeaderLocation location) private static Point
JTableHeaderDriver.pointAtName
(JTableHeader tableHeader, TextMatcher matcher, JTableHeaderLocation location) private static Point
JTabbedPaneDriver.pointAtTab
(JTabbedPaneLocation location, JTabbedPane tabbedPane, int index) (package private) static JPopupMenu
JMenuPopupMenuQuery.popupMenuOf
(JMenu menu) void
ComponentDriver.pressAndReleaseKey
(Component c, int keyCode, int[] modifiers) Simulates a user pressing and releasing the given key on the
.Component
void
ComponentDriver.pressAndReleaseKey
(Component c, KeyPressInfo keyPressInfo) Simulates a user pressing and releasing the given key on the
.Component
void
ComponentDriver.pressAndReleaseKeys
(Component c, int... keyCodes) Simulates a user pressing and releasing the given keys on the
.Component
void
JComboBoxDriver.pressAndReleaseKeys
(JComboBox comboBox, int... keyCodes) Simulates a user pressing and releasing the given keys on the
.JComboBox
void
Simulates a user pressing given key on the
.Component
static org.fest.assertions.Description
ComponentDriver.propertyName
(Component c, String propertyName) Formats the name of a property of the given
by concatenating the value obtained fromComponent
with the given property name.Formatting.format(Component)
void
ComponentDriver.releaseKey
(Component c, int keyCode) Simulates a user releasing the given key on the
.Component
void
JComboBoxDriver.replaceText
(JComboBox comboBox, String text) Simulates a user entering the specified text in the
, replacing any text.JComboBox
void
JTextComponentDriver.replaceText
(JTextComponent textBox, String text) Types the given text into the
, replacing any existing text already there.JTextComponent
void
JTableDriver.requireCellValue
(JTable table, TableCell cell, String value) Asserts that the value of the given cell matches the given value.void
JTableDriver.requireCellValue
(JTable table, TableCell cell, Pattern pattern) Asserts that the value of the given cell matches the given regular expression pattern.void
JTableDriver.requireColumnCount
(JTable table, int columnCount) Asserts that the given
has the given number of columns.JTable
void
JTableDriver.requireContents
(JTable table, String[][] contents) Asserts that theString
representation of the cell values in the
is equal to the givenJTable
String
array.void
JProgressBarDriver.requireDeterminate
(JProgressBar progressBar) Verifies that the given
is in determinate mode.JProgressBar
void
ComponentDriver.requireDisabled
(Component c) Asserts that the
is disabled.Component
void
JComboBoxDriver.requireEditable
(JComboBox comboBox) Asserts that the given
is editable.JComboBox
void
JTableDriver.requireEditable
(JTable table, TableCell cell) Asserts that the given table cell is editable.void
JTextComponentDriver.requireEditable
(JTextComponent textBox) Asserts that the given
is editable.JTextComponent
void
JTreeDriver.requireEditable
(JTree tree) Asserts that the given
is editable.JTree
private static void
JTableDriver.requireEditableEqualTo
(JTable table, TableCell cell, boolean editable) void
JTextComponentDriver.requireEmpty
(JTextComponent textBox) Asserts that the given
is empty.JTextComponent
void
ComponentDriver.requireEnabled
(Component c) Asserts that the
is enabled.Component
void
ComponentDriver.requireEnabled
(Component c, Timeout timeout) Asserts that the
is enabled.Component
void
JOptionPaneDriver.requireErrorMessage
(JOptionPane optionPane) Asserts that the
is displaying an error message.JOptionPane
void
ComponentDriver.requireFocused
(Component c) Asserts that the
has input focus.Component
void
JProgressBarDriver.requireIndeterminate
(JProgressBar progressBar) Verifies that the given
is in indeterminate mode.JProgressBar
private void
JProgressBarDriver.requireIndeterminate
(JProgressBar progressBar, boolean indeterminate) void
JOptionPaneDriver.requireInformationMessage
(JOptionPane optionPane) Asserts that the
is displaying an information message.JOptionPane
void
JComboBoxDriver.requireItemCount
(JComboBox comboBox, int expected) Verifies that number of items in the given
is equal to the expected one.JComboBox
void
JListDriver.requireItemCount
(JList list, int expected) Verifies that number of items in the given
is equal to the expected one.JList
void
JOptionPaneDriver.requireMessage
(JOptionPane optionPane, Object message) Asserts that the title of the
matches the given value.JOptionPane
private void
JOptionPaneDriver.requireMessage
(JOptionPane optionPane, String expected, String actual) void
JOptionPaneDriver.requireMessage
(JOptionPane optionPane, Pattern pattern) Asserts that the title of the
matches the given regular expression pattern.JOptionPane
void
DialogDriver.requireModal
(Dialog dialog) Asserts that the
is modal.Dialog
void
JComboBoxDriver.requireNoSelection
(JComboBox comboBox) Verifies that the
does not have any selection.JComboBox
void
JListDriver.requireNoSelection
(JList list) Verifies that the
does not have a selection.JList
void
JTableDriver.requireNoSelection
(JTable table) Verifies that the
does not have any selection.JTable
void
JTreeDriver.requireNoSelection
(JTree tree) Asserts that the given
does not have any selection.JTree
void
JComboBoxDriver.requireNotEditable
(JComboBox comboBox) Asserts that the given
is not editable.JComboBox
void
JTableDriver.requireNotEditable
(JTable table, TableCell cell) Asserts that the given table cell is not editable.void
JTextComponentDriver.requireNotEditable
(JTextComponent textBox) Asserts that the given
is not editable.JTextComponent
void
JTreeDriver.requireNotEditable
(JTree tree) Asserts that the given
is not editable.JTree
void
AbstractButtonDriver.requireNotSelected
(AbstractButton button) Verifies that the button is not selected.void
ComponentDriver.requireNotVisible
(Component c) Asserts that the
is not visible.Component
void
JOptionPaneDriver.requireOptions
(JOptionPane optionPane, Object[] options) Asserts that the
has the given options.JOptionPane
void
JOptionPaneDriver.requirePlainMessage
(JOptionPane optionPane) Asserts that the
is displaying a plain message.JOptionPane
void
JOptionPaneDriver.requireQuestionMessage
(JOptionPane optionPane) Asserts that the
is displaying a question.JOptionPane
void
JTableDriver.requireRowCount
(JTable table, int rowCount) Asserts that the given
has the given number of rows.JTable
void
AbstractButtonDriver.requireSelected
(AbstractButton button) Verifies that the button is selected.void
JListDriver.requireSelectedItems
(JList list, int... indices) Verifies that the given item indices are selected in the
.JList
void
JListDriver.requireSelectedItems
(JList list, String... items) Verifies that the selected items in the
match the given values.JList
void
JListDriver.requireSelectedItems
(JList list, Pattern... patterns) Verifies that the selected items in the
match the given regular expression patterns.JList
private void
JListDriver.requireSelectedItems
(JList list, TextMatcher matcher) void
JTableDriver.requireSelectedRows
(JTable table, int... rows) Asserts that the set of selected rows in the given
contains to the given row indices.JTable
void
JComboBoxDriver.requireSelection
(JComboBox comboBox, int index) Verifies that the index of the selected item in the
is equal to the given value.JComboBox
void
JComboBoxDriver.requireSelection
(JComboBox comboBox, String value) Verifies that theString
representation of the selected item in the
matches the given text.JComboBox
void
JComboBoxDriver.requireSelection
(JComboBox comboBox, Pattern pattern) Verifies that theString
representation of the selected item in the
matches the given regular expression pattern.JComboBox
void
JListDriver.requireSelection
(JList list, int index) Verifies that the selected index in the
matches the given value.JList
void
JListDriver.requireSelection
(JList list, String value) Verifies that the selected item in the
matches the given value.JList
void
JListDriver.requireSelection
(JList list, Pattern pattern) Verifies that the selected item in the
matches the given regular expression pattern.JList
void
JTreeDriver.requireSelection
(JTree tree, int[] rows) Asserts that the given
's selected rows are equal to the given one.JTree
void
JTreeDriver.requireSelection
(JTree tree, String[] paths) Asserts that the given
's selected paths are equal to the given one.JTree
void
ComponentDriver.requireSize
(Component c, Dimension size) Asserts that the size of the
is equal to given one.Component
void
JTabbedPaneDriver.requireTabTitle
(JTabbedPane tabbedPane, String title, Index index) Asserts that the title of the tab at the given index matches the given value.void
JTabbedPaneDriver.requireTabTitle
(JTabbedPane tabbedPane, Pattern pattern, Index index) Asserts that the title of the tab at the given index matches the given regular expression pattern.void
JTabbedPaneDriver.requireTabTitles
(JTabbedPane tabbedPane, String[] titles) Asserts that the tabs of the given
have the given titles.JTabbedPane
void
AbstractButtonDriver.requireText
(AbstractButton button, String expected) Asserts that the text in the given button is equal to or matches the specifiedString
.void
JLabelDriver.requireText
(JLabel label, String expected) Asserts that the text of the
is equal to the specifiedJLabel
String
.void
JLabelDriver.requireText
(JLabel label, Pattern pattern) Asserts that the text of the
matches the given regular expression pattern.JLabel
void
JProgressBarDriver.requireText
(JProgressBar progressBar, String expected) Asserts that the text of the
is equal to the specifiedJProgressBar
String
.void
JProgressBarDriver.requireText
(JProgressBar progressBar, Pattern pattern) Asserts that the text of the
matches the given regular expression pattern.JProgressBar
void
JTextComponentDriver.requireText
(JTextComponent textBox, String expected) Asserts that the text in the given
is equal to the specified value.JTextComponent
void
JTextComponentDriver.requireText
(JTextComponent textBox, Pattern pattern) Asserts that the text in the given
matches the given regular expression pattern.JTextComponent
void
JOptionPaneDriver.requireTitle
(JOptionPane optionPane, String title) Asserts that the title in the given
matches the given value.JOptionPane
void
JOptionPaneDriver.requireTitle
(JOptionPane optionPane, Pattern pattern) Asserts that the title in the given
matches the given regular expression pattern.JOptionPane
void
JComponentDriver.requireToolTip
(JComponent c, String expected) Asserts that the toolTip in the given
matches the given value.JComponent
void
JComponentDriver.requireToolTip
(JComponent c, Pattern pattern) Asserts that the toolTip in the given
matches the given regular expression pattern.JComponent
void
JProgressBarDriver.requireValue
(JProgressBar progressBar, int value) Verifies that the value of the given
is equal to the given one.JProgressBar
void
JScrollBarDriver.requireValue
(JScrollBar scrollBar, int value) Asserts that the value of the
is equal to the given one.JScrollBar
void
JSpinnerDriver.requireValue
(JSpinner spinner, Object value) Verifies that the value of the
is equal to the given one.JSpinner
void
ComponentDriver.requireVisible
(Component c) Asserts that the
is visible.Component
void
JOptionPaneDriver.requireWarningMessage
(JOptionPane optionPane) Asserts that the
is displaying a warning message.JOptionPane
protected final void
Resizes the
to the given size.Container
void
Requests the given
to be resized.JApplet
private void
protected final void
ContainerDriver.resizeHeight
(Container c, int height) Resizes the
vertically.Container
void
JInternalFrameDriver.resizeHeightTo
(JInternalFrame w, int height) Resizes the
vertically.JInternalFrame
void
WindowDriver.resizeHeightTo
(Window w, int height) Resizes the
vertically.Window
ContainerDriver.resizeInfo
(Container c) void
JInternalFrameDriver.resizeTo
(JInternalFrame internalFrame, Dimension size) Resizes the
to the given size.JInternalFrame
void
Resizes the
to the given size.Window
protected final void
ContainerDriver.resizeWidth
(Container c, int width) Resizes the
horizontally.Container
void
JInternalFrameDriver.resizeWidthTo
(JInternalFrame internalFrame, int width) Resizes the
horizontally.JInternalFrame
void
WindowDriver.resizeWidthTo
(Window w, int width) Resizes the
horizontally.Window
void
ComponentDriver.rightClick
(Component c) Simulates a user right-clicking the given
.Component
void
JTreeDriver.rightClickPath
(JTree tree, String path) Right-clicks the given path, expanding parent nodes if necessary.void
JTreeDriver.rightClickRow
(JTree tree, int row) Right-clicks the given row.int
JTableDriver.rowCountOf
(JTable table) Returns the number of rows that can be shown in the given
, given unlimited space.JTable
(package private) static int
JTableRowCountQuery.rowCountOf
(JTable table) private void
JScrollBarDriver.scroll
(JScrollBar scrollBar, Pair<Point, Integer> scrollInfo) private Point
JTreeDriver.scrollAndSelectRow
(JTree tree, int row) void
JScrollBarDriver.scrollBlockDown
(JScrollBar scrollBar) Scrolls down (or right) one block (usually a page).void
JScrollBarDriver.scrollBlockDown
(JScrollBar scrollBar, int times) Scrolls down (or right) one block (usually a page,) the given number of times.void
JScrollBarDriver.scrollBlockUp
(JScrollBar scrollBar) Scrolls up (or left) one block (usually a page).void
JScrollBarDriver.scrollBlockUp
(JScrollBar scrollBar, int times) Scrolls up (or left) one block (usually a page,) the given number of times.void
JScrollBarDriver.scrollTo
(JScrollBar scrollBar, int position) Scrolls to the given position.(package private) static Point
JListScrollToItemTask.scrollToItem
(JList list, int index) JListScrollToItemTask.scrollToItem
(JList list, TextMatcher matcher, JListCellReader cellReader) (package private) static Point
JListScrollToItemTask.scrollToItemIfNotSelectedYet
(JList list, int index) JListScrollToItemTask.scrollToItemIfNotSelectedYet
(JList list, TextMatcher matcher, JListCellReader cellReader) JTreeDriver.scrollToMatchingPath
(JTree tree, String path) JTreeDriver.scrollToMatchingPathAndGetToggleInfo
(JTree tree, String path, JTreePathFinder pathFinder, JTreeLocation location) void
JScrollBarDriver.scrollToMaximum
(JScrollBar scrollBar) Scrolls to the maximum position of the given
.JScrollBar
void
JScrollBarDriver.scrollToMinimum
(JScrollBar scrollBar) Scrolls to the minimum position of the given
.JScrollBar
JTreeDriver.scrollToPathToSelect
(JTree tree, TreePath path, JTreeLocation location) private static Point
JTableDriver.scrollToPointAtCell
(JTable table, TableCell cell, JTableLocation location) private static Point
JTextComponentDriver.scrollToPosition
(JTextComponent textBox, int index) private Point
JTreeDriver.scrollToRow
(JTree tree, int row) JTreeDriver.scrollToRow
(JTree tree, int row, JTreeLocation location) JTreeDriver.scrollToRowAndGetToggleInfo
(JTree tree, int row, JTreeLocation location) void
AbstractButtonDriver.select
(AbstractButton button) Selects the given button only it is not already selected.void
JTextComponentDriver.selectAll
(JTextComponent textBox) Selects the text in the
.JTextComponent
void
JComboBoxDriver.selectAllText
(JComboBox comboBox) Simulates a user selecting the text in the
.JComboBox
private void
JTableDriver.selectCell
(JTable table, int row, int column) void
JTableDriver.selectCell
(JTable table, TableCell cell) Selects the given cell, if it is not selected already.private static Component
JTabbedPaneDriver.selectedComponent
(JTabbedPane tabbedPane) JTabbedPaneDriver.selectedComponentOf
(JTabbedPane tabbedPane) Returns the currently selected component for the given
.JTabbedPane
static int
JComboBoxSelectedIndexQuery.selectedIndexOf
(JComboBox comboBox) Returns the selected index in the given
.JComboBox
(package private) static int
JListSelectedIndexQuery.selectedIndexOf
(JList list) private org.fest.assertions.Description
JListDriver.selectedIndexProperty
(JList list) (package private) static int[]
JListSelectionIndicesQuery.selectedIndices
(JList list) private static org.fest.assertions.Description
AbstractButtonDriver.selectedProperty
(AbstractButton button) private static int[]
JTableDriver.selectedRowsOf
(JTable table) void
JFileChooserDriver.selectFile
(JFileChooser fileChooser, File file) Selects the given file in the
.JFileChooser
(package private) static Object
JComboBoxSelectionValueQuery.selection
(JComboBox comboBox, JComboBoxCellReader cellReader) String[]
JListDriver.selectionOf
(JList list) Returns an array ofString
s that represents the selection in the given
, using this driver'sJList
.JListCellReader
private org.fest.assertions.Description
JTreeDriver.selectionProperty
(JTree tree) JTableDriver.selectionValue
(JTable table) Returns theString
representation of the value of the selected cell, using this driver's
.JTableCellReader
private static String
JTableDriver.selectionValue
(JTable table, JTableCellReader cellReader) JListSelectionValuesQuery.selectionValues
(JList list, JListCellReader cellReader) void
JComboBoxDriver.selectItem
(JComboBox comboBox, int index) Selects the item under the given index in the
.JComboBox
void
JComboBoxDriver.selectItem
(JComboBox comboBox, String value) Selects the first item matching the given text in the
.JComboBox
void
JComboBoxDriver.selectItem
(JComboBox comboBox, Pattern pattern) Selects the first item matching the given regular expression pattern in the
.JComboBox
private void
JComboBoxDriver.selectItem
(JComboBox comboBox, TextMatcher matcher) void
JListDriver.selectItem
(JList list, int index) Selects the item under the given index using left mouse button once.void
JListDriver.selectItem
(JList list, String value) Selects the item in the given
whose value matches the given one.JList
void
JListDriver.selectItem
(JList list, Pattern pattern) Selects the item in the given
whose value matches the given regular expression pattern.JList
private void
JListDriver.selectItem
(JList list, TextMatcher matcher) private void
JComboBoxDriver.selectItemAtIndex
(JComboBox comboBox, int index) void
JListDriver.selectItems
(JList list, int start, int end) Selects the items in the specified range.void
JListDriver.selectItems
(JList list, String[] values) Selects the items matching the given values.void
JListDriver.selectItems
(JList list, Pattern[] patterns) Selects the items matching the given regular expression patterns.void
JListDriver.selectItems
(JList list, Range.From from, Range.To to) Selects the items in the specified range.private void
JListDriver.selectItems
(JList list, TextMatcher matcher) private Point
JTreeDriver.selectMatchingPath
(JTree tree, String path) void
JTreeDriver.selectPath
(JTree tree, String path) Selects the given path, expanding parent nodes if necessary.void
JTreeDriver.selectPaths
(JTree tree, String[] paths) Selects the given paths, expanding parent nodes if necessary.void
Selects the given row.void
JTableDriver.selectRows
(JTable table, int... rows) Simulates a user selecting the given rows in the given
.JTable
void
JTreeDriver.selectRows
(JTree tree, int[] rows) Selects the given rows.void
JTabbedPaneDriver.selectTab
(JTabbedPane tabbedPane, String title) Simulates a user selecting the tab containing the given title.void
JTabbedPaneDriver.selectTab
(JTabbedPane tabbedPane, Pattern pattern) Simulates a user selecting the tab whose title matches the given regular expression pattern.private void
JTabbedPaneDriver.selectTab
(JTabbedPane tabbedPane, TextMatcher matcher) void
JTextComponentDriver.selectText
(JTextComponent textBox, int start, int end) Select the given text range.void
JTextComponentDriver.selectText
(JTextComponent textBox, String text) Select the given text range.void
JSpinnerDriver.selectValue
(JSpinner spinner, Object value) Selects the given value in the given
.JSpinner
(package private) static void
ComponentSetSizeTask.setComponentSize
(Component c, int width, int height) void
JFileChooserDriver.setCurrentDirectory
(JFileChooser fileChooser, File dir) Sets the current directory in the
to the given one.JFileChooser
(package private) static void
JSplitPaneSetDividerLocationTask.setDividerLocation
(JSplitPane splitPane, int location) (package private) static void
JInternalFrameSetIconTask.setIcon
(JInternalFrame internalFrame, JInternalFrameAction action) private void
JInternalFrameDriver.setIconProperty
(JInternalFrame internalFrame, JInternalFrameAction action) private void
JInternalFrameDriver.setMaximumProperty
(JInternalFrame internalFrame, JInternalFrameAction action) (package private) static void
JComboBoxSetPopupVisibleTask.setPopupVisible
(JComboBox comboBox, boolean visible) (package private) static void
JComboBoxSetSelectedIndexTask.setSelectedIndex
(JComboBox comboBox, int index) (package private) static void
JTabbedPaneSelectTabTask.setSelectedTab
(JTabbedPane tabbedPane, int index) (package private) void
JTabbedPaneDriver.setTabDirectly
(JTabbedPane tabbedPane, int index) void
JTextComponentDriver.setText
(JTextComponent textBox, String text) Sets the given text into the
.JTextComponent
(package private) static void
JTextComponentSetTextTask.setTextIn
(JTextComponent textBox, String text) (package private) static void
private void
JScrollBarDriver.setValueProperty
(JScrollBar scrollBar, int value) private void
void
Shows the
.Window
void
Shows the
, resized to the given size.Window
(package private) void
JComboBoxDriver.showDropDownList
(JComboBox comboBox) JListDriver.showPopupMenu
(JList list, int index) Shows a pop-up menu at the location of the specified item in the
.JList
JListDriver.showPopupMenu
(JList list, String value) Shows a pop-up menu at the location of the specified item in the
.JList
JListDriver.showPopupMenu
(JList list, Pattern pattern) Shows a pop-up menu at the location of the specified item in the
.JList
private JPopupMenu
JListDriver.showPopupMenu
(JList list, TextMatcher matcher) JTableHeaderDriver.showPopupMenu
(JTableHeader tableHeader, int columnIndex) Shows a pop-up menu at the given column.JTableHeaderDriver.showPopupMenu
(JTableHeader tableHeader, String columnName) Shows a pop-up menu at the given column.JTableHeaderDriver.showPopupMenu
(JTableHeader tableHeader, Pattern pattern) Shows a pop-up menu at the column whose name matches the given regular expression pattern.JTreeDriver.showPopupMenu
(JTree tree, int row) Shows a pop-up menu at the position of the node in the given row.JTreeDriver.showPopupMenu
(JTree tree, String path) Shows a pop-up menu at the position of the last node in the given path.JTableDriver.showPopupMenuAt
(JTable table, TableCell cell) Shows a pop-up menu at the given table cell.private void
ContainerDriver.simulateMoveStarted
(Container c, Triple<Dimension, Insets, Point> moveInfo, int x, int y) private void
JSplitPaneDriver.simulateMovingDivider
(JSplitPane split, int location) private void
JSplitPaneDriver.simulateMovingDivider
(JSplitPane splitPane, GenericRange<Point> range) private void
JSplitPaneDriver.simulateMovingDividerVertically
(JSplitPane splitPane, int location) private void
ContainerDriver.simulateResizeStarted
(Container c, Pair<Dimension, Insets> resizeInfo, int x, int y) private void
JScrollBarDriver.simulateScrolling
(JScrollBar scrollBar, GenericRange<Point> points) (package private) static Object
JListSelectionValueQuery.singleSelectionValue
(JList list, JListCellReader cellReader) void
Slides the knob to the requested value.private void
JSliderDriver.slide
(JSlider slider, int value, GenericRange<Point> fromAndTo) private void
void
JSliderDriver.slideToMaximum
(JSlider slider) Slides the knob to its maximum.void
JSliderDriver.slideToMinimum
(JSlider slider) Slides the knob to its minimum.void
JTableCheckBoxEditorCellWriter.startCellEditing
(JTable table, int row, int column) Starts editing the given cell of the
.JTable
void
JTableComboBoxEditorCellWriter.startCellEditing
(JTable table, int row, int column) Starts editing the given cell of the
.JTable
void
JTableDriver.startCellEditing
(JTable table, TableCell cell) Starts editing the given cell of the
, using this driver'sJTable
.JTableCellWriter
void
JTableTextComponentEditorCellWriter.startCellEditing
(JTable table, int row, int column) Starts editing the given cell of the
.JTable
void
AbstractJTableCellWriter.stopCellEditing
(JTable table, int row, int column) Stops editing the given cell of the
.JTable
void
JTableDriver.stopCellEditing
(JTable table, TableCell cell) Stops editing the given cell of the
, using this driver'sJTable
.JTableCellWriter
(package private) static void
JTableStopCellEditingTask.stopEditing
(JTable table, int row, int column) (package private) static void
JTableStopCellEditingTask.stopEditing
(TableCellEditor cellEditor) (package private) static String
JProgressBarStringQuery.stringOf
(JProgressBar progressBar) (package private) static String[][]
JTableContentsQuery.tableContents
(JTable table, JTableCellReader cellReader) (package private) static JTableHeader
JTableHeaderQuery.tableHeader
(JTable table) JTableDriver.tableHeaderOf
(JTable table) Returns the
of the givenJTableHeader
.JTable
String[]
JTabbedPaneDriver.tabTitles
(JTabbedPane tabbedPane) Returns the titles of all the tabs.(package private) static String[]
JTabbedPaneTabTitlesQuery.tabTitlesOf
(JTabbedPane tabbedPane) JTabbedPaneDriver.tabToSelectInfo
(JTabbedPaneLocation location, JTabbedPane tabbedPane, TextMatcher matcher) boolean
JTreeChildrenShowUpCondition.test()
JOptionPaneDriver.textBox
(JOptionPane optionPane) Deprecated.in 1.2AbstractButtonDriver.textOf
(AbstractButton button) Returns the text of the given button.(package private) static String
AbstractButtonTextQuery.textOf
(AbstractButton button) Returns the text of the given
.JLabel
(package private) static String
JProgressBarDriver.textOf
(JProgressBar progressBar) Returns the text of the given
.JProgressBar
Returns the text displayed in the given
.JSpinner
JTextComponentDriver.textOf
(JTextComponent textBox) Returns the text of the given
.JTextComponent
(package private) static String
JTextComponentTextQuery.textOf
(JTextComponent textComponent) private static org.fest.assertions.Description
JTextComponentDriver.textProperty
(JTextComponent textBox) JOptionPaneDriver.title
(JOptionPane optionPane) Returns the title of the given
.JOptionPane
private static String
JTabbedPaneDriver.titleAt
(JTabbedPane tabbedPane, Index index) private org.fest.assertions.Description
JTabbedPaneDriver.titleAtProperty
(JTabbedPane tabbedPane) (package private) static String
JOptionPaneTitleQuery.titleOf
(JOptionPane optionPane) private static void
JInternalFrameDriver.toBack
(JInternalFrame internalFrame) private static void
JInternalFrameDriver.toFront
(JInternalFrame internalFrame) (package private) static void
private void
JTreeDriver.toggleCell
(JTree tree, Point p, int toggleClickCount) void
Change the open/closed state of the given row, if possible.private static void
JTreeDriver.toggleRowThroughTreeUI
(JTree tree, Point p) (package private) static String
JComponentToolTipQuery.toolTipOf
(JComponent c) void
Closes a floating
, making it go back to its original container in its last known location.JToolBar
void
Drop theJToolBar
to the requested constraint position.private static Pair<GenericRange<Point>,
Container> JToolBarDriver.unfloatInfo
(JToolBar toolBar, String constraint, JToolBarLocation location) void
AbstractButtonDriver.unselect
(AbstractButton button) Unselects the given button only if it is selected.private static void
JSpinnerDriver.validate
(JSpinner spinner, JTextComponent editor) void
Validates that the given table cell is nonnull
and its indices are not out of bounds.private static void
JSpinnerDriver.validateAndDecrementValue
(JSpinner spinner) private static void
JSpinnerDriver.validateAndDecrementValue
(JSpinner spinner, int times) private static void
JMenuItemDriver.validateAndDoClick
(JMenuItem menuItem) JInternalFrameDriver.validateAndFindCloseInfo
(JInternalFrame internalFrame) JInternalFrameDriver.validateAndfindDeiconifyInfo
(JInternalFrame internalFrame) JInternalFrameDriver.validateAndfindIconifyInfo
(JInternalFrame internalFrame) private static boolean
AbstractButtonDriver.validateAndFindIsSelected
(AbstractButton button) JInternalFrameDriver.validateAndFindMaximizeLocation
(JInternalFrame internalFrame) JInternalFrameDriver.validateAndFindNormalizeLocation
(JInternalFrame internalFrame) JScrollBarDriver.validateAndFindScrollBlockInfo
(JScrollBar scrollBar, JScrollBarLocation location, int times) private static GenericRange<Point>
JScrollBarDriver.validateAndFindScrollInfo
(JScrollBar scrollBar, JScrollBarLocation location, int position) private static Pair<Integer,
GenericRange<Point>> JScrollBarDriver.validateAndFindScrollToMaximumInfo
(JScrollBar scrollBar, JScrollBarLocation location) private static Pair<Integer,
GenericRange<Point>> JScrollBarDriver.validateAndFindScrollToMinimumInfo
(JScrollBar scrollBar, JScrollBarLocation location) JScrollBarDriver.validateAndFindScrollUnitInfo
(JScrollBar scrollBar, JScrollBarLocation location, int times) private static GenericRange<Point>
JSliderDriver.validateAndFindSlideInfo
(JSlider slider, JSliderLocation location, int value) private static Pair<Integer,
GenericRange<Point>> JSliderDriver.validateAndFindSlideToMaximumInfo
(JSlider slider, JSliderLocation location) private static Pair<Integer,
GenericRange<Point>> JSliderDriver.validateAndFindSlideToMinimumInfo
(JSlider slider, JSliderLocation location) private static GenericRange<Point>
JSplitPaneDriver.validateAndFindWhereToMoveDividerHorizontally
(JSplitPane splitPane, int location) private static GenericRange<Point>
JSplitPaneDriver.validateAndFindWhereToMoveDividerVertically
(JSplitPane splitPane, int location) private static Point
JTabbedPaneDriver.validateAndGetPoint
(JTabbedPaneLocation location, JTabbedPane tabbedPane, int index) private static void
JSpinnerDriver.validateAndIncrementValue
(JSpinner spinner) private static void
JSpinnerDriver.validateAndIncrementValue
(JSpinner spinner, int times) private static Point
JTextComponentDriver.validateAndScrollToPosition
(JTextComponent textBox, int index) (package private) static void
JFileChooserSelectFileTask.validateAndSelectFile
(JFileChooser fileChooser, File file) (package private) static void
JFileChooserSelectFileTask.validateAndSelectFiles
(JFileChooser fileChooser, File[] files) (package private) static void
JTableStopCellEditingTask.validateAndStopEditing
(JTable table, int row, int column) private static void
JComboBoxDriver.validateCanSelectItem
(JComboBox comboBox, int index) private static void
JToolBarDriver.validateFloated
(JToolBar toolBar) private static void
JListDriver.validateIndicesAndClearSelection
(JList list, int... indices) private static void
JToolBarDriver.validateIsNotFloating
(JToolBar toolBar, String constraint) void
JTreeDriver.validatePath
(JTree tree, String path) Verifies that the given node path exists.void
JTreeDriver.validateRow
(JTree tree, int row) Verifies that the given row index is valid.Returns theString
representation of the element under the given index, using this driver's
.JListCellReader
Returns theString
representation of the value at the given row and column, using this driver's
.JTableCellReader
Returns theString
representation of the value at the given cell, using this driver's
.JTableCellReader
private static String
JComboBoxDriver.valueAsText
(JComboBox comboBox, int index, JComboBoxCellReader cellReader) (package private) static int
JProgressBarValueQuery.valueOf
(JProgressBar progressBar) (package private) static int
JScrollBarValueQuery.valueOf
(JScrollBar scrollBar) (package private) static Object
(package private) static TreePath
JTreeMatchingPathQuery.verifyJTreeIsReadyAndFindMatchingPath
(JTree tree, String path, JTreePathFinder pathFinder) (package private) static void
JTreeVerifySelectionTask.verifyNoSelection
(JTree tree, org.fest.assertions.Description errMsg) (package private) static void
JTreeVerifySelectionTask.verifySelection
(JTree tree, int[] selection, org.fest.assertions.Description errMsg) (package private) static void
JTreeVerifySelectionTask.verifySelection
(JTree tree, String[] selection, JTreePathFinder pathFinder, org.fest.assertions.Description errMsg) private static JScrollBar
JScrollPaneDriver.verticalScrollBar
(JScrollPane scrollPane) JScrollPaneDriver.verticalScrollBarIn
(JScrollPane scrollPane) Returns the vertical
in the givenJScrollBar
.JScrollPane
private static org.fest.assertions.Description
ComponentDriver.visibleProperty
(Component c) private void
JTreeDriver.waitForChildrenToShowUp
(JTree tree, TreePath path) protected final <T extends Component>
TAbstractJTableCellWriter.waitForEditorActivation
(JTable table, int row, int column, Class<T> supportedType) Waits until the editor of the given table cell is showing on the screen.protected final <T extends Component>
TAbstractJTableCellWriter.waitForEditorActivation
(ComponentMatcher matcher, JTable table, int row, int column, Class<T> supportedType) Waits until the editor of the given table cell is showing on the screen.private JComboBox
JTableComboBoxEditorCellWriter.waitForEditorActivation
(JTable table, int row, int column) private JTextComponent
JTableTextComponentEditorCellWriter.waitForEditorActivation
(JTable table, int row, int column) void
JProgressBarDriver.waitUntilIsDeterminate
(JProgressBar progressBar) Waits until the value of the given
is in determinate mode.JProgressBar
void
JProgressBarDriver.waitUntilIsDeterminate
(JProgressBar progressBar, Timeout timeout) Waits until the value of the given
is in determinate mode.JProgressBar
void
JProgressBarDriver.waitUntilValueIs
(JProgressBar progressBar, int value) Waits until the value of the given
is equal to the given value.JProgressBar
void
JProgressBarDriver.waitUntilValueIs
(JProgressBar progressBar, int value, Timeout timeout) Waits until the value of the given
is equal to the given value.JProgressBar
(package private) static void
JProgressBarWaitUntilIsDeterminate.waitUntilValueIsDeterminate
(JProgressBar progressBar, Timeout timeout) (package private) static void
JProgressBarWaitUntilValueIsEqualToExpectedTask.waitUntilValueIsEqualToExpected
(JProgressBar progressBar, int expected, Timeout timeout) private static Window
JToolBarDriver.windowAncestorOf
(JToolBar toolBar) JOptionPaneDriver.yesButton
(JOptionPane optionPane) Finds the "Yes" button in the
.JOptionPane
-
Uses of RunsInEDT in org.fest.swing.fixture
Methods in org.fest.swing.fixture with annotations of type RunsInEDTModifier and TypeMethodDescriptionstatic FrameFixture
Containers.frameFixtureFor
(Container contentPane) static JFrame
static FrameFixture
Containers.showInFrame
(Container contentPane) -
Uses of RunsInEDT in org.fest.swing.format
Methods in org.fest.swing.format with annotations of type RunsInEDTModifier and TypeMethodDescriptionstatic String
Formatting.inEdtFormat
(Component c) Returns aString
representation of the given
.Component
-
Uses of RunsInEDT in org.fest.swing.hierarchy
Methods in org.fest.swing.hierarchy with annotations of type RunsInEDT -
Uses of RunsInEDT in org.fest.swing.image
Methods in org.fest.swing.image with annotations of type RunsInEDTModifier and TypeMethodDescriptionprivate static JTextComponent
ScreenshotTaker.findFocusOwnerAndHideItsCaret()
private static void
ScreenshotTaker.showCaretOf
(JTextComponent textComponent) -
Uses of RunsInEDT in org.fest.swing.launcher
Methods in org.fest.swing.launcher with annotations of type RunsInEDTModifier and TypeMethodDescriptionstatic AppletLauncher
Creates a new applet launcher.static AppletLauncher
Creates a new applet launcher.private static Class<?>
-
Uses of RunsInEDT in org.fest.swing.monitor
Classes in org.fest.swing.monitor with annotations of type RunsInEDTMethods in org.fest.swing.monitor with annotations of type RunsInEDTModifier and TypeMethodDescription(package private) void
WindowStatus.checkIfReady
(Window w) Checks whether the given window is ready for input.void
ContextMonitor.eventDispatched
(AWTEvent e) void
WindowAvailabilityMonitor.eventDispatched
(AWTEvent e) (package private) EventQueue
Context.eventQueueFor
(Component c) Return the event queue corresponding to the given component.static WindowMonitor
WindowMonitor.instance()
Returns the singleton instance of this class.private static Pair<WindowMetrics,
Point> WindowStatus.metricsAndCenter
(Window w) private void
private static Component
Context.topParentOf
(Component c) void
WindowVisibilityMonitor.windowClosed
(WindowEvent e) -
Uses of RunsInEDT in org.fest.swing.query
Methods in org.fest.swing.query with annotations of type RunsInEDTModifier and TypeMethodDescriptionstatic Color
ComponentBackgroundQuery.backgroundOf
(Component component) Returns the background color of the given
.Component
static Font
Returns the font of the given
.Component
static Color
ComponentForegroundQuery.foregroundOf
(Component component) Returns the foreground color of the given
.Component
static boolean
Indicates whether the given
has input focus or not.Component
static boolean
Indicates whether the given
is showing or not.Component
static boolean
Indicates whether the given
is visible or not.Component
static Point
ComponentLocationOnScreenQuery.locationOnScreen
(Component component) Returns the location of the given
on screen.Component
static Container
Returns the parent of the given
.Component
static Dimension
Returns the size of the given
.Component