Package com.uc4.api
Class FormItemLabel
java.lang.Object
com.uc4.api.AbstractFormItem
com.uc4.api.FormItemLabel
- All Implemented Interfaces:
IFormItem
This class represents a label in a
Form
.-
Constructor Summary
ConstructorsConstructorDescriptionFormItemLabel
(Element element) Constructs aFormItemLabel
from the specified XML element. -
Method Summary
Methods inherited from class com.uc4.api.AbstractFormItem
getLabel, isFixed, isList, isNewLine, isNumber, isText, isUppercase, isValid
-
Constructor Details
-
FormItemLabel
Constructs aFormItemLabel
from the specified XML element.- Parameters:
element
- XML element
-
-
Method Details
-
isLabel
public boolean isLabel()Description copied from interface:IFormItem
Returnstrue
if this form item is a label.- Specified by:
isLabel
in interfaceIFormItem
- Overrides:
isLabel
in classAbstractFormItem
- Returns:
- Boolean indicating if this item is label
-
setValue
Description copied from interface:IFormItem
Sets a new value for this field. This method can throw an exception if the input is not valid.- Parameters:
value
- New value
-
getValue
Description copied from interface:IFormItem
Returns the current value. If a default value is set this method can be used to read the default value.- Returns:
- Value of this field
-
isRequired
public boolean isRequired()Description copied from interface:IFormItem
Returnstrue
if an input is required. In this case the value cannot be an emptyString
.- Specified by:
isRequired
in interfaceIFormItem
- Overrides:
isRequired
in classAbstractFormItem
- Returns:
- Boolean indicating if a value is required to process the form
-
getId
ID has to be null for labels- Specified by:
getId
in interfaceIFormItem
- Overrides:
getId
in classAbstractFormItem
- Returns:
- String representing the ID
-