public class GIntField extends GNumberFieldAbstract implements GListener
GTextField.GDocumentFieldFilterAbstractGComponent.CopyPasteOperation, GComponent.DisplayIndicatorStatus, GComponent.ItemType, GComponent.OperationNAME_ATTRIBUTE| Constructor and Description |
|---|
GIntField(int value)
Constructor.
|
GIntField(String widgetId,
int value)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
after(GEvent e)
Called after the event is processed.
|
void |
before(GEvent e)
Called before the event is processed.
|
GEnvironment.Format |
getCurrentFormat()
Get the current format of the field.
|
String |
getFormattedValue()
Return the value contained by the field in the format that shall be used to read/write from/to file.
|
String |
getFormattedValue(Object value)
Return the value contained by the field in the format that shall be used to read/write from/to file.
|
int |
getFracDigits()
Get the number of fractinal digits of the field.
|
String |
getUnitString()
Get the unit string written directly in the field.
|
Object |
getValue()
Get the current value of the widget.
|
boolean |
isModified()
Gets the modification status of the component against the last set of values loaded or saved.
|
void |
setValue(Object numberValue)
Set the value of the widget.
|
getIsNotAnInstanceIfNumberErroractionPerformed, computeDefaultWidth, display, focusGained, focusLost, getCharWidth, getComponent, getJTextField, getText, keyPressed, keyReleased, keyTyped, setDocumentFilter, setEnabled, setTextactivateConstraintsByType, 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, launchInvalidPositionException, mouseWheelMoved, parseSimpleConstraint, processGEvent, processMouseWheelEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDefaultConstraints, setDisplayIsModifiedIndicator, setElement, setForcedStatus, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setName, setNameAndCommentInConfigFile, setNameInConfigFile, setPathInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidgetId, setWidth, setWindowBusyCursor, updateIsModifiedIndicator, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItempublic GIntField(int value)
value - to display in the field.public GIntField(String widgetId, int value)
widgetId - widget identificator.value - to display in the widget.public void before(GEvent e) throws GException
before in interface GListenerbefore in class GTextFielde - event to processed.GException - in case there is a problem managing the event.public void after(GEvent e) throws GException
after in interface GListenerafter in class GTextFielde - processed event.GException - in case there is a problem managing the event.public String getUnitString()
getUnitString in class GNumberFieldAbstractpublic void setValue(Object numberValue)
setValue in class GNumberFieldAbstractnumberValue - new value of the widget.public Object getValue()
getValue in class GNumberFieldAbstractpublic String getFormattedValue(Object value)
getFormattedValue in class GNumberFieldAbstractvalue - to format.public String getFormattedValue()
getFormattedValue in class GNumberFieldAbstractpublic boolean isModified()
isModified in class GComponentpublic GEnvironment.Format getCurrentFormat()
getCurrentFormat in class GNumberFieldAbstractpublic int getFracDigits()
getFracDigits in class GNumberFieldAbstractCopyright © 2024. All rights reserved.