public class MustIntField extends MustTextField
additionalTagFragments, className, editable, enabled, fontSize, maxlength, required, size
comment, focus, name, placeholder, toolTipText
Constructor and Description |
---|
MustIntField()
Constructs a new text field for integer input with an automatically
generated name.
|
MustIntField(java.lang.String name)
Constructs a new text field for integer input with a default length of 8 characters.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCreationTag()
Returns the tag sequence that's needed to show this object in the user
interface.
|
int |
getIntValue()
Returns the integer value of the field.
|
boolean |
isValid()
Returns true the integer text field input is valid.
|
static void |
setDefaultClassName(java.lang.String newDefaultClassName)
Sets the component's default class name - may be used to assign formatting
via stylesheets.
|
void |
setInputRange(int newMinValue,
int newMaxValue)
Sets the range of the valid input of the integer field.
|
void |
setIntValue(int newIntValue)
Sets the integer value of the field.
|
void |
setMaximumValue(int newMaxValue)
Sets the maximum value of the field.
|
void |
setMinimumValue(int newMinValue)
Sets the minimum value of the field.
|
fetchYourValueFromRequest, getText, getTextOrNullIfEmpty, isFilled, isModified, isRequirementUnfulfilled, setAdditionalTagFragments, setClassName, setColumns, setDefaultAdditionalTagFragments, setEditable, setEnabled, setFontSize, setMaxlength, setRequired, setText, toString
destroy, getName, setComment, setFocus, setPlaceHolder, setToolTipText
public MustIntField()
public MustIntField(java.lang.String name)
public static void setDefaultClassName(java.lang.String newDefaultClassName)
newDefaultClassName
- the component's default class namepublic void setInputRange(int newMinValue, int newMaxValue)
newMinValue
- the new minimum value of the fieldnewMaxValue
- the new maximum value of the fieldpublic void setMinimumValue(int newMinValue)
minValue
- the new minimum value of the fieldpublic void setMaximumValue(int newMaxValue)
newMaxValue
- the new maximum value of the fieldpublic void setIntValue(int newIntValue)
newIntValue
- the new integer value of the fieldpublic int getIntValue()
public java.lang.String getCreationTag()
getCreationTag
in interface Markupable
getCreationTag
in class MustTextField
public boolean isValid()
isValid
in class MustTextField
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de