public class GTextAreaWithLabel extends GContainer implements GDisplay, GClear, GReadWrite
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.
|
String |
getSavedValue()
Get the saved value.
|
GComponent |
getSubComponent(int position)
Gets the subcomponent occupying the position defined by position.
|
boolean |
isEnabled()
Gets the enable status of the widget.
|
boolean |
isModified()
Gets the modification status of the component against the last set of values loaded or saved.
|
void |
read()
Implementaion of the routines that allow the component to be loaded from a configuration file.
|
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.
|
void |
write()
Implementaion of the routines that allow the component to be saved to a configuration file.
|
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, 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.public void read() throws GException
GReadWrite
read
in interface GReadWrite
GException
- in case of problem while reading the value from file.public boolean isModified()
isModified
in class GComponent
public void write() throws GException
write
in interface GReadWrite
GException
- in case of problem while writing the value to file.public String getSavedValue()
Copyright © 2024. All rights reserved.