Class OptionInputBuilder
Builder class for input type Option and Options
(
InputType.OPTION
and InputType.OPTIONS
).-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractInputBuilder
AbstractInputBuilder.InputWidth
-
Field Summary
Fields inherited from class AbstractInputBuilder
builderContext, cp
-
Constructor Summary
ConstructorDescriptionOptionInputBuilder
(InputBuilderContext builderContext, InputType type, String paramName) -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
Adds the option to the OptionInputBuilder instance.Sets labels of the OptionInputBuilder instance.setOptions
(List<String> options) Adds options to the OptionInputBuilder instance.Methods inherited from class AbstractInputBuilder
addOrUpdateInput, addToConfiguratorEntry, addToConfiguratorEntry, buildContextParameter, buildMap, getInput, self, setAccessCode, setAlign, setAllValueTypesTracking, setAlwaysEditable, setAppearance, setAutoComplete, setAutoFocus, setCaption, setConfigValues, setCustomAttributeName, setCustomAttributeValue, setDefaultValueTracking, setDefaultWidth, setDisabled, setDisplayMode, setErrorMessage, setExportable, setFirstRunTracking, setFlex, setHelpLink, setHelpText, setIcon, setIconPosition, setImportable, setLabel, setLabelPlacement, setLabelStyle, setLabelTranslations, setLayoutGridName, setNoRefresh, setParameterGroup, setPlaceholderText, setPreviousValueTracking, setReadOnly, setRequired, setShowInline, setSize, setSuccessMessage, setTheme, setTitle, setTrackedValue, setUserGroupEdit, setUserGroupEdit, setUserGroupView, setValue, setValueChangeTracking, setValueHint, setWarningMessage, setWidth
-
Constructor Details
-
OptionInputBuilder
-
-
Method Details
-
setOptions
Adds options to the OptionInputBuilder instance.Example:
Map driverClasses = ... optionInputBuilder.addOptions(driverClasses?.driverClassLabel as List)
- Parameters:
options
- List of options names- Returns:
- self
-
addOption
Adds the option to the OptionInputBuilder instance.Example:
Map driverClasses = ... driverClasses.each { String driverClassName, String driverClassLabel -> optionInputBuilder.addOption(driverClassLabel) }
- Parameters:
option
- option name- Returns:
- self
-
setLabels
Sets labels of the OptionInputBuilder instance.Example:
OptionInputBuilder builder = api.inputBuilderFactory() .createRadioEntry(inputName) .setLabels([model : "Services Model", type : "Service Type"]) .setValue(inputValue)
- Parameters:
labels
- Map of labs to be set- Returns:
- self
-
_getInput
- Specified by:
_getInput
in classAbstractInputBuilder<OptionInputBuilder,
Object>
-