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 aFormItemLabelfrom 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 aFormItemLabelfrom the specified XML element.- Parameters:
element- XML element
-
-
Method Details
-
isLabel
public boolean isLabel()Description copied from interface:IFormItemReturnstrueif this form item is a label.- Specified by:
isLabelin interfaceIFormItem- Overrides:
isLabelin classAbstractFormItem- Returns:
- Boolean indicating if this item is label
-
setValue
Description copied from interface:IFormItemSets 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:IFormItemReturns 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:IFormItemReturnstrueif an input is required. In this case the value cannot be an emptyString.- Specified by:
isRequiredin interfaceIFormItem- Overrides:
isRequiredin classAbstractFormItem- Returns:
- Boolean indicating if a value is required to process the form
-
getId
ID has to be null for labels- Specified by:
getIdin interfaceIFormItem- Overrides:
getIdin classAbstractFormItem- Returns:
- String representing the ID
-