Class StringInputBuilder<VT>
Builder class for input type StringUserEntry
InputType.STRINGUSERENTRY
.-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractInputBuilder
AbstractInputBuilder.InputWidth
-
Field Summary
Fields inherited from class AbstractInputBuilder
builderContext, cp
-
Constructor Summary
ModifierConstructorDescriptionprotected
StringInputBuilder
(InputBuilderContext builderContext, String paramName) -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
setMaxLength
(Integer maxLength) Sets the maximum amount of alphanumerics to be accepted byStringUserEntry
.setMinLength
(Integer minLength) Sets the minimum amount of alphanumerics to be accepted byStringUserEntry
.setTextMask
(String textMask) Sets text mask on ContextParameter, used in the dropdown input field.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
-
StringInputBuilder
-
-
Method Details
-
setTextMask
Sets text mask on ContextParameter, used in the dropdown input field.Example:
api.inputBuilderFactory() .createStringUserEntry("StringEntry") .setTextMask("Enter string value ...") .setLabel("A string entry without refresh") .setNoRefresh(true) .buildContextParameter()
- Parameters:
textMask
- text mask- Returns:
- self
-
setMaxLength
Sets the maximum amount of alphanumerics to be accepted byStringUserEntry
. Max value needs to be positive number and higher or equal to min value (sets bysetMinLength(Integer)
) If the conditions are not met theInputBuilderExceptions.InvalidValueException
will be thrown.Example:
// The input will accept the maximum of 4 alphanumerics, no more api.inputBuilderFactory() .createStringUserEntry("StringEntry") .setMaxLength(4) .buildContextParameter()
- Parameters:
maxLength
- maximum amount of alphanumerics- Returns:
StringInputBuilder
with the updatedPriceFxInterface.CONTEXTPARAM_CONFIG_MAX_LENGTH
- Since:
- 14.0 - Caribou Lou
- See Also:
-
setMinLength
Sets the minimum amount of alphanumerics to be accepted byStringUserEntry
. Min value needs to be positive number or zero and lower or equal to max value (sets bysetMaxLength(Integer)
) If the conditions are not met theInputBuilderExceptions.InvalidValueException
will be thrown.Example:
// The input will accept at least 2 alphanumerics, no less api.inputBuilderFactory() .createStringUserEntry("StringEntry") .setMinLength(2) .buildContextParameter()
- Parameters:
minLength
- minimum amount of alphanumerics- Returns:
StringInputBuilder
with the updatedPriceFxInterface.CONTEXTPARAM_CONFIG_MIN_LENGTH
- Since:
- 14.0 - Caribou Lou
- See Also:
-
_getInput
- Specified by:
_getInput
in classAbstractInputBuilder<StringInputBuilder,
VT>
-