org.eclipse.swtbot.forms.finder.widgets
Class SWTBotImageHyperlink

java.lang.Object
  extended by org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot<T>
      extended by org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBotControl<ImageHyperlink>
          extended by org.eclipse.swtbot.forms.finder.widgets.SWTBotImageHyperlink

public class SWTBotImageHyperlink
extends AbstractSWTBotControl<ImageHyperlink>

This represents a ImageHyperlink widget.

Version:
$Id$
Author:
Chris Aniszczyk <caniszczyk [at] gmail [dot] com>

Field Summary
 
Fields inherited from class org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot
description, display, log, widget
 
Constructor Summary
SWTBotImageHyperlink(ImageHyperlink w)
          Constructs a new instance with the given widget.
SWTBotImageHyperlink(ImageHyperlink w, SelfDescribing description)
          Constructs a new instance with the given widget.
 
Method Summary
 Image activeImage()
          Return the ImageHyperlink's active image or null.
 AbstractSWTBot<ImageHyperlink> click()
          Clicks on this widget.
 AbstractSWTBot<ImageHyperlink> click(String hyperlinkText)
          Clicks on the image hyperlink with the specified text.
 Image hoverImage()
          Return the ImageHyperlink's hover image or null.
 Image image()
          Return the ImageHyperlink's image or null.
 
Methods inherited from class org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBotControl
absoluteLocation, click, moveMouseToWidget, rightClick
 
Methods inherited from class org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot
assertEnabled, asyncExec, backgroundColor, click, clickXY, contextMenu, contextMenu, createEvent, createMouseEvent, createSelectionEvent, doubleClickXY, foregroundColor, getId, getText, getToolTipText, hasStyle, isActive, isEnabled, isEnabledInternal, isVisible, keyboard, notify, notify, notify, pressShortcut, pressShortcut, pressShortcut, rightClick, rightClick, setFocus, sleep, syncExec, syncExec, syncExec, syncExec, syncExec, syncExec, syncExec, syncExec, toString, traverse, waitForEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SWTBotImageHyperlink

public SWTBotImageHyperlink(ImageHyperlink w)
                     throws WidgetNotFoundException
Constructs a new instance with the given widget.

Parameters:
w - the widget.
Throws:
WidgetNotFoundException - if the widget is null or widget has been disposed.

SWTBotImageHyperlink

public SWTBotImageHyperlink(ImageHyperlink w,
                            SelfDescribing description)
                     throws WidgetNotFoundException
Constructs a new instance with the given widget.

Parameters:
w - the widget.
description - the description of the widget, this will be reported by AbstractSWTBot.toString()
Throws:
WidgetNotFoundException - if the widget is null or widget has been disposed.
Method Detail

click

public AbstractSWTBot<ImageHyperlink> click()
Description copied from class: AbstractSWTBot
Clicks on this widget.

Overrides:
click in class AbstractSWTBot<ImageHyperlink>
Returns:
itself.

image

public Image image()
Return the ImageHyperlink's image or null.

Returns:
the image of the image hyperlink or null.

hoverImage

public Image hoverImage()
Return the ImageHyperlink's hover image or null.

Returns:
the hover image of the image hyperlink or null.

activeImage

public Image activeImage()
Return the ImageHyperlink's active image or null.

Returns:
the active image of the image hyperlink or null.

click

public AbstractSWTBot<ImageHyperlink> click(String hyperlinkText)
Clicks on the image hyperlink with the specified text.

Parameters:
hyperlinkText - the text of the image hyperlink in case there are more than one hyperlinks.
Returns:
itself.