public abstract class AbstractFormItem extends java.lang.Object implements IFormItem
Constructor and Description |
---|
AbstractFormItem(org.w3c.dom.Element element)
Constructs a generic form item from 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.
|
boolean |
isFixed()
Returns
true if this IFormItem is fixed. |
boolean |
isLabel()
Returns
true if this form item is a label. |
boolean |
isList()
Returns
true if this form item is a list. |
boolean |
isNewLine()
Returns
true if this IFormItem is full sized. |
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 |
isUppercase()
Returns
true if this IFormItem is uppercase. |
boolean |
isValid()
Tests if the current value a valid input for this field.
|
public AbstractFormItem(org.w3c.dom.Element element)
element
- XML elementpublic boolean isLabel()
IFormItem
true
if this form item is a label.public boolean isText()
IFormItem
true
if this form item is a text input field.
A cast to FormItemText
can be done if this method returns true
.public boolean isNumber()
IFormItem
true
if this form item is a number field.
A cast to FormItemNumber
can be done if this method returns true
.public boolean isList()
IFormItem
true
if this form item is a list.
A cast to FormItemList
can be done if this method returns true
.public java.lang.String getLabel()
IFormItem
public boolean isRequired()
IFormItem
true
if an input is required. In this case the value cannot be an empty String
.isRequired
in interface IFormItem
public boolean isValid()
IFormItem
public boolean isFixed()
IFormItem
true
if this IFormItem
is fixed.
E.g. parameter "F" is set in UC-Script.public boolean isUppercase()
IFormItem
true
if this IFormItem
is uppercase.isUppercase
in interface IFormItem
IFormItem
is uppercase.public boolean isNewLine()
IFormItem
true
if this IFormItem
is full sized.