| Constructor and Description |
|---|
FormItemNumber(org.w3c.dom.Element numberElement)
Constructs a new
FormItemNumber using the specified XML element. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getId()
Returns the internal ID of this field.
|
java.lang.String |
getLabel()
Returns the label of the field.
|
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.
|
java.lang.String |
getValue()
Returns the current value.
|
boolean |
isLabel()
Returns
true if this form item is a label. |
boolean |
isList()
Returns
true if this form item is a list. |
boolean |
isNumber()
Returns
true if this form item is a number field. |
boolean |
isRequired()
Returns
true if an input is required. |
boolean |
isText()
Returns
true if this form item is a text input field. |
boolean |
isValid()
Tests if the current value a valid input for this field.
|
void |
setValue(java.lang.String value)
Sets a new value for this field.
|
public FormItemNumber(org.w3c.dom.Element numberElement)
FormItemNumber using the specified XML element.numberElement - Elementpublic boolean isLabel()
IFormItemtrue if this form item is a label.public boolean isText()
IFormItemtrue if this form item is a text input field.
A cast to FormItemText can be done if this method returns true.public boolean isNumber()
IFormItemtrue if this form item is a number field.
A cast to FormItemNumber can be done if this method returns true.public boolean isList()
IFormItemtrue if this form item is a list.
A cast to FormItemList can be done if this method returns true.public java.lang.String getLabel()
IFormItempublic long getMaximum()
public long getMinimum()
public int getMaxLength()
public void setValue(java.lang.String value)
IFormItempublic java.lang.String getValue()
IFormItempublic boolean isRequired()
IFormItemtrue if an input is required. In this case the value cannot be an empty String.isRequired in interface IFormItempublic java.lang.String getId()
IFormItem