Package org.openhab.core.sitemap
Interface Slider
- All Superinterfaces:
NonLinkableWidget,Widget
A representation of a sitemap Slider widget.
- Author:
- Mark Herwege - Initial contribution
-
Method Summary
Modifier and TypeMethodDescription@Nullable BigDecimalGet maximum slider value.@Nullable BigDecimalGet minimum slider value.@Nullable BigDecimalgetStep()Get slider step.booleanReturn true if the UI should only send updates to core on mouse release.booleanReturn true if the UI should render switch capabilities for the slider.voidsetMaxValue(@Nullable BigDecimal maxValue) Set maximum slider value.voidsetMinValue(@Nullable BigDecimal minValue) Set minimum slider value.voidsetReleaseOnly(@Nullable Boolean releaseOnly) Set release only.voidsetStep(@Nullable BigDecimal step) Set slider step.voidsetSwitchEnabled(@Nullable Boolean switchEnabled) Set switch enabled.Methods inherited from interface org.openhab.core.sitemap.Widget
getIcon, getIconColor, getIconRules, getItem, getLabel, getLabelColor, getParent, getValueColor, getVisibility, getWidgetType, isStaticIcon, setIcon, setIconColor, setIconRules, setItem, setLabel, setLabelColor, setParent, setStaticIcon, setValueColor, setVisibility
-
Method Details
-
isSwitchEnabled
boolean isSwitchEnabled()Return true if the UI should render switch capabilities for the slider.- Returns:
- true if switch enabled
-
setSwitchEnabled
Set switch enabled.- Parameters:
switchEnabled-
-
isReleaseOnly
boolean isReleaseOnly()Return true if the UI should only send updates to core on mouse release.- Returns:
- true if release only
-
setReleaseOnly
Set release only.- Parameters:
releaseOnly-
-
getMinValue
@Nullable BigDecimal getMinValue()Get minimum slider value.- Returns:
- minValue
-
setMinValue
Set minimum slider value.- Parameters:
minValue-
-
getMaxValue
@Nullable BigDecimal getMaxValue()Get maximum slider value.- Returns:
- maxValue
-
setMaxValue
Set maximum slider value.- Parameters:
maxValue-
-
getStep
@Nullable BigDecimal getStep()Get slider step.- Returns:
- step
-
setStep
Set slider step.- Parameters:
step-
-