public class ComponentMatchers extends Object
ComponentMatcher
objects.Constructor and Description |
---|
ComponentMatchers() |
Modifier and Type | Method and Description |
---|---|
static ComponentMatcher |
and(ComponentMatcher... matchers)
Matches components that match all its sub-matchers.
|
static ComponentMatcher |
componentLabelFor(String labelName)
Matches components based on labels (very useful when dealing with forms).
|
static ComponentMatcher |
displayedNameIdentity(String reference)
Matches components whose displayed name is exactly the same as the reference.
|
static ComponentMatcher |
displayedNameRegexp(String reference)
Matches components whose displayed name matches with the regexp reference.
|
static ComponentMatcher |
displayedNameSubstring(String reference)
Matches components whose displayed name is a substring of the reference.
|
static <T extends Component> |
fromClass(Class<T> swingClass)
Matches components that are instances of the class.
|
static ComponentMatcher |
innerNameIdentity(String reference)
Matches components whose inner name is exactly the same as the reference.
|
static ComponentMatcher |
innerNameRegexp(String reference)
Matches components whose inner name matches with the regexp reference.
|
static ComponentMatcher |
innerNameSubstring(String reference)
Matches components whose inner name is a substring of the reference.
|
static ComponentMatcher |
intersection(ComponentMatcher... matchers)
Deprecated.
|
static ComponentMatcher |
not(ComponentMatcher matcher)
Matches components rejected by the inner matcher.
|
static ComponentMatcher |
or(ComponentMatcher... matchers)
Matches components that match at least one of its sub-matchers.
|
static ComponentMatcher |
toolTipEquals(String text) |
static ComponentMatcher |
union(ComponentMatcher... matchers)
Deprecated.
|
public static ComponentMatcher displayedNameIdentity(String reference)
public static ComponentMatcher displayedNameSubstring(String reference)
public static ComponentMatcher displayedNameRegexp(String reference)
public static ComponentMatcher innerNameIdentity(String reference)
public static ComponentMatcher innerNameSubstring(String reference)
public static ComponentMatcher innerNameRegexp(String reference)
public static <T extends Component> ComponentMatcher fromClass(Class<T> swingClass)
public static ComponentMatcher componentLabelFor(String labelName)
JLabel.setLabelFor(java.awt.Component)
public static ComponentMatcher and(ComponentMatcher... matchers)
public static ComponentMatcher intersection(ComponentMatcher... matchers)
and(ComponentMatcher...)
public static ComponentMatcher or(ComponentMatcher... matchers)
public static ComponentMatcher union(ComponentMatcher... matchers)
or(ComponentMatcher...)
public static ComponentMatcher not(ComponentMatcher matcher)
public static ComponentMatcher toolTipEquals(String text)
Copyright © 2004–2016. All rights reserved.