public class GTextAreaWithLabel extends GContainer implements GDisplay, GClear
Index | Class | Item | Constraint |
0 | GLabel | label | "newline" |
1 | GTextArea | this.widgetId | "newline" |
GComponent.CopyPasteOperation, GComponent.DisplayIndicatorStatus, GComponent.ItemType, GComponent.Operation
NAME_ATTRIBUTE
Constructor and Description |
---|
GTextAreaWithLabel()
Constructor.
|
GTextAreaWithLabel(String widgetId)
Constructor.
|
GTextAreaWithLabel(String widgetId,
String label)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Called when the element is to be cleared, so it can perform the actions required to return to the last
saved/loaded values.
|
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.
|
void |
generic()
The prototype of the generic function that shall exist in all the descendants.
|
GLabel |
getGLabel()
Get the GLabel component.
|
GTextArea |
getGTextArea()
Get the GTextArea component.
|
GComponent |
getSubComponent(int position)
Gets the subcomponent occupying the position defined by position.
|
boolean |
isEnabled()
Gets the enable status of the widget.
|
protected void |
setDefaultConstraints()
Set default constraints.
|
void |
setEnabled(boolean flag)
Set the enable status of the component.
|
void |
setStringConstraint(String constraints)
Set the constraint in string format for the component.
|
void |
setWidgetId(String widgetId)
Sets the widget identifier of the component.
|
put
activateConstraintsByType, attachCopyPasteMenu, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, clearAllInnerDescendantConstraint, clearConstraint, clearInnerDescendantContraint, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getComponent, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGClassName, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getName, getNameInConfigFile, getOperationSaveValue, getPathInConfigFile, getSimpleWidgetId, getStatus, getStringConstraint, getWidgetId, handleCopyPasteEvent, handleCopyPasteEvent, handleProcessEventException, isCopyPasteEvent, isForcedStatus, isModified, launchInvalidPositionException, mouseWheelMoved, parseSimpleConstraint, processGEvent, processMouseWheelEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDisplayIsModifiedIndicator, setElement, setForcedStatus, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setName, setNameAndCommentInConfigFile, setNameInConfigFile, setPathInConfigFile, setStatus, setToolTipText, setWidth, setWindowBusyCursor, updateIsModifiedIndicator, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem
public GTextAreaWithLabel()
public GTextAreaWithLabel(String widgetId)
widgetId
- widget identifier.protected void setDefaultConstraints()
GComponent
setDefaultConstraints
in class GComponent
public GComponent getSubComponent(int position) throws GComponentException
getSubComponent
in class GComponent
position
- position of the requested component.GComponentException
- in case the position argument is invalid.public GTextArea getGTextArea()
public GLabel getGLabel()
public void setWidgetId(String widgetId)
GComponent
setWidgetId
in class GComponent
widgetId
- the widget identifier of the component.public void generic() throws GException
GContainer
generic
in class GContainer
GException
- In case of problem.public void display() throws GException
GDisplay
display
in interface GDisplay
GException
- in case of problem while reading the value from file.public void setEnabled(boolean flag)
GComponent
setEnabled
in class GComponent
flag
- new enable status of the component.public boolean isEnabled()
GComponent
isEnabled
in class GComponent
public void clear()
GClear
public void setStringConstraint(String constraints)
setStringConstraint
in class GComponent
constraints
- constraint in string format to set for the component.Copyright © 2024. All rights reserved.