public class DataIntField extends MustIntField implements Storable
Modifier and Type | Field and Description |
---|---|
protected DataObject |
assignedDataObject |
protected java.lang.String |
columnName |
protected int |
defaultValue |
protected java.lang.String |
editBeginValue |
showZeroValueByDefault
additionalTagFragments, capitalization, className, contentChangeListener, controlLength, enterAction, maxColumns, maxlength, registerFlag, size
context, editable, enabled, lastEditability, lastVisibility, name, nonstandardPanel, nonstandardPosition, sessionData, toolTipText, visible
Constructor and Description |
---|
DataIntField(SessionData sessionData,
DataObject dO,
java.lang.String columnName)
Constructs a database connected text input field for integer values.
|
Modifier and Type | Method and Description |
---|---|
void |
free()
Releases external resources.
|
DataObject |
getAssignedDataObject()
Returns the assigned data object.
|
boolean |
isFilled()
Indicates whether the component has a value.
|
boolean |
isModified()
Indicates whether the component's value differs from its initial value.
|
boolean |
isRequirementUnfulfilled()
Indicates whether the component's value is mandatory but not filled.
|
boolean |
isToSave() |
void |
loadValue()
Loads the component's database stored value.
|
void |
saveValue()
Stores the component's value.
|
void |
setDefaultValue(int newDefaultValue)
Sets the default value.
|
void |
setIntAsEditBeginValue(int newIntValue)
Sets the int as edit begin value which causes isModified to return false
as long as user doesn't change the value.
|
void |
setRequired(boolean required)
Determines whether input is required (mandatory).
|
void |
setShowZero(boolean newShowZero)
Sets zero values to be shown or not.
|
void |
setTextAsEditBeginValue(java.lang.String text)
Sets the text as edit begin value which causes isModified to return false
as long as user doesn't change the value.
|
addMoreCreationAspects, getCreateTagElement, getIntValue, hasContent, isContentValid, setIntValue, setMaxValue, setShowZeroValueByDefault
addContentChangeListener, buildRemoteView, fetchValuesFromRequest, getApplication, getText, getTextOrNullIfEmpty, hasFocus, isValid, perform, setApplication, setCapitalization, setColumns, setEditable, setEnterAction, setOnChoice, setRegisterFlag, setText, setTextAsUserInput, setValues
destroy
beginAction, endAction, getContext, getName, getTranslation, isEnabled, isVisible, register, requestFocusInWindow, resetLastStatus, selectAll, setEnabled, setToolTipText, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
requestFocusInWindow, selectAll, setValues
destroy, fetchValuesFromRequest, setToolTipText
buildRemoteView
protected DataObject assignedDataObject
protected java.lang.String columnName
protected int defaultValue
protected java.lang.String editBeginValue
public DataIntField(SessionData sessionData, DataObject dO, java.lang.String columnName)
dO
- the data object to assign tocolumnName
- the name of the column the text field is to assign topublic DataObject getAssignedDataObject()
getAssignedDataObject
in interface Storable
public void setDefaultValue(int newDefaultValue)
newDefaultValue
- the new default value.public void setShowZero(boolean newShowZero)
newShowZero
- if true, zero is represented by "0",
if false, zero is represented by ""public void setRequired(boolean required)
setRequired
in interface Storable
setRequired
in class MustTextField
required
- if true, input is mandatory; otherwise, input is not mandatorypublic void setIntAsEditBeginValue(int newIntValue)
newIntValue
- the new integer valuepublic void setTextAsEditBeginValue(java.lang.String text)
newText
- the new textpublic void loadValue()
public boolean isFilled()
isFilled
in interface Storable
isFilled
in class MustTextField
public boolean isModified()
isModified
in interface Storable
isModified
in class MustTextField
public boolean isToSave()
public boolean isRequirementUnfulfilled()
isRequirementUnfulfilled
in interface Storable
isRequirementUnfulfilled
in class MustTextField
public void saveValue()
public void free()
free
in interface Exemptible
free
in interface ExemptibleManager
free
in class RemoteElement
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de