org.eclipse.swtbot.swt.finder.matchers
Class InGroup<T extends Widget>
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher<T>
org.eclipse.swtbot.swt.finder.matchers.InGroup<T>
- All Implemented Interfaces:
- Matcher<T>, SelfDescribing
public class InGroup<T extends Widget>
- extends AbstractMatcher<T>
Tells if a particular widget is within a Group
with the specified text.
- Since:
- 2.0
- Version:
- $Id$
- Author:
- Ketan Padegaonkar <KetanPadegaonkar [at] gmail [dot] com>
Method Summary |
void |
describeTo(Description description)
|
protected boolean |
doMatch(Object obj)
Subclasses must override, this is the actual method that does the matching |
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 |
doMatch
protected boolean doMatch(Object obj)
- Description copied from class:
AbstractMatcher
- Subclasses must override, this is the actual method that does the matching
- Specified by:
doMatch
in class AbstractMatcher<T extends Widget>
- Parameters:
obj
- the item to match.
- Returns:
true
if the item matches, false
otherwise.
describeTo
public void describeTo(Description description)
inGroup
public static <T extends Widget> Matcher<T> inGroup(String labelText)
- Matches a widget that belongs to the specified group
- Parameters:
labelText
- the label.
- Returns:
- a matcher.
- Since:
- 2.0
inGroup
public static <T extends Widget> Matcher<T> inGroup(Matcher<?> matcher)
- Matches a widget in a group, if the matcher evaluates to true for the group.
- Parameters:
matcher
- the matcher.
- Returns:
- a matcher.
- Since:
- 2.0