Package org.eclipse.help.ui.internal
Class HyperlinkHandler
java.lang.Object
org.eclipse.help.ui.internal.HyperlinkHandler
- All Implemented Interfaces:
EventListener,MouseListener,MouseTrackListener,PaintListener,Listener
public class HyperlinkHandler
extends Object
implements MouseListener, MouseTrackListener, PaintListener, Listener
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidhandleEvent(Event event) Sent when an event that the receiver has registered for occurs.booleanvoidSent when a mouse button is pressed twice within the (operating system specified) double click period.voidSent when a mouse button is pressed.voidSent when the mouse pointer passes into the area of the screen covered by a control.voidSent when the mouse pointer passes out of the area of the screen covered by a control.voidSent when the mouse pointer hovers (that is, stops moving for an (operating system specified) period of time) over a control.voidSent when a mouse button is released.voidSent when a paint event occurs for the control.voidregisterHyperlink(Control control, IHyperlinkListener listener) voidreset()voidsetActiveBackground(Color newActiveBackground) voidsetActiveForeground(Color newActiveForeground) voidsetBackground(Color newBackground) voidsetForeground(Color newForeground) voidsetHyperlinkCursorUsed(boolean newHyperlinkCursorUsed) voidsetHyperlinkUnderlineMode(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:MouseListenerSent when a mouse button is pressed twice within the (operating system specified) double click period.- Specified by:
mouseDoubleClickin interfaceMouseListener- Parameters:
e- an event containing information about the mouse double click- See Also:
-
mouseDown
Description copied from interface:MouseListenerSent when a mouse button is pressed.- Specified by:
mouseDownin interfaceMouseListener- Parameters:
e- an event containing information about the mouse button press
-
mouseEnter
Description copied from interface:MouseTrackListenerSent when the mouse pointer passes into the area of the screen covered by a control.- Specified by:
mouseEnterin interfaceMouseTrackListener- Parameters:
e- an event containing information about the mouse enter
-
mouseExit
Description copied from interface:MouseTrackListenerSent when the mouse pointer passes out of the area of the screen covered by a control.- Specified by:
mouseExitin interfaceMouseTrackListener- Parameters:
e- an event containing information about the mouse exit
-
mouseHover
Description copied from interface:MouseTrackListenerSent when the mouse pointer hovers (that is, stops moving for an (operating system specified) period of time) over a control.- Specified by:
mouseHoverin interfaceMouseTrackListener- Parameters:
e- an event containing information about the hover
-
mouseUp
Description copied from interface:MouseListenerSent when a mouse button is released.- Specified by:
mouseUpin interfaceMouseListener- Parameters:
e- an event containing information about the mouse button release
-
paintControl
Description copied from interface:PaintListenerSent when a paint event occurs for the control.- Specified by:
paintControlin 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:
handleEventin interfaceListener- Parameters:
event- the event which occurred
-