|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hamcrest.BaseMatcher<T>
org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher<T>
org.eclipse.swtbot.swt.finder.matchers.WithText<T>
public class WithText<T extends Widget>
Matches widgets if the getText() method of the widget matches the specified text.
| Field Summary | |
|---|---|
protected boolean |
ignoreCase
A flag to denote if this should ignore case. |
protected String |
text
The text |
| Fields inherited from class org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher |
|---|
log |
| Method Summary | ||
|---|---|---|
void |
describeTo(Description description)
|
|
protected boolean |
doMatch(Object obj)
Subclasses must override, this is the actual method that does the matching |
|
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. |
|
| Methods inherited from class org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher |
|---|
matches |
| Methods inherited from class org.hamcrest.BaseMatcher |
|---|
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String text
protected boolean ignoreCase
| Method Detail |
|---|
protected boolean doMatch(Object obj)
AbstractMatcher
doMatch in class AbstractMatcher<T extends Widget>obj - the item to match.
true if the item matches, false otherwise.public void describeTo(Description description)
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||