Class CustomFormItem


  • public class CustomFormItem
    extends Object
    This CustomFormItem provides the informations from a single item inside a custom form section

    The optional 'options' contains a list of select options. Example: SEPA|sepa_transfer;Bankeinzug/ Kreditkarte|direct_debit"

    Version:
    1.0
    Author:
    rsoika
    • Constructor Detail

      • CustomFormItem

        public CustomFormItem​(String name,
                              String type,
                              String label,
                              boolean required,
                              boolean readonly,
                              String options,
                              String path,
                              boolean hide)
    • Method Detail

      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • getType

        public String getType()
      • setType

        public void setType​(String type)
      • getLabel

        public String getLabel()
      • setLabel

        public void setLabel​(String label)
      • isRequired

        public boolean isRequired()
      • setRequired

        public void setRequired​(boolean required)
      • isReadonly

        public boolean isReadonly()
      • setReadonly

        public void setReadonly​(boolean readonly)
      • isHide

        public boolean isHide()
      • setHide

        public void setHide​(boolean hide)
      • getSelectItems

        public List<javax.faces.model.SelectItem> getSelectItems()
                                                          throws Exception
        SelectItem getter Method provides a getter method to an ArrayList of objects for a given options String. The options String contains multiple options spearated by ; One option can be devided by a | into a label and a value component. Example:

        SEPA|sepa_transfer;Bankeinzug/ Kreditkarte|direct_debit"

        Returns:
        Throws:
        Exception
      • getOptions

        public String getOptions()
        Optional option string.

        Can contain custom parts data

        Returns:
      • setOptions

        public void setOptions​(String options)
      • getPath

        public String getPath()
        optional path for custom items.
        Returns:
      • setPath

        public void setPath​(String path)