Class SliderInputBuilder
Object
AbstractInputBuilder<SliderInputBuilder,BigDecimal>
AbstractSliderBuilder<SliderInputBuilder,BigDecimal>
SliderInputBuilder
Builder class for input type Slider
InputType.SLIDER
.-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractInputBuilder
AbstractInputBuilder.InputWidth
-
Field Summary
Fields inherited from class AbstractInputBuilder
builderContext, cp
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SliderInputBuilder
(InputBuilderContext builderContext, String paramName) -
Method Summary
Modifier and TypeMethodDescriptionhideTrack
(boolean hideTrack) Shows or hide the range/slider track (colored bar from lower bound to the cursor materializing the selected value).Sets the colours of the range slider (needs to be two elements collection, if not theInputBuilderExceptions.ColourSectionsNumberException
will be thrown).
List of possible values: informative (blue) negative (red) negative-strong (super red) positive (green) positive-strong (super green) warning (yellow) neutral (gray) accent (current accent color from settings) inverted (dark color for white theme, light color for dark theme) Example:setFrom
(BigDecimal from) Sets the lower bound of the slider range.setStep
(BigDecimal step) Sets the range/slider step.setSubLabels
(String left, String right) Sets the sub labels displayed respectively on the left and the right of the slider.setTo
(BigDecimal to) Sets the upper bound of the slider range.Methods inherited from class AbstractSliderBuilder
_getInput
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, setLogActivity, setNoRefresh, setParameterGroup, setPlaceholderText, setPreviousValueTracking, setReadOnly, setRequired, setShowInline, setSize, setStoreAuditTrail, setSuccessMessage, setTab, setTheme, setTitle, setTrackedValue, setUserGroupEdit, setUserGroupEdit, setUserGroupView, setUserGroupView, setValue, setValueChangeTracking, setValueHint, setWarningMessage, setWidth
-
Constructor Details
-
SliderInputBuilder
-
-
Method Details
-
setColour
Sets the colours of the range slider (needs to be two elements collection, if not theInputBuilderExceptions.ColourSectionsNumberException
will be thrown).
List of possible values:- informative (blue)
- negative (red)
- negative-strong (super red)
- positive (green)
- positive-strong (super green)
- warning (yellow)
- neutral (gray)
- accent (current accent color from settings)
- inverted (dark color for white theme, light color for dark theme)
The range slider entry is rendered with colours:def slider = api.inputBuilderFactory() .createRangeSliderEntry("myRangeSlider") .setColour(['neutral', 'accent']) .buildContextParameter();
- Specified by:
setColour
in classAbstractSliderBuilder<SliderInputBuilder,
BigDecimal> - Parameters:
colours
- of the slider.- Returns:
- self
- Since:
- 15.0 Southside
-
hideTrack
Description copied from class:net.pricefx.formulaengine.scripting.inputbuilder.AbstractSliderBuilder
Shows or hide the range/slider track (colored bar from lower bound to the cursor materializing the selected value).- Overrides:
hideTrack
in classAbstractSliderBuilder<SliderInputBuilder,
BigDecimal> - Parameters:
hideTrack
- true to hide the track, false to display the track.- Returns:
- self
-
setFrom
Description copied from class:net.pricefx.formulaengine.scripting.inputbuilder.AbstractSliderBuilder
Sets the lower bound of the slider range.- Overrides:
setFrom
in classAbstractSliderBuilder<SliderInputBuilder,
BigDecimal> - Parameters:
from
- the lower bound of the slider range.- Returns:
- self
-
setStep
Description copied from class:net.pricefx.formulaengine.scripting.inputbuilder.AbstractSliderBuilder
Sets the range/slider step.- Overrides:
setStep
in classAbstractSliderBuilder<SliderInputBuilder,
BigDecimal> - Parameters:
step
- the range/slider step.- Returns:
- self
-
setSubLabels
Description copied from class:net.pricefx.formulaengine.scripting.inputbuilder.AbstractSliderBuilder
Sets the sub labels displayed respectively on the left and the right of the slider.- Overrides:
setSubLabels
in classAbstractSliderBuilder<SliderInputBuilder,
BigDecimal> - Parameters:
left
- left sub label.right
- right sub label.- Returns:
- self
-
setTo
Description copied from class:net.pricefx.formulaengine.scripting.inputbuilder.AbstractSliderBuilder
Sets the upper bound of the slider range.- Overrides:
setTo
in classAbstractSliderBuilder<SliderInputBuilder,
BigDecimal> - Parameters:
to
- the upper bound of the slider range.- Returns:
- self
-