|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
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 ,
, and
. |
org.fest.swing.core | Building blocks for all FEST-Swing fixtures. |
org.fest.swing.core.matcher |
Common implementations of . |
org.fest.swing.driver |
Drivers that simulate user input on GUI s. |
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 . |
static Point |
AWT.centerOf(Rectangle r)
Returns a point at the center of the given . |
static Point |
AWT.centerOfVisibleRect(JComponent c)
Returns a point at the center of the visible rectangle of the given . |
static Insets |
AWT.insetsFrom(Container c)
Returns the insets of the given , or an empty one if no insets can be found. |
static Component |
AWT.invokerOf(Component c)
Returns the invoker, if any, of the given ; 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 , 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 . |
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 as expected in a test. |
interface |
JListCellReader
Understands reading the internal value of a cell in a as expected in a test. |
interface |
JTableCellReader
Understands reading the internal value of a cell in a as expected in a test. |
interface |
JTreeCellReader
Understands reading the internal value of a cell in a 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 is ready for input. |
boolean |
GenericTypeMatcher.matches(Component c)
Verifies that the given :
Is an instance of the generic type specified in this
Matches some search criteria
|
boolean |
LabelMatcher.matches(Component c)
Indicates whether the given matches the criteria specified in this
matcher:
the text of the 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 matches the value specified in this matcher
|
boolean |
NameMatcher.matches(Component c)
Indicates whether the name and visibility of the given matches the value
specified in this matcher. |
boolean |
TypeMatcher.matches(Component c)
Indicates whether the type and visibility of the given 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 , but returns the
itself if it is a , 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 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 is equal to the text in this matcher. |
protected boolean |
JTextComponentMatcher.isMatching(JTextComponent button)
Indicates whether the text of the given 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 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 when a is not showing on the
screen. |
|
Point |
JToolBarLocation.dockLocation(JToolBar toolBar,
Container dock,
String constraint)
Returns the location where to dock the given , at the given constraint position. |
|
protected static
|
AbstractJTableCellWriter.editor(JTable table,
int row,
int column,
Class<T> supportedType)
Finds the component used as editor for the given . |
|
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 . |
|
int |
JTableHeaderLocation.indexOf(JTableHeader tableHeader,
TextMatcher matcher)
Returns the index of the column which name matches the value in the given , or -1
if a matching column was not found. |
|
protected boolean |
JComponentDriver.isVisible(JComponent c,
Point p)
Indicates whether the given 's visible contains
the given . |
|
protected static boolean |
JComponentDriver.isVisible(JComponent c,
Rectangle r)
Indicates whether the given 's visible contains the
given one. |
|
boolean |
JMenuItemMatcher.matches(Component c)
Indicates whether the given component is a 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 in the given 's event queue. |
|
Point |
JSliderLocation.pointAt(JSlider slider,
int value)
Returns the coordinates of the given value in the given . |
|
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 . |
|
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 . |
|
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 to the given cell. |
|
protected void |
JComponentDriver.scrollToVisible(JComponent c,
Rectangle r)
Invoke on the given . |
|
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 is enabled. |
|
static void |
ComponentStateValidator.validateIsEnabledAndShowing(Component c)
Asserts that the is enabled and showing. |
|
static void |
ComponentStateValidator.validateIsShowing(Component c)
Asserts that the 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 as expected in a test. |
|
String |
BasicJListCellReader.valueAt(JList list,
int index)
Returns the internal value of a cell in a as expected in a test. |
|
String |
BasicJTableCellReader.valueAt(JTable table,
int row,
int column)
Returns the internal value of a cell in a as expected in a test. |
|
String |
BasicJTreeCellReader.valueAt(JTree tree,
Object modelValue)
Returns the internal value of a cell in a 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 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 . |
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 whose identifier matches the given one. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |