Package org.eclipse.ui.forms
Class HyperlinkGroup
java.lang.Object
org.eclipse.ui.forms.HyperlinkSettings
org.eclipse.ui.forms.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.
- Since:
- 3.0
- 
Field SummaryFields inherited from class org.eclipse.ui.forms.HyperlinkSettingsUNDERLINE_ALWAYS, UNDERLINE_HOVER, UNDERLINE_NEVER
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds a hyperlink to the group to be jointly managed.Returns the link that has been active the last, ornullif no link has been active yet or the last active link has been disposed.voidsetActiveBackground(Color newActiveBackground) Sets the new active hyperlink background for all the links.voidsetActiveForeground(Color newActiveForeground) Sets the new active hyperlink foreground for all the links.voidsetBackground(Color bg) Sets the group background and also sets the background of all the currently managed links.voidsetForeground(Color fg) Sets the group foreground and also sets the background of all the currently managed links.voidsetHyperlinkUnderlineMode(int mode) Sets the hyperlink underline mode.Methods inherited from class org.eclipse.ui.forms.HyperlinkSettingsgetActiveBackground, getActiveForeground, getBackground, getBusyCursor, getForeground, getHyperlinkCursor, getHyperlinkUnderlineMode, getTextCursor, initializeDefaultCursors, initializeDefaultForegrounds, setBusyCursor, setHyperlinkCursor, setTextCursor
- 
Constructor Details- 
HyperlinkGroupCreates a hyperlink group.
 
- 
- 
Method Details- 
getLastActivatedReturns the link that has been active the last, ornullif no link has been active yet or the last active link has been disposed.- Returns:
- the last active link or null
 
- 
addAdds a hyperlink to the group to be jointly managed. Hyperlink will be managed until it is disposed. Settings like colors, cursors and modes will affect all managed hyperlinks.- Parameters:
- link- link to add in group
 
- 
setActiveBackgroundSets the new active hyperlink background for all the links.- Overrides:
- setActiveBackgroundin class- HyperlinkSettings
- Parameters:
- newActiveBackground- the new active background
 
- 
setActiveForegroundSets the new active hyperlink foreground for all the links.- Overrides:
- setActiveForegroundin class- HyperlinkSettings
- Parameters:
- newActiveForeground- the new active foreground
 
- 
setBackgroundSets the group background and also sets the background of all the currently managed links.- Overrides:
- setBackgroundin class- HyperlinkSettings
- Parameters:
- bg- the new background
 
- 
setForegroundSets the group foreground and also sets the background of all the currently managed links.- Overrides:
- setForegroundin class- HyperlinkSettings
- Parameters:
- fg- the new foreground
 
- 
setHyperlinkUnderlineModepublic void setHyperlinkUnderlineMode(int mode) Sets the hyperlink underline mode.- Overrides:
- setHyperlinkUnderlineModein class- HyperlinkSettings
- Parameters:
- mode- the new hyperlink underline mode
- See Also:
 
 
-