|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ui.forms.HyperlinkSettings
org.eclipse.ui.forms.HyperlinkGroup
public final class HyperlinkGroup
Manages a group of hyperlinks. It tracks activation, updates normal and active colors and updates underline state depending on the underline preference. Hyperlink labels are added to the group after creation and are automatically removed from the group when they are disposed.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.ui.forms.HyperlinkSettings |
|---|
UNDERLINE_ALWAYS, UNDERLINE_HOVER, UNDERLINE_NEVER |
| Constructor Summary | |
|---|---|
HyperlinkGroup(Display display)
Creates a hyperlink group. |
|
| Method Summary | |
|---|---|
void |
add(Hyperlink link)
Adds a hyperlink to the group to be jointly managed. |
Hyperlink |
getLastActivated()
Returns the link that has been active the last, or null
if no link has been active yet or the last active link has been
disposed. |
void |
setActiveBackground(Color newActiveBackground)
Sets the new active hyperlink background for all the links. |
void |
setActiveForeground(Color newActiveForeground)
Sets the new active hyperlink foreground for all the links. |
void |
setBackground(Color bg)
Sets the group background and also sets the background of all the currently managed links. |
void |
setForeground(Color fg)
Sets the group foreground and also sets the background of all the currently managed links. |
void |
setHyperlinkUnderlineMode(int mode)
Sets the hyperlink underline mode. |
| Methods inherited from class org.eclipse.ui.forms.HyperlinkSettings |
|---|
getActiveBackground, getActiveForeground, getBackground, getBusyCursor, getForeground, getHyperlinkCursor, getHyperlinkUnderlineMode, getTextCursor, initializeDefaultForegrounds |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HyperlinkGroup(Display display)
| Method Detail |
|---|
public Hyperlink getLastActivated()
null
if no link has been active yet or the last active link has been
disposed.
nullpublic void add(Hyperlink link)
link - public void setActiveBackground(Color newActiveBackground)
setActiveBackground in class HyperlinkSettingsnewActiveBackground - the new active backgroundpublic void setActiveForeground(Color newActiveForeground)
setActiveForeground in class HyperlinkSettingsnewActiveForeground - the new active foregroundpublic void setBackground(Color bg)
setBackground in class HyperlinkSettingsbg - the new backgroundpublic void setForeground(Color fg)
setForeground in class HyperlinkSettingsfg - the new foregroundpublic void setHyperlinkUnderlineMode(int mode)
setHyperlinkUnderlineMode in class HyperlinkSettingsmode - the new hyperlink underline modeHyperlinkSettings
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.