public abstract class GNumberFieldAbstract extends GTextField
GTextField.GDocumentFieldFilterAbstract
GComponent.CopyPasteOperation, GComponent.DisplayIndicatorStatus, GComponent.ItemType, GComponent.Operation
NAME_ATTRIBUTE
Constructor and Description |
---|
GNumberFieldAbstract(String widgetId)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract GEnvironment.Format |
getCurrentFormat()
Get the current format of the field.
|
abstract String |
getFormattedValue()
Return the value contained by the field in the format that shall be used to read/write from/to file.
|
abstract String |
getFormattedValue(Object value)
Return the value contained by the field in the format that shall be used to read/write from/to file.
|
abstract int |
getFracDigits()
Get the number of fractinal digits of the field.
|
protected String |
getIsNotAnInstanceIfNumberError()
Get the error message to be displayed when an instance is not of the Number class.
|
abstract String |
getUnitString()
Get the unit string written directly in the field.
|
abstract Object |
getValue()
Get the current value of the widget.
|
abstract void |
setValue(Object numberValue)
Set the value of the widget.
|
actionPerformed, after, before, computeDefaultWidth, display, focusGained, focusLost, getCharWidth, getComponent, getJTextField, getText, keyPressed, keyReleased, keyTyped, setDocumentFilter, setEnabled, setText
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, setForcedStatus, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setName, setNameAndCommentInConfigFile, setNameInConfigFile, setPathInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidgetId, setWidth, setWindowBusyCursor, updateIsModifiedIndicator, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem
public GNumberFieldAbstract(String widgetId)
widgetId
- widget identifier.protected String getIsNotAnInstanceIfNumberError()
public abstract void setValue(Object numberValue)
numberValue
- new value of the widget.public abstract Object getValue()
public abstract String getFormattedValue(Object value)
value
- to format.public abstract String getFormattedValue()
public abstract String getUnitString()
public abstract GEnvironment.Format getCurrentFormat()
public abstract int getFracDigits()
Copyright © 2024. All rights reserved.