Uses of Class
org.fest.swing.annotation.RunsInCurrentThread

Packages that use RunsInCurrentThread
org.fest.swing.awt Utility methods related to AWT. 
org.fest.swing.cell Support for custom cell renderers in components like JComboBox, JList, JTable and JTree
org.fest.swing.core Building blocks for all FEST-Swing fixtures. 
org.fest.swing.core.matcher Common implementations of GenericTypeMatcher
org.fest.swing.driver Drivers that simulate user input on GUI Components. 
org.fest.swing.edt Support for GUI component access from the event dispatch thread (EDT.) 
org.fest.swing.format Component formatters that create a String representation of GUI components. 
org.fest.swing.hierarchy GUI component hierarchies. 
org.fest.swing.query Queries, executed in the event dispatch thread (EDT,) that read property values from GUI components. 
 

Uses of RunsInCurrentThread in org.fest.swing.awt
 

Methods in org.fest.swing.awt with annotations of type RunsInCurrentThread
static Point AWT.centerOf(Component c)
          Returns a point at the center of the given Component.
static Point AWT.centerOf(Rectangle r)
          Returns a point at the center of the given Rectangle.
static Point AWT.centerOfVisibleRect(JComponent c)
          Returns a point at the center of the visible rectangle of the given JComponent.
static Insets AWT.insetsFrom(Container c)
          Returns the insets of the given Container, or an empty one if no insets can be found.
static Component AWT.invokerOf(Component c)
          Returns the invoker, if any, of the given Component; or null, if the Component is not on a pop-up of any sort.
static boolean AWT.isHeavyWeightPopup(Component c)
          Returns whether the given Component is a heavy-weight pop-up, that is, a container for a JPopupMenu that is implemented with a heavy-weight component (usually a Window).
static Point AWT.locationOnScreenOf(Component c)
          Safe version of Component.getLocationOnScreen(), which avoids lockup if an AWT pop-up menu is showing.
static Point AWT.translate(Component c, int x, int y)
          Translates the given coordinates to the location on screen of the given Component.
 

Uses of RunsInCurrentThread in org.fest.swing.cell
 

Classes in org.fest.swing.cell with annotations of type RunsInCurrentThread
 interface JComboBoxCellReader
          Understands reading the internal value of a cell in a JComboBox as expected in a test.
 interface JListCellReader
          Understands reading the internal value of a cell in a JList as expected in a test.
 interface JTableCellReader
          Understands reading the internal value of a cell in a JTable as expected in a test.
 interface JTreeCellReader
          Understands reading the internal value of a cell in a JTree as expected in a test.
 

Uses of RunsInCurrentThread in org.fest.swing.core
 

Methods in org.fest.swing.core with annotations of type RunsInCurrentThread
static Component FocusOwnerFinder.focusOwner()
          Returns the focus owner.
protected abstract  boolean GenericTypeMatcher.isMatching(T component)
          Verifies that the given component matches some search criteria.
 boolean BasicRobot.isReadyForInput(Component c)
          Indicates whether the given Component is ready for input.
 boolean GenericTypeMatcher.matches(Component c)
          Verifies that the given Component: Is an instance of the generic type specified in this ComponentMatcher Matches some search criteria
 boolean LabelMatcher.matches(Component c)
          Indicates whether the given Component matches the criteria specified in this matcher: the text of the JLabel attached to the component to look for matches the text specified in this matcher the component to look for is of the type specified in this matcher (if specified) visibility of the given Component matches the value specified in this matcher
 boolean NameMatcher.matches(Component c)
          Indicates whether the name and visibility of the given Component matches the value specified in this matcher.
 boolean TypeMatcher.matches(Component c)
          Indicates whether the type and visibility of the given Component matches the value specified in this matcher.
protected  boolean AbstractComponentMatcher.requireShowingMatches(Component c)
          Indicates if the value of the "showing" property of the given component matches the value specified in this matcher.
static Window WindowAncestorFinder.windowAncestorOf(Component c)
          Similar to SwingUtilities.getWindowAncestor(Component), but returns the Component itself if it is a Window, or the invoker's Window if on a pop-up.
 

Uses of RunsInCurrentThread in org.fest.swing.core.matcher
 

Methods in org.fest.swing.core.matcher with annotations of type RunsInCurrentThread
protected  boolean DialogMatcher.isMatching(Dialog dialog)
          Indicates whether: the name of the given Dialog is equal to the name in this matcher, and the title of the given Dialog matches the text (or pattern) in this matcher
protected  boolean FrameMatcher.isMatching(Frame frame)
          Indicates whether the title of the given Frame is equal to the title in this matcher.
protected  boolean JButtonMatcher.isMatching(JButton button)
          Indicates whether: the name of the given JButton is equal to the name in this matcher, and the text of the given JButton matches the text (or pattern) in this matcher
