public class FormItemNumber extends AbstractFormItem
| Constructor and Description |
|---|
FormItemNumber(Element numberElement)
Constructs a new
FormItemNumber using the specified XML element. |
| Modifier and Type | Method and Description |
|---|---|
long |
getMaximum()
Returns the maximum value which is allowed as input.
|
int |
getMaxLength()
Returns the maximum number of allowed digits.
|
long |
getMinimum()
Returns the minimum value which is allowed as input.
|
String |
getValue()
Returns the current value.
|
boolean |
isNumber()
Returns
true if this form item is a number field. |
boolean |
isValid()
Tests if the current value a valid input for this field.
|
void |
setValue(String value)
Sets a new value for this field.
|
getId, getLabel, isFixed, isLabel, isList, isNewLine, isRequired, isText, isUppercasepublic FormItemNumber(Element numberElement)
FormItemNumber using the specified XML element.numberElement - XML elementpublic boolean isNumber()
IFormItemtrue if this form item is a number field.
A cast to FormItemNumber can be done if this method returns true.isNumber in interface IFormItemisNumber in class AbstractFormItempublic long getMaximum()
public long getMinimum()
public int getMaxLength()
public void setValue(String value)
IFormItemvalue - New valuepublic String getValue()
IFormItempublic boolean isValid()
IFormItemisValid in interface IFormItemisValid in class AbstractFormItemIFormItem is valid.Copyright © 2021. All rights reserved.