Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ui.forms
Class HyperlinkSettings


java.lang.Object
  extended by 
org.eclipse.ui.forms.HyperlinkSettings
Direct Known Subclasses:
HyperlinkGroup

public class HyperlinkSettings
extends Object

Manages color and underline mode settings for a group of hyperlinks. The class is extended by HyperlinkGroup but is otherwise not intended to be subclassed.

Since:
3.0
Restriction:
This class is not intended to be subclassed by clients.

Field Summary
static int UNDERLINE_ALWAYS
          Underline mode to be used when hyperlinks should always be underlined.
static int UNDERLINE_HOVER
          Underline mode to be used when hyperlinks should only be underlined on mouse hover.
static int UNDERLINE_NEVER
          Underline mode to be used when hyperlinks should not be underlined.
 
Constructor Summary
HyperlinkSettings ( Display display)
          The constructor.
 
Method Summary
  Color getActiveBackground ()
          Returns the background to use for the active hyperlink.
  Color getActiveForeground ()
          Returns the foreground to use for the active hyperlink.
  Color getBackground ()
          Returns the background to use for the normal hyperlink.
  Cursor getBusyCursor ()
          Returns the cursor to use when the hyperlink is active.
  Color getForeground ()
          Returns the foreground to use for the normal hyperlink.
  Cursor getHyperlinkCursor ()
          Returns the cursor to use when hovering over the hyperlink.
 int getHyperlinkUnderlineMode ()
          Returns the underline mode to be used for all the hyperlinks in this group.
  Cursor getTextCursor ()
          Returns the cursor to use when over text.
 void initializeDefaultForegrounds ( Display display)
          Initializes the hyperlink foregrounds from the JFace defaults set for the entire workbench.
 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 newBackground)
          Sets the new hyperlink background for all the links.
 void setForeground ( Color newForeground)
          Sets the new hyperlink foreground for all the links.
 void setHyperlinkUnderlineMode (int mode)
          Sets the new hyperlink underline mode for all the links in this group.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNDERLINE_NEVER

public static final int UNDERLINE_NEVER
Underline mode to be used when hyperlinks should not be underlined.

See Also:
Constant Field Values

UNDERLINE_HOVER

public static final int UNDERLINE_HOVER
Underline mode to be used when hyperlinks should only be underlined on mouse hover.

See Also:
Constant Field Values

UNDERLINE_ALWAYS

public static final int UNDERLINE_ALWAYS
Underline mode to be used when hyperlinks should always be underlined.

See Also:
Constant Field Values
Constructor Detail

HyperlinkSettings

public HyperlinkSettings(
Display display)
The constructor.

Parameters:
display - the display to use when creating colors.
Method Detail

initializeDefaultForegrounds

public void initializeDefaultForegrounds(
Display display)
Initializes the hyperlink foregrounds from the JFace defaults set for the entire workbench.

Parameters:
display - the display to use when creating colors
See Also:
JFaceColors

getActiveBackground

public 
Color getActiveBackground()
Returns the background to use for the active hyperlink.

Returns:
active hyperlink background

getActiveForeground

public 
Color getActiveForeground()
Returns the foreground to use for the active hyperlink.

Returns:
active hyperlink foreground

getBackground

public 
Color getBackground()
Returns the background to use for the normal hyperlink.

Returns:
normal hyperlink background

getBusyCursor

public 
Cursor getBusyCursor()
Returns the cursor to use when the hyperlink is active. This cursor will be shown before hyperlink listeners have been notified of hyperlink activation and hidden when the notification method returns.

Returns:
the busy cursor

getTextCursor

public 
Cursor getTextCursor()
Returns the cursor to use when over text.

Returns:
the text cursor

getForeground

public 
Color getForeground()
Returns the foreground to use for the normal hyperlink.

Returns:
the normal hyperlink foreground

getHyperlinkCursor

public 
Cursor getHyperlinkCursor()
Returns the cursor to use when hovering over the hyperlink.

Returns:
the hyperlink cursor

getHyperlinkUnderlineMode

public int getHyperlinkUnderlineMode()
Returns the underline mode to be used for all the hyperlinks in this group.

Returns:
one of UNDERLINE_NEVER, UNDERLINE_ALWAYS, UNDERLINE_HOVER

setActiveBackground

public void setActiveBackground(
Color newActiveBackground)
Sets the new active hyperlink background for all the links.

Parameters:
newActiveBackground - the new active background

setActiveForeground

public void setActiveForeground(
Color newActiveForeground)
Sets the new active hyperlink foreground for all the links.

Parameters:
newActiveForeground - the new active foreground

setBackground

public void setBackground(
Color newBackground)
Sets the new hyperlink background for all the links.

Parameters:
newBackground - the new hyperlink background

setForeground

public void setForeground(
Color newForeground)
Sets the new hyperlink foreground for all the links.

Parameters:
newForeground - the new hyperlink foreground

setHyperlinkUnderlineMode

public void setHyperlinkUnderlineMode(int mode)
Sets the new hyperlink underline mode for all the links in this group.

Parameters:
mode - one of UNDERLINE_NEVER, UNDERLINE_HOVER and UNDERLINE_ALWAYS.

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire