Class GuideDropDownList

  • All Implemented Interfaces:
    FDField, StyledFDField, java.io.Serializable, Use

    public class GuideDropDownList
    extends GuideField
    GuideDropDownList encapsulates basic properties of the Adaptive Forms Drop Down Component. Few are listed below:
    • Options of the dropdown configured during authoring
    • multiple selection checkbox configured during authoring
    Since:
    6.0
    See Also:
    Serialized Form
    • Constructor Detail

      • GuideDropDownList

        public GuideDropDownList()
    • Method Detail

      • getOptions

        public java.util.Map getOptions()
        Returns the options configured for the dropdown list component during authoring
        Returns:
        Map Map where keys are the values of the options in the dropdown list and the values in the map are the text of corresponding option.
      • getValues

        public java.util.List getValues()
        Returns the values of options present in the dropdown component.
        Returns:
        List representing the values of the options
      • getIsMultiSelect

        public java.lang.Boolean getIsMultiSelect()
        Returns whether the dropdown allows multiple selection or not
        Returns:
        boolean indicating if multiple selection is allowed or not
      • getGuideFieldType

        public java.lang.String getGuideFieldType()
        Returns the field type of the Adaptive Forms Component
        Specified by:
        getGuideFieldType in interface FDField
        Overrides:
        getGuideFieldType in class GuideNode
        Returns:
        String representing guide field type
      • getIsFirstOptGroup

        public boolean getIsFirstOptGroup()
        Returns if the optgroup is First optgroup of the dropdown list or not.
        Returns:
        true if opt group is configured in drop down list else false
      • isKeyAnOptGroup

        public static boolean isKeyAnOptGroup​(java.lang.String key)
        Returns if the key is identified as an OptGroup or just option.
        Parameters:
        key -
        Returns:
        true if key is identified as opt group else false