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

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

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

Constructor Detail

PreviousWidgetFinder

public PreviousWidgetFinder(Widget w)
Constructs the previous widget finder.

Parameters:
w - the widget
Method Detail

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