org.eclipse.swtbot.swt.finder.utils.internal
Class NextWidgetFinder

java.lang.Object
  extended by 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

Constructor Summary
NextWidgetFinder(Widget w)
          Constructs the next widget finder.
 
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
 

Constructor Detail

NextWidgetFinder

public NextWidgetFinder(Widget w)
Constructs the next widget finder.

Parameters:
w - the widget
Method Detail

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()