public class MustIntField extends MustTextField
Modifier and Type | Field and Description |
---|---|
protected static boolean |
showZeroValueByDefault |
additionalTagFragments, capitalization, className, contentChangeListener, controlLength, enterAction, maxColumns, maxlength, registerFlag, required, size
context, editable, enabled, lastEditability, lastVisibility, name, nonstandardPanel, nonstandardPosition, sessionData, toolTipText, visible
Constructor and Description |
---|
MustIntField(SessionData sessionData)
Constructs a new int text field with a default size of 5 characters.
|
MustIntField(SessionData sessionData,
int length)
Constructs a new int text field with the specified size.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addMoreCreationAspects(ToAppletWriter out)
Override to add more creation aspects in inherited class.
|
protected java.lang.String |
getCreateTagElement() |
int |
getIntValue()
Returns the integer value of the field.
|
boolean |
hasContent()
Returns true if the field is valid and content not zero.
|
boolean |
isContentValid()
Returns true if the component's value is valid.
|
void |
setIntValue(int newIntValue)
Sets the integer value of the field.
|
void |
setMaxValue(int newMaxValue)
Sets the maximum value to be entered.
|
static void |
setShowZeroValueByDefault(boolean b)
Sets whether zero should be shown by digit 0
|
addContentChangeListener, buildRemoteView, fetchValuesFromRequest, getApplication, getText, getTextOrNullIfEmpty, hasFocus, isFilled, isModified, isRequirementUnfulfilled, isValid, perform, setApplication, setCapitalization, setColumns, setEditable, setEnterAction, setOnChoice, setRegisterFlag, setRequired, setText, setTextAsUserInput, setValues
destroy
beginAction, endAction, free, getContext, getName, getTranslation, isEnabled, isVisible, register, requestFocusInWindow, resetLastStatus, selectAll, setEnabled, setToolTipText, setVisible
public MustIntField(SessionData sessionData)
public MustIntField(SessionData sessionData, int length)
length
- the size of the int text fieldpublic static void setShowZeroValueByDefault(boolean b)
b
- whether zero should be shownprotected void addMoreCreationAspects(ToAppletWriter out)
MustTextField
addMoreCreationAspects
in class MustTextField
public void setMaxValue(int newMaxValue)
newMaxValue
- the maximum value to be enteredprotected java.lang.String getCreateTagElement()
getCreateTagElement
in class MustTextField
public void setIntValue(int newIntValue)
newIntValue
- the new integer value of the fieldpublic int getIntValue()
public boolean isContentValid()
public boolean hasContent()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de