public class Hyperlink extends AbstractWidget<GuiOutputManager>
| Modifier and Type | Field and Description |
|---|---|
private BrowseColumnGuiImpl |
column
Parent column which contains the hyperlink.
|
private FontDetails |
font
Hyperlink font.
|
private GuiDriver |
gd
Screen driver.
|
private double |
height
Hyperlink area height.
|
private MouseHoverAction |
mouseHoverAction
Mouse hover handler.
|
private java.lang.String |
text
Hyperlink text.
|
private int |
textLeftOffset
Left offset of the hyperlink text inside the clip rectangle.
|
private int |
textTopOffset
Top offset of the hyperlink text inside the clip rectangle.
|
private int |
viewportRowIndex
0-based viewport index of the browse row which contains the hyperlink.
|
private WidgetId |
widgetId
Hyperlink widget ID.
|
private double |
width
Hyperlink area width.
|
insets, listeners, location, LOG, mousePtr, nativeInsets, physicalLocation| Constructor and Description |
|---|
Hyperlink(BrowseColumnGuiImpl column,
java.lang.String text,
int viewportRowIndex)
Creates the hyperlink for the specific cell of the browse.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<MousePtrWrapper> |
defaultMousePtr()
Get default mouse pointer for this widget
|
void |
destroy()
Destroy this widget.
|
Dimension |
dimension()
Get widget dimension.
|
void |
doLayout()
Do layout of this hyperlink (calculate widget size, position etc.).
|
void |
draw()
Draw widget.
|
FontDetails |
getFont()
Get font used to render this hyperlink.
|
WidgetId |
getId()
Returns widget ID.
|
double |
height()
Get widget height.
|
Dimension |
minimumSize()
Get widget minimum size.
|
protected int[] |
mouseActions()
Determine the mouse actions processed by this widget.
|
void |
mouseClicked(java.awt.event.MouseEvent e)
Notification of a mouse clicked event occurred for this widget.
|
void |
mouseWheelMoved(java.awt.event.MouseWheelEvent e)
Notification of a mouse wheel moved event occurred for this widget.
|
boolean |
supportsCustomMousePointer()
Check if the widget supports LOAD-MOUSE-POINTER() method
|
double |
width()
Get widget width.
|
_setHidden, _setVisible, activateDirectManipulation, addFocusListener, addKeyListener, afterConfigUpdateBase, ancestor, ancestorId, autoResize, bounds, clear, clearWidget, clipRectangle, clipRectangle, clipWith, config, copyColors, copyState, createMouseHoverAction, deactivateDirectManipulation, debug, disable, disableTooltip, displayPhysicalLocation, drawCaret, enable, enableTooltip, enclosingFrame, findMouseSource, focusTraversable, forceCursorOnFocus, forceVisibility, getActualBounds, getAndResetBitmap, getAndSetBitmap, getBitmapCopy, getCachedScreenLocation, getCachedScreenPhysicalLocation, getCustomMousePointer, getDefaultEvent, getEffectiveMousePointer, getLoadedMousePointer, getMenuMouse, getMouseActions, getMousePosition, getPortableMouseEventCoordinates, getSelectedText, getState, getTextHeight, getTextHeightNative, getTextHeightNative, getTextWidth, getTextWidth, getTextWidthNative, getTextWidthNative, getVisiblePart, getZOrderClass, hasFocus, hasTooltip, hidden, hide, highlighted, ignoreAction, initialHeight, initialWidth, insets, isCurrent, isDirectManipulationActive, isDirectManipulationActiveOrInUIB, isDirectManipulationCapable, isDirectManipulationRequired, isDisplayed, isEnabled, isFocusable, isHeader, isMouseDrag, isRealized, isRepaintDisabled, isRMBEntrySupported, isScreenLocationCached, isTabStop, isThreeD, isTotallyObscured, isVisible, isVisible, location, manageSystemActions, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, moveToBottom, moveToTop, name, navigable, oleDoDrop, oleDrag, oleDragging, oleStartDragging, onOleDragging, onOleDropEnd, parent, parent, parentObject, parentOrSelf, parentOrSelfObject, physicalBounds, physicalDimension, physicalLocation, postprocessConfig, prepParentLocation, preventFocusWhenMouseDownEventDefined, processDirectManipulationEvent, processEvent, processFocusEvent, processKeyEvent, processKeyEventForSelectableWidget, processKeyListeners, processMnemonic, processMnemonicImpl, processSystemKey, raiseLegacyMouseEvents, reflectAncestorChange, reflectLocationChanged, reflectSizeChanged, refresh, registerWidgetListener, repaint, repaint, repaint, requestFocus, requestSync, resetBitmap, resizeTo, resolveFont, resolvePopupMenuId, resolveTitleFont, screen, screenDimension, screenHeight, screenLocation, screenPhysicalLocation, screenWidth, setBitmap, setCachedScreenLocation, setCachedScreenPhysicalLocation, setDirectManipulationActive, setEnabled, setHidden, setHighlighted, setLocation, setLocation, setMousePointer, setMousePointer, setParent, setPhysicalDimensionInt, setPhysicalLocation, setSensitiveForUIB, setState, setVisible, setWindow, show, showPopupMenu, sync, topLevelWindow, toString, translate, triggerLocationChanged, unrealize, unregisterWidgetListener, updateSizeWorker, updateSystemParent, widgetRealized, widgetStateChanged, windowclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitacceptsEscAsAnyKey, acceptTrigger, canMovetoTop, completeTrigger, enforceDefaultMousePtr, getIdForTrigger, getLegacyWidget, getTriggerWidget, getTriggerWidget, hasFocus, ignoreEnable, isCurrent, isDirectManipulable, isDroppable, isInitialValueLayout, isLegacyFocus, isProcessProgressEvent, maySwitchFocus, parent, refreshWidget, requestFocus, requestFocus, startTrigger, systemFocusGrabbed, validateDisplayValueprivate final GuiDriver gd
private double width
private double height
private final FontDetails font
private final java.lang.String text
private final WidgetId widgetId
private int textTopOffset
private int textLeftOffset
0 or a negative
number.private final int viewportRowIndex
private MouseHoverAction mouseHoverAction
private final BrowseColumnGuiImpl column
public Hyperlink(BrowseColumnGuiImpl column, java.lang.String text, int viewportRowIndex)
column - Parent browse column.text - Hyperlink text.viewportRowIndex - 0-based viewport index of the browse row which contains the hyperlink.public void doLayout()
public FontDetails getFont()
public void draw()
draw in interface Widget<GuiOutputManager>draw in class AbstractWidget<GuiOutputManager>public Dimension dimension()
dimension in interface Widget<GuiOutputManager>dimension in class AbstractWidget<GuiOutputManager>public double height()
height in interface Widget<GuiOutputManager>height in class AbstractWidget<GuiOutputManager>public Dimension minimumSize()
minimumSize in interface Widget<GuiOutputManager>minimumSize in class AbstractWidget<GuiOutputManager>public double width()
width in interface Widget<GuiOutputManager>width in class AbstractWidget<GuiOutputManager>public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenermouseClicked in class AbstractWidget<GuiOutputManager>e - The mouse event.protected int[] mouseActions()
mouseActions in class AbstractWidget<GuiOutputManager>public void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
mouseWheelMoved in interface java.awt.event.MouseWheelListenermouseWheelMoved in class AbstractWidget<GuiOutputManager>e - The mouse event.public WidgetId getId()
getId in interface Widget<GuiOutputManager>getId in class AbstractWidget<GuiOutputManager>public boolean supportsCustomMousePointer()
supportsCustomMousePointer in interface Widget<GuiOutputManager>supportsCustomMousePointer in class AbstractWidget<GuiOutputManager>true if the widget supports
LOAD-MOUSE-POINTER() methodpublic void destroy()
destroy in interface Widget<GuiOutputManager>destroy in class AbstractWidget<GuiOutputManager>public java.util.Optional<MousePtrWrapper> defaultMousePtr()
Optional.empty() if one is inherited from the enclosing
frame