|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.eclipse.swt.widgets.Canvas
org.eclipse.ui.forms.widgets.AbstractHyperlink
org.eclipse.ui.forms.widgets.Hyperlink
Hyperlink is a concrete implementation of the abstract base class that draws text in the client area. Text can be wrapped and underlined. Hyperlink is typically added to the hyperlink group so that certain properties are managed for all the hyperlinks that belong to it.
Hyperlink can be extended.
HyperlinkGroup
Field Summary |
---|
Fields inherited from class org.eclipse.ui.forms.widgets.AbstractHyperlink |
---|
marginHeight, marginWidth |
Fields inherited from class org.eclipse.swt.widgets.Control |
---|
handle |
Constructor Summary | |
---|---|
Hyperlink(Composite parent,
int style)
Creates a new hyperlink control in the provided parent. |
Method Summary | |
---|---|
Point |
computeSize(int wHint,
int hHint,
boolean changed)
Overrides the parent by incorporating the margin. |
protected Point |
computeTextSize(int wHint,
int hHint)
|
String |
getText()
Returns the current hyperlink text. |
protected void |
initAccessible()
|
boolean |
isUnderlined()
Returns the underline state of the hyperlink. |
protected void |
paintHyperlink(GC gc)
Paints the hyperlink text. |
protected void |
paintText(GC gc,
Rectangle bounds)
Paints the hyperlink text in provided bounding rectangle. |
void |
setText(String text)
Sets the text of this hyperlink. |
void |
setUnderlined(boolean underlined)
Sets the underlined state. |
Methods inherited from class org.eclipse.ui.forms.widgets.AbstractHyperlink |
---|
addHyperlinkListener, getHref, getSelection, handleActivate, handleEnter, handleExit, paint, removeHyperlinkListener, setHref |
Methods inherited from class org.eclipse.swt.widgets.Canvas |
---|
getCaret, scroll, setCaret, setFont |
Methods inherited from class org.eclipse.swt.widgets.Composite |
---|
changed, checkSubclass, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setFocus, setLayout, setLayoutDeferred, setTabList |
Methods inherited from class org.eclipse.swt.widgets.Scrollable |
---|
computeTrim, getClientArea, getHorizontalBar, getVerticalBar |
Methods inherited from class org.eclipse.swt.widgets.Widget |
---|
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Hyperlink(Composite parent, int style)
parent
- the control parentstyle
- the widget styleMethod Detail |
protected void initAccessible()
public void setUnderlined(boolean underlined)
underlined
- if true , a line will be drawn below the text for
each wrapped line.public boolean isUnderlined()
public Point computeSize(int wHint, int hHint, boolean changed)
computeSize
in class Composite
public String getText()
getText
in class AbstractHyperlink
public void setText(String text)
text
- the hyperlink textprotected void paintHyperlink(GC gc)
paintHyperlink
in class AbstractHyperlink
gc
- graphic contextprotected void paintText(GC gc, Rectangle bounds)
gc
- graphic contextbounds
- the bounding rectangle in which to paint the textprotected Point computeTextSize(int wHint, int hHint)
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.