public abstract class AbstractFormItem extends Object implements IFormItem
| Constructor and Description |
|---|
AbstractFormItem(Element element)
Constructs a generic form item from the specified XML element.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
Returns the internal ID of this field.
|
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(Element element)
element - XML 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 String getLabel()
IFormItempublic boolean isRequired()
IFormItemtrue if an input is required. In this case the value cannot be an empty String.isRequired in interface IFormItempublic boolean isValid()
IFormItempublic boolean isFixed()
IFormItemtrue if this IFormItem is fixed.
E.g. parameter "F" is set in UC-Script.public boolean isUppercase()
IFormItemtrue if this IFormItem is uppercase.isUppercase in interface IFormItemIFormItem is uppercase.public boolean isNewLine()
IFormItemtrue if this IFormItem is full sized.Copyright © 2021. All rights reserved.