org.eclipse.swtbot.swt.finder.matchers
Class WidgetOfType<T extends Widget>
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher<T>
org.eclipse.swtbot.swt.finder.matchers.WidgetOfType<T>
- All Implemented Interfaces:
- Matcher<T>, SelfDescribing
public class WidgetOfType<T extends Widget>
- extends AbstractMatcher<T>
Tells if a particular widget is of a specified type.
- Since:
- 2.0
- Version:
- $Id$
- Author:
- Ketan Padegaonkar <KetanPadegaonkar [at] gmail [dot] com>
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)
widgetOfType
public static <T extends Widget> Matcher<T> widgetOfType(Class<T> type)
- Matches a widget that has the specified type
- Parameters:
type
- the type of the widget.
- Returns:
- a matcher.
- Since:
- 2.0