Package com.uc4.api

Class FormItemLabel

All Implemented Interfaces:
IFormItem

public class FormItemLabel extends AbstractFormItem
This class represents a label in a Form.
  • Constructor Details

    • FormItemLabel

      public FormItemLabel(Element element)
      Constructs a FormItemLabel from the specified XML element.
      Parameters:
      element - XML element
  • Method Details

    • isLabel

      public boolean isLabel()
      Description copied from interface: IFormItem
      Returns true if this form item is a label.
      Specified by:
      isLabel in interface IFormItem
      Overrides:
      isLabel in class AbstractFormItem
      Returns:
      Boolean indicating if this item is label
    • setValue

      public void setValue(String value)
      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

      public String 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
      Returns true if an input is required. In this case the value cannot be an empty String.
      Specified by:
      isRequired in interface IFormItem
      Overrides:
      isRequired in class AbstractFormItem
      Returns:
      Boolean indicating if a value is required to process the form
    • getId

      public String getId()
      ID has to be null for labels
      Specified by:
      getId in interface IFormItem
      Overrides:
      getId in class AbstractFormItem
      Returns:
      String representing the ID