|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.swtbot.swt.finder.matchers.WidgetMatcherFactory
public abstract class WidgetMatcherFactory
Constructor Summary | |
---|---|
WidgetMatcherFactory()
|
Method Summary | ||
---|---|---|
static
|
allOf(Iterable<Matcher<? extends T>> matchers)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
allOf(Matcher<? extends T>... matchers)
Evaluates to true only if ALL of the passed in matchers evaluate to true. |
|
static
|
anyOf(Iterable<Matcher<? extends T>> matchers)
Evaluates to true only if ANY of the passed in matchers evaluate to true. |
|
static
|
anyOf(Matcher<? extends T>... matchers)
Evaluates to true only if ANY of the passed in matchers evaluate to true. |
|
static
|
inGroup(Matcher<?> matcher)
Matches a widget in a group, if the matcher evaluates to true for the group. |
|
static
|
inGroup(String labelText)
Matches a widget that belongs to the specified group |
|
static
|
inUIThread(Matcher<?> matcher)
Deprecated. this has been deprecated and will be removed in future releases of swtbot. |
|
static
|
widgetOfType(Class<T> type)
Matches a widget that has the specified type |
|
static
|
withId(String value)
Matches a widget that has the specified value set for the key SWTBotPreferences.DEFAULT_KEY . |
|
static
|
withId(String key,
String value)
Matches a widget that has the specified Key/Value pair set as data into it. |
|
static
|
withItem(Matcher<?> matcher)
Returns a matcher that matches objects containing an item that matches the matcher. |
|
static
|
withLabel(String labelText)
Matches a widget that has the specified labelText. |
|
static
|
withLabel(String labelText,
Finder finder)
Matches a widget that has the specified labelText within the given parent. |
|
static
|
withMessage(String message)
Matches a widget that has the specified exact message. |
|
static
|
withMnemonic(String text)
Matches a widget that has the specified text, after striping the mnemonics "&" |
|
static
|
withRegex(String regex)
Matches a widget that has the specified regex. |
|
static
|
withStyle(int style,
String styleDescription)
Matches a widget that has the specified style bit set. |
|
static
|
withText(String text)
Matches a widget that has the specified exact text. |
|
static
|
withTextIgnoringCase(String text)
Matches a widget that has the specified text, ignoring case considerations. |
|
static
|
withTooltip(String text)
Matches a widget that has the specified exact tooltip. |
|
static
|
withTooltipIgoringCase(String text)
Matches a widget that has the specified tooltip, ignoring case considerations. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WidgetMatcherFactory()
Method Detail |
---|
public static <T extends Widget> Matcher<T> withLabel(String labelText)
labelText
- the label.
public static <T extends Widget> Matcher<T> withLabel(String labelText, Finder finder)
labelText
- the label.finder
- finder for locating widgets
public static <T extends Widget> Matcher<T> withMnemonic(String text)
text
- the text.
public static <T extends Widget> Matcher<T> withRegex(String regex)
regex
- the label.
public static <T extends Widget> Matcher<T> withText(String text)
text
- the label.
public static <T extends Widget> Matcher<T> withTextIgnoringCase(String text)
text
- the label.
public static <T extends Widget> Matcher<T> withMessage(String message)
message
- the message.
public static <T extends Widget> Matcher<T> withStyle(int style, String styleDescription)
style
- the style bits.styleDescription
- the description of the style bits.
public static <T extends Widget> Matcher<T> withTooltip(String text)
text
- the label.
public static <T extends Widget> Matcher<T> withTooltipIgoringCase(String text)
text
- the label.
public static <T extends Widget> Matcher<T> withId(String key, String value)
key
- the keyvalue
- the value
Widget.setData(String, Object)
public static <T extends Widget> Matcher<T> withId(String value)
SWTBotPreferences.DEFAULT_KEY
.
value
- the value
Widget.setData(String, Object)
public static <T extends Item> Matcher<T> withItem(Matcher<?> matcher)
Note: This invokes getItems method on the object and expects to see an array as a return value.
matcher
- the matcher.
public static <T extends Widget> Matcher<T> inGroup(String labelText)
labelText
- the label.
public static <T extends Widget> Matcher<T> inGroup(Matcher<?> matcher)
matcher
- the matcher.
public static <T extends Widget> Matcher<T> widgetOfType(Class<T> type)
type
- the type of the widget.
public static <T extends Widget> Matcher<T> inUIThread(Matcher<?> matcher)
matcher
- the matcher
public static <T extends Widget> Matcher<T> allOf(Matcher<? extends T>... matchers)
public static <T extends Widget> Matcher<T> allOf(Iterable<Matcher<? extends T>> matchers)
public static <T extends Widget> Matcher<T> anyOf(Matcher<? extends T>... matchers)
public static <T extends Widget> Matcher<T> anyOf(Iterable<Matcher<? extends T>> matchers)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |