public class GEntryInt extends GEntryNumberAbstract implements GReadWrite, GClear, GListener
GEntryNumberAbstract which is in charge of
validity range handling.| Index | Class | Item | Constraint |
| 0 | GLabelWithIndicator | label | 0, 0 => "newline , split 2" 0, 1 => (null) |
| 1 | GIntField | textField | (null) |
GComponent.CopyPasteOperation, GComponent.DisplayIndicatorStatus, GComponent.ItemType, GComponent.OperationNAME_ATTRIBUTE| Constructor and Description |
|---|
GEntryInt()
Constructor by default
|
GEntryInt(String label,
int value)
Constructor, the widget identifier is set automatically.
|
GEntryInt(String widgetId,
String label,
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.
|
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.
|
int |
getSavedValue()
Get the last saved value.
|
int |
getValue()
Get the value stored in the entry.
|
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.
|
void |
setDefaultValue(int value)
Set the new default value.
|
void |
setSavedValue(int value)
Set the new saved value.
|
void |
setValue(int value)
Set the value of the entry.
|
protected void |
updateIsModifiedIndicator()
Updates the is modified indicator.
|
void |
updateStatus()
Update the status of the field applying the defined validity intervals.
|
void |
write()
Implementaion of the routines that allow the component to be saved to a configuration file.
|
addGInterval, attachCopyPasteMenu, display, generic, getGField, getGInterval, getGLabelWithIndicator, getGTextField, getNumber, getSubComponent, isCopyPasteEvent, isEnabled, removeGInterval, setDefaultConstraints, setEnabled, setShortcut, setStringConstraint, setToolTipText, setWidgetId, updateGInterval, updateIntervalMessageputactivateConstraintsByType, 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, isForcedStatus, launchInvalidPositionException, mouseWheelMoved, parseSimpleConstraint, processGEvent, processMouseWheelEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDisplayIsModifiedIndicator, setElement, setForcedStatus, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setName, setNameAndCommentInConfigFile, setNameInConfigFile, setPathInConfigFile, setStatus, setWidth, setWindowBusyCursor, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItempublic GEntryInt()
public GEntryInt(String label, int value)
label - of the entry.value - initial value for the entry.public int getValue()
public void setValue(int value)
value - to set.public void setDefaultValue(int value)
value - new default value.public void setSavedValue(int value)
value - new saved value.public int getSavedValue()
public void read()
throws GException
read in interface GReadWriteGException - in case of problem while reading the value from file.public void write()
throws GException
write in interface GReadWriteGException - in case of problem while writing the value to file.public boolean isModified()
GComponentisModified in class GComponentpublic void clear()
throws GException
GClearclear in interface GClearGException - in case of problem while clearing the values.public void before(GEvent e) throws GException
GListenerbefore in interface GListenere - event to processed.GException - in case there is a problem managing the event.public void after(GEvent e) throws GException, GFileManipulatorException
GListenerafter in interface GListenere - processed event.GException - in case there is a problem managing the event.GFileManipulatorExceptionprotected void updateIsModifiedIndicator()
updateIsModifiedIndicator in class GComponentpublic void updateStatus()
updateStatus in class GEntryNumberAbstractCopyright © 2024. All rights reserved.