org.eclipse.swtbot.swt.finder.utils.internal
Class PreviousWidgetFinder
java.lang.Object
org.eclipse.swtbot.swt.finder.utils.internal.PreviousWidgetFinder
- All Implemented Interfaces:
- Result<Widget>, WidgetResult<Widget>
public final class PreviousWidgetFinder
- extends Object
- implements WidgetResult<Widget>
This object finds the previous widget.
NOTE: This finds all the siblings and finds the index of the previous widget among the siblings. This does not use
SWTUtils to find siblings and index for the widget that this instance wraps for performance reasons.
- Version:
- $Id$
- Author:
- Ketan Padegaonkar <KetanPadegaonkar [at] gmail [dot] com>
- See Also:
NextWidgetFinder
,
WidgetIndexFinder
Method Summary |
Widget |
run()
Runs the processing to find the previous widget. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PreviousWidgetFinder
public PreviousWidgetFinder(Widget w)
- Constructs the previous widget finder.
- Parameters:
w
- the widget
run
public Widget run()
- Runs the processing to find the previous widget.
- Specified by:
run
in interface Result<Widget>
- Returns:
- The widget found or
null
if not found. - See Also:
Result.run()