|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hamcrest.BaseMatcher<T> org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher<T> org.eclipse.swtbot.swt.finder.matchers.WithTooltip<T>
public class WithTooltip<T extends Widget>
Matches widgets if the getToolTipText() 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
|
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 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> withTooltip(String text)
text
- the label.
public static <T extends Widget> Matcher<T> withTooltipIgoringCase(String text)
text
- the label.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |