Class HyperlinkLabel
- All Implemented Interfaces:
- Drawable
- 
Field SummaryFields inherited from class org.eclipse.swt.widgets.WidgetnativeZoom
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds the listener to the collection of listeners who will be notified when mouse buttons are pressed and released, by sending it one of the messages defined in theMouseListenerinterface.voidAdds the listener to the collection of listeners who will be notified when the mouse passes or hovers over controls, by sending it one of the messages defined in theMouseTrackListenerinterface.voidAdds the listener to the collection of listeners who will be notified when the receiver needs to be painted, by sending it one of the messages defined in thePaintListenerinterface.voidaddSelectionListener(SelectionListener listener) computeSize(int wHint, int hHint, boolean changed) Returns the preferred size (in points) of the receiver.getLabel()booleanprotected voidpaint(PaintEvent e) voidremoveSelectionListener(SelectionListener listener) voidSets the receiver's background color to the color specified by the argument, or to the default system color for the control if the argument is null.voidSets the receiver's cursor to the cursor specified by the argument, or to the default cursor for that kind of control if the argument is null.voidSets the receiver's foreground color to the color specified by the argument, or to the default system color for the control if the argument is null.voidMethods inherited from class org.eclipse.swt.widgets.CanvasdrawBackground, getCaret, getIME, scroll, setCaret, setFont, setIMEMethods inherited from class org.eclipse.swt.widgets.Compositechanged, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList, toStringMethods inherited from class org.eclipse.swt.widgets.ScrollablecomputeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar, setScrollbarsModeMethods inherited from class org.eclipse.swt.widgets.ControladdControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseMoveListener, addMouseWheelListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackgroundImage, setBounds, setBounds, setCapture, setDragDetect, setEnabled, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, updateMethods inherited from class org.eclipse.swt.widgets.WidgetaddDisposeListener, addListener, addTypedListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, getTypedListeners, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, removeListener, removeTypedListener, reskin, setData, setDataMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.swt.graphics.DrawableisAutoScalable
- 
Constructor Details- 
HyperlinkLabelConstructor for Hyperlink.
 
- 
- 
Method Details- 
setText
- 
getSelectionpublic boolean getSelection()
- 
getLabel
- 
paint
- 
addSelectionListener
- 
removeSelectionListener
- 
computeSizeDescription copied from class:ControlReturns the preferred size (in points) of the receiver.The preferred size of a control is the size that it would best be displayed at. The width hint and height hint arguments allow the caller to ask a control questions such as "Given a particular width, how high does the control need to be to show all of the contents?" To indicate that the caller does not wish to constrain a particular dimension, the constant SWT.DEFAULTis passed for the hint.If the changed flag is true, it indicates that the receiver's contents have changed, therefore any caches that a layout manager containing the control may have been keeping need to be flushed. When the control is resized, the changed flag will befalse, so layout manager caches can be retained.- Overrides:
- computeSizein class- Control
- Parameters:
- wHint- the width hint (can be- SWT.DEFAULT)
- hHint- the height hint (can be- SWT.DEFAULT)
- changed-- trueif the control's contents have changed, and- falseotherwise
- Returns:
- the preferred size of the control.
- See Also:
 
- 
addMouseListenerDescription copied from class:ControlAdds the listener to the collection of listeners who will be notified when mouse buttons are pressed and released, by sending it one of the messages defined in theMouseListenerinterface.- Overrides:
- addMouseListenerin class- Control
- Parameters:
- l- the listener which should be notified
- See Also:
 
- 
addMouseTrackListenerDescription copied from class:ControlAdds the listener to the collection of listeners who will be notified when the mouse passes or hovers over controls, by sending it one of the messages defined in theMouseTrackListenerinterface.- Overrides:
- addMouseTrackListenerin class- Control
- Parameters:
- l- the listener which should be notified
- See Also:
 
- 
addPaintListenerDescription copied from class:ControlAdds the listener to the collection of listeners who will be notified when the receiver needs to be painted, by sending it one of the messages defined in thePaintListenerinterface.- Overrides:
- addPaintListenerin class- Control
- Parameters:
- l- the listener which should be notified
- See Also:
 
- 
setBackgroundDescription copied from class:ControlSets the receiver's background color to the color specified by the argument, or to the default system color for the control if the argument is null.Note: This operation is a hint and may be overridden by the platform. Note: The background color can be overridden by setting a background image. - Overrides:
- setBackgroundin class- Control
- Parameters:
- c- the new color (or null)
 
- 
setForegroundDescription copied from class:ControlSets the receiver's foreground color to the color specified by the argument, or to the default system color for the control if the argument is null.Note: This operation is a hint and may be overridden by the platform. - Overrides:
- setForegroundin class- Control
- Parameters:
- c- the new color (or null)
 
- 
setCursorDescription copied from class:ControlSets the receiver's cursor to the cursor specified by the argument, or to the default cursor for that kind of control if the argument is null.When the mouse pointer passes over a control its appearance is changed to match the control's cursor. 
 
-