Package org.patternfly.component.slider
Class Slider
java.lang.Object
org.patternfly.component.BaseComponentFlat<HTMLElement,Slider>
org.patternfly.component.slider.Slider
- All Implemented Interfaces:
Attachable
,Finder<HTMLElement>
,HasElement<HTMLElement,
,Slider> HasHTMLElement<HTMLElement,
,Slider> IsElement<HTMLElement>
,TypedBuilder<HTMLElement,
,Slider> Component
,HasValue<Double>
,Modifiers.Disabled<HTMLElement,
Slider>
public class Slider
extends BaseComponentFlat<HTMLElement,Slider>
implements Modifiers.Disabled<HTMLElement,Slider>, HasValue<Double>, Attachable
A slider provides a quick and effective way for users to set and adjust a numeric value from a defined range of values.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionaddEndActions
(SliderActions actions) addStartActions
(SliderActions actions) addValueInput
(TextInput valueInput) addValueInput
(TextInput textInput, SliderInputPosition inputPosition) addValueInput
(InputGroup valueInput) addValueInput
(InputGroup valueInput, SliderInputPosition inputPosition) ariaDescribedBy
(String describedBy) Sets the aria attribute on the slider and the thumb element.ariaLabelledBy
(String labelledBy) Sets the aria attribute on the slider and the thumb element.ariaThumbLabel
(String label) void
attach
(MutationRecord mutationRecord) Returns the current step of the slider.customSteps
(boolean continuous, SliderSteps steps) customSteps
(SliderSteps steps) void
decrease()
void
detach
(MutationRecord mutationRecord) disabled
(boolean disabled) void
increase()
int
intValue()
max
(double max) min
(double min) onChange
(ChangeHandler<Slider, Double> changeHandler) range
(double min, double max) range
(double min, double max, double step) showBoundaries
(boolean showBoundaries) showTicks
(boolean showTicks) slider()
step
(double step) that()
toolTipOnThumb
(boolean tooltipOnThumb) value()
value
(double value) Methods inherited from class org.patternfly.component.BaseComponentFlat
componentType, element
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jboss.elemento.HasElement
add, apply, aria, aria, aria, attr, attr, attr, classList, classList, css, id, innerHtml, on, on, on, run, textContent, textNode, toggle, toggle, toggle, uniqueId
Methods inherited from interface org.jboss.elemento.HasHTMLElement
data, hidden, style, style, style, style, style, style, title
Methods inherited from interface org.patternfly.style.Modifiers.Disabled
disabled, isDisabled
-
Method Details
-
slider
-
attach
- Specified by:
attach
in interfaceAttachable
-
detach
- Specified by:
detach
in interfaceAttachable
-
addStartActions
-
addEndActions
-
addValueInput
-
addValueInput
-
addValueInput
-
addValueInput
-
customSteps
-
customSteps
-
disabled
- Specified by:
disabled
in interfaceModifiers.Disabled<HTMLElement,
Slider>
-
min
-
max
-
step
-
range
-
range
-
showBoundaries
-
showBoundaries
-
showTicks
-
showTicks
-
toolTipOnThumb
-
toolTipOnThumb
-
value
-
that
- Specified by:
that
in interfaceTypedBuilder<HTMLElement,
Slider>
-
ariaLabel
-
ariaDescribedBy
Sets the aria attribute on the slider and the thumb element. -
ariaLabelledBy
Sets the aria attribute on the slider and the thumb element. -
ariaThumbLabel
-
onChange
-
decrease
public void decrease() -
increase
public void increase() -
value
-
intValue
public int intValue() -
currentStep
Returns the current step of the slider.
-