Class AbstractSelectField

    • Constructor Detail

      • AbstractSelectField

        protected AbstractSelectField​(java.lang.String id)
        Instantiates a new AbstractSelectField instance.
        Parameters:
        id - the id of the field
    • Method Detail

      • addOption

        @Deprecated
        public void addOption​(IBlockElement optionElement)
        Deprecated.
        starting from 8.0.1.
        Add a container with options. This might be a container for options group.
        Parameters:
        optionElement - a container with options
      • addOption

        public void addOption​(SelectFieldItem option,
                              boolean selected)
        Add an option to the element.
        Parameters:
        option - a SelectFieldItem
        selected - true is the option if selected, false otherwise
      • optionsCount

        public int optionsCount()
        Gets the total amount of options available.
        Returns:
        the number of options in the element.
      • hasOptions

        public boolean hasOptions()
        Checks if the element has any options.
        Returns:
        true if the element has options, false otherwise.
      • getOptions

        @Deprecated
        public java.util.List<IBlockElement> getOptions()
        Deprecated.
        starting from 8.0.1.
        Gets a list of containers with option(s). Every container might be a container for options group.
        Returns:
        a list of containers with options.
      • hasExportAndDisplayValues

        public boolean hasExportAndDisplayValues()
        Checks if the field has options with export and display values.
        Returns:
        true if the field has options with export and display values, false otherwise.
      • tryAndExtractText

        private java.lang.String tryAndExtractText​(IBlockElement optionElement)