Class DateRangeInputBuilder
Builder class for input type DateRangeUserEntry
InputType.DATERANGEUSERENTRY
.-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractInputBuilder
AbstractInputBuilder.InputWidth
-
Field Summary
Fields inherited from class AbstractInputBuilder
builderContext, cp
-
Constructor Summary
ModifierConstructorDescriptionprotected
DateRangeInputBuilder
(InputBuilderContext builderContext, String paramName) -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
Sets the from value of the date range input field.Set to value of the date range 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
-
DateRangeInputBuilder
-
-
Method Details
-
setFrom
Sets the from value of the date range input field.Minimum date to be selected from the
DateRangeUserEntry
dropdownAccepts only
String
s in format 'YYYY-MM-DD', if other providedInputBuilderExceptions.InvalidDateException
is thrown.If date from value is after to the
InputBuilderExceptions.InvalidDateException
is thrownExample:
api.inputBuilderFactory() .createDateRangeUserEntry('dateRange') .setFrom('2019-10-01') // date before 2019-10-01 will not be available to select .setTo('2019-11-01') // date after 2019-11-01 will not be available to select .buildContextParameter()
- Parameters:
from
- Date from / minimum, as aString
- Returns:
DateRangeInputBuilder
with the updatedPriceFxInterface.FIELD_CONTEXTPARAM_CONFIG_FROM
- See Also:
-
setTo
Set to value of the date range input field.Maximum date to be selected from the
DateRangeUserEntry
dropdown.Accepts only
String
s in format 'YYYY-MM-DD', if other providedInputBuilderExceptions.InvalidDateException
is thrown.If date to value is before from the
InputBuilderExceptions.InvalidDateException
is thrownExample:
api.inputBuilderFactory() .createDateRangeUserEntry('dateRange') .setFrom('2019-10-01') // date before 2019-10-01 will not be available to select .setTo('2019-11-01') // date after 2019-11-01 will not be available to select .buildContextParameter()
- Parameters:
to
- Date to / maximum, as aString
- Returns:
DateRangeInputBuilder
with the updatedPriceFxInterface.FIELD_CONTEXTPARAM_CONFIG_TO
- See Also:
-
_getInput
- Specified by:
_getInput
in classAbstractInputBuilder<DateRangeInputBuilder,
String[]>
-