org.eclipse.swtbot.swt.finder.utils.internal
Class NextWidgetFinder
java.lang.Object
org.eclipse.swtbot.swt.finder.utils.internal.NextWidgetFinder
- All Implemented Interfaces:
- Result<Widget>, WidgetResult<Widget>
public class NextWidgetFinder
- extends Object
- implements WidgetResult<Widget>
This object is used to find the next widget.
NOTE: This finds all the siblings and finds the index of the next 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:
PreviousWidgetFinder
,
WidgetIndexFinder
Method Summary |
Widget |
run()
Runs the processing to find the next widget. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NextWidgetFinder
public NextWidgetFinder(Widget w)
- Constructs the next widget finder.
- Parameters:
w
- the widget
run
public Widget run()
- Runs the processing to find the next widget.
- Specified by:
run
in interface Result<Widget>
- Returns:
- The next widget or
null
if not found. - See Also:
Result.run()