Package org.eclipse.help.ui.internal
Class HyperlinkHandler
java.lang.Object
org.eclipse.help.ui.internal.HyperlinkHandler
- All Implemented Interfaces:
EventListener
,MouseListener
,MouseTrackListener
,PaintListener
,SWTEventListener
,Listener
public class HyperlinkHandler
extends Object
implements MouseListener, MouseTrackListener, PaintListener, Listener
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
void
handleEvent
(Event event) Sent when an event that the receiver has registered for occurs.boolean
void
Sent when a mouse button is pressed twice within the (operating system specified) double click period.void
Sent when a mouse button is pressed.void
Sent when the mouse pointer passes into the area of the screen covered by a control.void
Sent when the mouse pointer passes out of the area of the screen covered by a control.void
Sent when the mouse pointer hovers (that is, stops moving for an (operating system specified) period of time) over a control.void
Sent when a mouse button is released.void
Sent when a paint event occurs for the control.void
registerHyperlink
(Control control, IHyperlinkListener listener) void
reset()
void
setActiveBackground
(Color newActiveBackground) void
setActiveForeground
(Color newActiveForeground) void
setBackground
(Color newBackground) void
setForeground
(Color newForeground) void
setHyperlinkCursorUsed
(boolean newHyperlinkCursorUsed) void
setHyperlinkUnderlineMode
(int newHyperlinkUnderlineMode) static void
-
Field Details
-
UNDERLINE_NEVER
public static final int UNDERLINE_NEVER- See Also:
-
UNDERLINE_ROLLOVER
public static final int UNDERLINE_ROLLOVER- See Also:
-
UNDERLINE_ALWAYS
public static final int UNDERLINE_ALWAYS- See Also:
-
-
Constructor Details
-
HyperlinkHandler
public HyperlinkHandler()HyperlinkHandler constructor comment.
-
-
Method Details
-
getActiveBackground
- Returns:
- org.eclipse.swt.graphics.Color
-
getActiveForeground
- Returns:
- org.eclipse.swt.graphics.Color
-
getBackground
- Returns:
- org.eclipse.swt.graphics.Color
-
getForeground
- Returns:
- org.eclipse.swt.graphics.Color
-
getHyperlinkUnderlineMode
public int getHyperlinkUnderlineMode()- Returns:
- int
-
getLastLink
- Returns:
- org.eclipse.swt.widgets.Control
-
isHyperlinkCursorUsed
public boolean isHyperlinkCursorUsed()- Returns:
- boolean
-
mouseDoubleClick
Description copied from interface:MouseListener
Sent when a mouse button is pressed twice within the (operating system specified) double click period.- Specified by:
mouseDoubleClick
in interfaceMouseListener
- Parameters:
e
- an event containing information about the mouse double click- See Also:
-
mouseDown
Description copied from interface:MouseListener
Sent when a mouse button is pressed.- Specified by:
mouseDown
in interfaceMouseListener
- Parameters:
e
- an event containing information about the mouse button press
-
mouseEnter
Description copied from interface:MouseTrackListener
Sent when the mouse pointer passes into the area of the screen covered by a control.- Specified by:
mouseEnter
in interfaceMouseTrackListener
- Parameters:
e
- an event containing information about the mouse enter
-
mouseExit
Description copied from interface:MouseTrackListener
Sent when the mouse pointer passes out of the area of the screen covered by a control.- Specified by:
mouseExit
in interfaceMouseTrackListener
- Parameters:
e
- an event containing information about the mouse exit
-
mouseHover
Description copied from interface:MouseTrackListener
Sent when the mouse pointer hovers (that is, stops moving for an (operating system specified) period of time) over a control.- Specified by:
mouseHover
in interfaceMouseTrackListener
- Parameters:
e
- an event containing information about the hover
-
mouseUp
Description copied from interface:MouseListener
Sent when a mouse button is released.- Specified by:
mouseUp
in interfaceMouseListener
- Parameters:
e
- an event containing information about the mouse button release
-
paintControl
Description copied from interface:PaintListener
Sent when a paint event occurs for the control.- Specified by:
paintControl
in interfacePaintListener
- Parameters:
e
- an event containing information about the paint
-
registerHyperlink
- Parameters:
control
- org.eclipse.swt.widgets.Controllistener
- org.eclipse.help.ui.internal.IHyperlinkListener
-
getLinkListener
-
reset
public void reset() -
setActiveBackground
- Parameters:
newActiveBackground
- org.eclipse.swt.graphics.Color
-
setActiveForeground
- Parameters:
newActiveForeground
- org.eclipse.swt.graphics.Color
-
setBackground
- Parameters:
newBackground
- org.eclipse.swt.graphics.Color
-
setForeground
- Parameters:
newForeground
- org.eclipse.swt.graphics.Color
-
setHyperlinkCursorUsed
public void setHyperlinkCursorUsed(boolean newHyperlinkCursorUsed) - Parameters:
newHyperlinkCursorUsed
- boolean
-
setHyperlinkUnderlineMode
public void setHyperlinkUnderlineMode(int newHyperlinkUnderlineMode) - Parameters:
newHyperlinkUnderlineMode
- int
-
underline
- Parameters:
control
- org.eclipse.swt.widgets.Controlinside
- boolean
-
handleEvent
Sent when an event that the receiver has registered for occurs.- Specified by:
handleEvent
in interfaceListener
- Parameters:
event
- the event which occurred
-