protected  boolean JLabelMatcher.isMatching(JLabel button)
          Indicates whether the text of the given JLabel is equal to the text in this matcher.
protected  boolean JTextComponentMatcher.isMatching(JTextComponent button)
          Indicates whether the text of the given JTextComponent is equal to the text in this matcher.
 

Uses of RunsInCurrentThread in org.fest.swing.driver
 

Classes in org.fest.swing.driver with annotations of type RunsInCurrentThread
 interface CellRendererReader
          Understands reading the value of a Component that used as a cell renderer.
 

Methods in org.fest.swing.driver with annotations of type RunsInCurrentThread
 Color BasicJTableCellReader.backgroundAt(JTable table, int row, int column)
          Returns the background color of the cell renderer for the given table cell.
 Point JScrollBarLocation.blockLocationToScrollDown(JScrollBar scrollBar)
          Returns the location where to move the mouse pointer to scroll one block down (or left.)
 Point JScrollBarLocation.blockLocationToScrollUp(JScrollBar scrollBar)
          Returns the location where to move the mouse pointer to scroll one block up (or right.)
 Rectangle JTableLocation.cellBounds(JTable table, int row, int column)
          Returns the bounds of the given row and column.
 Rectangle JTableLocation.cellBounds(JTable table, TableCell cell)
          Returns the bounds of the given cell.
static IllegalStateException ComponentStateValidator.componentNotShowingOnScreenFailure(Component c)
          Throws a IllegalStateException when a Component is not showing on the screen.
 Point JToolBarLocation.dockLocation(JToolBar toolBar, Container dock, String constraint)
          Returns the location where to dock the given JToolBar, at the given constraint position.
protected static
<T extends Component>
T
AbstractJTableCellWriter.editor(JTable table, int row, int column, Class<T> supportedType)
          Finds the component used as editor for the given JTable.
 Font BasicJTableCellReader.fontAt(JTable table, int row, int column)
          Returns the font of the cell renderer for the given table cell.
 Color BasicJTableCellReader.foregroundAt(JTable table, int row, int column)
          Returns the foreground color of the cell renderer for the given table cell.
 int JTabbedPaneLocation.indexOf(JTabbedPane tabbedPane, String title)
          Returns the index of the first tab that matches the given String.
 int JTabbedPaneLocation.indexOf(JTabbedPane tabbedPane, TextMatcher matcher)
          Returns the index of the first tab whose title matches the value in the given TextMatcher.
 int JTableHeaderLocation.indexOf(JTableHeader tableHeader, TextMatcher matcher)
          Returns the index of the column which name matches the value in the given TextMatcher, or -1 if a matching column was not found.
protected  boolean JComponentDriver.isVisible(JComponent c, Point p)
          Indicates whether the given JComponent's visible Rectangle contains the given Point.
protected static boolean JComponentDriver.isVisible(JComponent c, Rectangle r)
          Indicates whether the given JComponent's visible Rectangle contains the given one.
 boolean JMenuItemMatcher.matches(Component c)
          Indicates whether the given component is a JMenuItem whose text matches the path specified in this matcher.
 Pair<Rectangle,Point> JTreeLocation.pathBoundsAndCoordinates(JTree tree, TreePath path)
          Returns the bounds and visible coordinates of the given path.
 TreePath JTreeLocation.pathFor(JTree tree, int row)
          Returns the path for the given row.
protected  void ComponentDriver.performAccessibleActionOf(Component c)
          Performs the AccessibleAction in the given Component's event queue.
 Point JSliderLocation.pointAt(JSlider slider, int value)
          Returns the coordinates of the given value in the given JSlider.
 Point JTabbedPaneLocation.pointAt(JTabbedPane tabbedPane, int index)
          Returns the coordinates of the tab under the given index.
 Point JTableHeaderLocation.pointAt(JTableHeader tableHeader, int index)
          Returns the coordinates of the column under the given index.
 Pair<Integer,Point> JTableHeaderLocation.pointAt(JTableHeader tableHeader, TextMatcher matcher)
          Returns the index and the coordinates of the column which name matches the value in the given TextMatcher.
 Point JTableLocation.pointAt(JTable table, int row, int column)
          Converts the given row and column into a coordinate pair.
 Point JToolBarLocation.pointToGrab(JToolBar toolBar)
          Returns the point where to grab the given JToolBar.
 Pair<Rectangle,Point> JTreeLocation.rowBoundsAndCoordinates(JTree tree, int row)
          Returns the bounds and visible coordinates of the given row.
protected static void AbstractJTableCellWriter.scrollToCell(JTable table, int row, int column, JTableLocation location)
          Scrolls the given JTable to the given cell.
protected  void JComponentDriver.scrollToVisible(JComponent c, Rectangle r)
          Invoke JComponent.scrollRectToVisible(Rectangle) on the given JComponent.
 Point JScrollBarLocation.thumbLocation(JScrollBar scrollBar, int position)
          Returns the location where to move the mouse pointer to scroll to the given position.
 Point JScrollBarLocation.unitLocationToScrollDown(JScrollBar scrollBar)
          Returns the location where to move the mouse pointer to scroll one unit down (or left.)
 Point JScrollBarLocation.unitLocationToScrollUp(JScrollBar scrollBar)
          Returns the location where to move the mouse pointer to scroll one unit up (or right.)
protected static void AbstractJTableCellWriter.validate(JTable table, int row, int column)
          Validates that: the given JTable is enabled and showing on the screen the row and column indices are correct (not out of bounds) the table cell at the given indices is editable
static void JTableCellValidator.validateCellIndices(JTable table, TableCell cell)
          Validates that the given table cell is non null and its indices are not out of bounds.
static void JTableCellValidator.validateCellIsEditable(JTable table, int row, int column)
          Validates that the table cell in the given coordinates is editable.
static void JTableCellValidator.validateColumnIndex(JTable table, int column)
          Validates that the given column index exists in the given table.
static void JTableCellValidator.validateIndices(JTable table, int row, int column)
          Validates the given indices regarding the given table.
static void ComponentStateValidator.validateIsEnabled(Component c)
          Asserts that the Component is enabled.
static void ComponentStateValidator.validateIsEnabledAndShowing(Component c)
          Asserts that the Component is enabled and showing.
static void ComponentStateValidator.validateIsShowing(Component c)
          Asserts that the Component is showing on the screen.
static void JTableCellValidator.validateRowIndex(JTable table, int row)
          Validates that the given row index exists in the given table.
 int JTreeLocation.validIndex(JTree tree, int row)
          Validates that the given row index is valid.
 String BasicJComboBoxCellReader.valueAt(JComboBox comboBox, int index)
          Returns the internal value of a cell in a JComboBox as expected in a test.
 String BasicJListCellReader.valueAt(JList list, int index)
          Returns the internal value of a cell in a JList as expected in a test.
 String BasicJTableCellReader.valueAt(JTable table, int row, int column)
          Returns the internal value of a cell in a JTable as expected in a test.
 String BasicJTreeCellReader.valueAt(JTree tree, Object modelValue)
          Returns the internal value of a cell in a JTree as expected in a test.
 String BasicCellRendererReader.valueFrom(Component c)
          Reads the value in the given cell renderer component, or returns null if the renderer belongs to an unknown component type.
protected  boolean ComponentDriver.waitForShowing(Component c, long timeout)
          Wait the given number of milliseconds for the Component to be showing and ready.
 

Constructors in org.fest.swing.driver with annotations of type RunsInCurrentThread
JMenuItemLocation(JMenuItem menuItem)
          Creates a new JMenuItemLocation.
 

Uses of RunsInCurrentThread in org.fest.swing.edt
 

Methods in org.fest.swing.edt with annotations of type RunsInCurrentThread
protected abstract  String GuiLazyLoadingDescription.loadDescription()
          Returns the lazy-loaded text of this description.
 

Uses of RunsInCurrentThread in org.fest.swing.format
 

Methods in org.fest.swing.format with annotations of type RunsInCurrentThread
static String Formatting.format(Component c)
          Returns a String representation of the given Component.
 

Uses of RunsInCurrentThread in org.fest.swing.hierarchy
 

Classes in org.fest.swing.hierarchy with annotations of type RunsInCurrentThread
 interface ComponentHierarchy
          Understands access to all components in a hierarchy.
 

Methods in org.fest.swing.hierarchy with annotations of type RunsInCurrentThread
 Collection<Component> ExistingHierarchy.childrenOf(Component c)
          Returns all descendants of interest of the given component.
 Collection<Component> NewHierarchy.childrenOf(Component c)
          Returns all sub-components of the given component, omitting those which are currently filtered.
 boolean NewHierarchy.contains(Component c)
          Returns true if the given component is not filtered.
 void ExistingHierarchy.dispose(Window w)
          Properly dispose of the given window, making it and its native resources available for garbage collection.
 void NewHierarchy.dispose(Window w)
          Dispose of the given window, but only if it currently exists within the hierarchy.
 void NewHierarchy.ignoreExisting()
          Make all currently existing components invisible to this hierarchy, without affecting their current state.
 Container ExistingHierarchy.parentOf(Component c)
          Return the parent for the given component.
 void NewHierarchy.recognize(Component c)
          Make the given component visible to this hierarchy.
 

Uses of RunsInCurrentThread in org.fest.swing.query
 

Methods in org.fest.swing.query with annotations of type RunsInCurrentThread
static int JTableColumnByIdentifierQuery.columnIndexByIdentifier(JTable table, Object identifier)
          Returns the index of a column in a JTable whose identifier matches the given one.
 



Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.