public class GHyperlinkLabel extends GComponent implements GDisplay
JHyperlinkLabel
is created in order
to change the behavior of class JLabel
and obtain this aspect.GComponent.CopyPasteOperation, GComponent.DisplayIndicatorStatus, GComponent.ItemType, GComponent.Operation
NAME_ATTRIBUTE
Constructor and Description |
---|
GHyperlinkLabel(String label)
Constructor.
|
GHyperlinkLabel(String widgetId,
String label)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
display()
Called when the element is to be displayed, so it can perform the actions required for its display, and
the display of its inmmediate descendants.
|
Component |
getComponent()
Returns the low level Swing Component encapsulated by the class if any, otherwise returns
null.
|
static Color |
getHyperlinkColor()
Get the hyperlink color.
|
fr.cnes.genius.lowLevel.GHyperlinkLabel.JHyperlinkLabel |
getJHyperlinkLabel()
Get the JHyperlinkLabel component.
|
String |
getLabel()
Get the label text.
|
Color |
getUnderlineColor()
Get the color of the underline of the hyperlink label.
|
static void |
setHyperlinkColor(Color color) |
void |
setLabel(String label)
Set the label text.
|
void |
setToolTipText(String toolTipText)
Setter of a tooltip text to the hyperlink label.
|
void |
setUnderlineColor(Color underlineColor)
Set the color of the underline of the hyperlink label.
|
activateConstraintsByType, attachCopyPasteMenu, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, clearAllInnerDescendantConstraint, clearConstraint, clearInnerDescendantContraint, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGClassName, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getName, getNameInConfigFile, getOperationSaveValue, getPathInConfigFile, getSimpleWidgetId, getStatus, getStringConstraint, getSubComponent, getWidgetId, handleCopyPasteEvent, handleCopyPasteEvent, handleProcessEventException, isCopyPasteEvent, isEnabled, isForcedStatus, isModified, launchInvalidPositionException, mouseWheelMoved, parseSimpleConstraint, processGEvent, processMouseWheelEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDefaultConstraints, setDisplayIsModifiedIndicator, setElement, setEnabled, setForcedStatus, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setName, setNameAndCommentInConfigFile, setNameInConfigFile, setPathInConfigFile, setStatus, setStringConstraint, setWidgetId, setWidth, setWindowBusyCursor, updateIsModifiedIndicator, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem
public GHyperlinkLabel(String label)
label
- to display as the widget text.public Color getUnderlineColor()
public void setUnderlineColor(Color underlineColor)
underlineColor
- the color of the underline of the hyperlink label.public String getLabel()
public void setLabel(String label)
label
- text to set.public fr.cnes.genius.lowLevel.GHyperlinkLabel.JHyperlinkLabel getJHyperlinkLabel()
public Component getComponent()
GComponent
getComponent
in class GComponent
public void display()
GDisplay
public void setToolTipText(String toolTipText)
setToolTipText
in class GComponent
toolTipText
- to be set to the hyperlink labelpublic static Color getHyperlinkColor()
public static void setHyperlinkColor(Color color)
color
- the color to setCopyright © 2024. All rights reserved.