public final class HyperlinkGroup extends HyperlinkSettings
UNDERLINE_ALWAYS, UNDERLINE_HOVER, UNDERLINE_NEVER
Constructor and Description |
---|
HyperlinkGroup(Display display)
Creates a hyperlink group.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getActiveBackground, getActiveForeground, getBackground, getBusyCursor, getForeground, getHyperlinkCursor, getHyperlinkUnderlineMode, getTextCursor, initializeDefaultCursors, initializeDefaultForegrounds, setBusyCursor, setHyperlinkCursor, setTextCursor
public HyperlinkGroup(Display display)
public Hyperlink getLastActivated()
null
if no link has been active yet or the last active link has been
disposed.null
public void add(Hyperlink link)
link
- public void setActiveBackground(Color newActiveBackground)
setActiveBackground
in class HyperlinkSettings
newActiveBackground
- the new active backgroundpublic void setActiveForeground(Color newActiveForeground)
setActiveForeground
in class HyperlinkSettings
newActiveForeground
- the new active foregroundpublic void setBackground(Color bg)
setBackground
in class HyperlinkSettings
bg
- the new backgroundpublic void setForeground(Color fg)
setForeground
in class HyperlinkSettings
fg
- the new foregroundpublic void setHyperlinkUnderlineMode(int mode)
setHyperlinkUnderlineMode
in class HyperlinkSettings
mode
- the new hyperlink underline modeHyperlinkSettings
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.