public class FormItemLabel extends AbstractFormItem
Form.| Constructor and Description |
|---|
FormItemLabel(Element element)
Constructs a
FormItemLabel from the specified XML element. |
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
ID has to be null for labels
|
String |
getValue()
Returns the current value.
|
boolean |
isLabel()
Returns
true if this form item is a label. |
boolean |
isRequired()
Returns
true if an input is required. |
void |
setValue(String value)
Sets a new value for this field.
|
getLabel, isFixed, isList, isNewLine, isNumber, isText, isUppercase, isValidpublic FormItemLabel(Element element)
FormItemLabel from the specified XML element.element - XML elementpublic boolean isLabel()
IFormItemtrue if this form item is a label.isLabel in interface IFormItemisLabel in class AbstractFormItempublic void setValue(String value)
IFormItemvalue - New valuepublic String getValue()
IFormItempublic boolean isRequired()
IFormItemtrue if an input is required. In this case the value cannot be an empty String.isRequired in interface IFormItemisRequired in class AbstractFormItempublic String getId()
getId in interface IFormItemgetId in class AbstractFormItemCopyright © 2021. All rights reserved.