public class GLabel extends GComponent implements GDisplay
Modifier and Type | Class and Description |
---|---|
static class |
GLabel.Rotation
Enum to define the rotation of the label.
|
GComponent.CopyPasteOperation, GComponent.DisplayIndicatorStatus, GComponent.ItemType, GComponent.Operation
NAME_ATTRIBUTE
Constructor and Description |
---|
GLabel(String text)
Constructor.
|
GLabel(String widgetId,
String text)
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.
|
JLabel |
getJLabel()
Get the JLabel associated with the widget.
|
GLabel.Rotation |
getRotation()
Get the rotation of the label.
|
String |
getText()
Get the text displayed in the label.
|
void |
setNominalColor(Color color)
Setter of the label color.
|
void |
setRotation(GLabel.Rotation rotation)
Set the rotation of the label.
|
void |
setText(String text)
Set the text to display in the label.
|
void |
setToolTipText(String text)
Empty method to be overwrite by the components at a higher level if needed.
|
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 GLabel(String text)
text
- to display in the label.public void setNominalColor(Color color)
color
- to be set to the label.public void setText(String text)
text
- to display in the labelpublic String getText()
public void setRotation(GLabel.Rotation rotation)
rotation
- the rotation of the label.public GLabel.Rotation getRotation()
public void display()
GDisplay
public Component getComponent()
GComponent
getComponent
in class GComponent
public JLabel getJLabel()
public void setToolTipText(String text)
setToolTipText
in class GComponent
text
- to set in the tooltip.Copyright © 2024. All rights reserved.