Class ConfiguratorEntryArray

Object
AbstractPortletDto
ConfiguratorEntryArray
All Implemented Interfaces:
Serializable, Portlet, ComplexCalculationResult

public class ConfiguratorEntryArray extends AbstractPortletDto implements ComplexCalculationResult
Holds several Configurator sections returned from one logic element.

Create an instance with api.createConfiguratorEntryArray(entries) and return it from a logic element. Each entry is a ConfiguratorEntry, which is one section with its inputs. Use an array when one element must return several independent sections, for example in a library logic that builds parts of a form for several places.

Configurators are a legacy input mechanism. Since version 17.0, use Forms 2.0 for new implementations instead.

Example:


 def yearSection = api.createConfiguratorEntry()
 yearSection.setMessage("Filter by Year")
 api.inputBuilderFactory()
         .createIntegerUserEntry("year")
         .setLabel("Year")
         .addToConfiguratorEntry(yearSection)

 def countrySection = api.createConfiguratorEntry()
 countrySection.setMessage("Filter by Country")
 api.inputBuilderFactory()
         .createStringUserEntry("country")
         .setLabel("Country Code")
         .addToConfiguratorEntry(countrySection)

 return api.createConfiguratorEntryArray(yearSection, countrySection)
 
See Also:
  • Constructor Details

  • Method Details

    • getEntries

      public List<ConfiguratorEntry> getEntries()
      Returns the configurator entries of this array.
      Returns:
      The configurator entries.
    • setEntries

      public void setEntries(List<ConfiguratorEntry> entries)
      Replaces the configurator entries of this array.
      Parameters:
      entries - The configurator entries.
    • addEntry

      public void addEntry(ConfiguratorEntry e)
      Adds a configurator entry to this array.
      Parameters:
      e - The configurator entry to add.
    • getResultType

      public String getResultType()
      Returns the result type of the configurator entry array.
      Specified by:
      getResultType in interface ComplexCalculationResult
      Returns:
      Always "CONFIGURATORENTRYARRAY".