public class FormItemLabel extends AbstractFormItem
Form
.Constructor and Description |
---|
FormItemLabel(org.w3c.dom.Element element)
Constructs a
FormItemLabel from the specified XML element. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getId()
ID has to be null for labels
|
java.lang.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(java.lang.String value)
Sets a new value for this field.
|
getLabel, isFixed, isList, isNewLine, isNumber, isText, isUppercase, isValid
public FormItemLabel(org.w3c.dom.Element element)
FormItemLabel
from the specified XML element.element
- XML elementpublic boolean isLabel()
IFormItem
true
if this form item is a label.isLabel
in interface IFormItem
isLabel
in class AbstractFormItem
public void setValue(java.lang.String value)
IFormItem
value
- New valuepublic java.lang.String getValue()
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
isRequired
in class AbstractFormItem
public java.lang.String getId()
getId
in interface IFormItem
getId
in class AbstractFormItem