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:
-
Field Summary
Fields inherited from class AbstractPortletDto
dragDropEnabled, layout, messages, resizingEnabled -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a configurator entry to this array.Returns the configurator entries of this array.Returns the result type of the configurator entry array.voidsetEntries(List<ConfiguratorEntry> entries) Replaces the configurator entries of this array.Methods inherited from class AbstractPortletDto
getLabelOverride, layout, setLabelOverride, setLayout, value, withDragDrop, withError, withHeight, withHeight, withInfo, withLabelOverride, withLayout, withLayout, withLayout, withResizing, withTab, withWarning, withWidth, withWidth
-
Constructor Details
-
ConfiguratorEntryArray
public ConfiguratorEntryArray()Not intended for public use. Useapi.createConfiguratorEntryArray()instead.- See Also:
-
-
Method Details
-
getEntries
Returns the configurator entries of this array.- Returns:
- The configurator entries.
-
setEntries
Replaces the configurator entries of this array.- Parameters:
entries- The configurator entries.
-
addEntry
Adds a configurator entry to this array.- Parameters:
e- The configurator entry to add.
-
getResultType
Returns the result type of the configurator entry array.- Specified by:
getResultTypein interfaceComplexCalculationResult- Returns:
- Always
"CONFIGURATORENTRYARRAY".
-