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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SlideraddEndActions(SliderActions actions)SlideraddStartActions(SliderActions actions)SlideraddValueInput(TextInput valueInput)SlideraddValueInput(TextInput textInput, SliderInputPosition inputPosition)SlideraddValueInput(InputGroup valueInput)SlideraddValueInput(InputGroup valueInput, SliderInputPosition inputPosition)SliderariaDescribedBy(String describedBy)Sets the aria attribute on the slider and the thumb element.SliderariaLabel(String label)SliderariaLabelledBy(String labelledBy)Sets the aria attribute on the slider and the thumb element.SliderariaThumbLabel(String label)voidattach(MutationRecord mutationRecord)SliderStepcurrentStep()Returns the current step of the slider.SlidercustomSteps(boolean continuous, SliderSteps steps)SlidercustomSteps(SliderSteps steps)voiddecrease()voiddetach(MutationRecord mutationRecord)Sliderdisabled(boolean disabled)voidincrease()intintValue()Slidermax(double max)Slidermin(double min)SlideronChange(ChangeHandler<Slider,Double> changeHandler)Sliderrange(double min, double max)Sliderrange(double min, double max, double step)SlidershowBoundaries()SlidershowBoundaries(boolean showBoundaries)SlidershowTicks()SlidershowTicks(boolean showTicks)static <N extends Number>
Sliderslider()Sliderstep(double step)Sliderthat()SlidertoolTipOnThumb()SlidertoolTipOnThumb(boolean tooltipOnThumb)Doublevalue()Slidervalue(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, id, innerHtml, 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 Detail
-
attach
public void attach(MutationRecord mutationRecord)
- Specified by:
attachin interfaceAttachable
-
detach
public void detach(MutationRecord mutationRecord)
- Specified by:
detachin interfaceAttachable
-
addStartActions
public Slider addStartActions(SliderActions actions)
-
addEndActions
public Slider addEndActions(SliderActions actions)
-
addValueInput
public Slider addValueInput(TextInput textInput, SliderInputPosition inputPosition)
-
addValueInput
public Slider addValueInput(InputGroup valueInput)
-
addValueInput
public Slider addValueInput(InputGroup valueInput, SliderInputPosition inputPosition)
-
customSteps
public Slider customSteps(SliderSteps steps)
-
customSteps
public Slider customSteps(boolean continuous, SliderSteps steps)
-
disabled
public Slider disabled(boolean disabled)
- Specified by:
disabledin interfaceModifiers.Disabled<HTMLElement,Slider>
-
min
public Slider min(double min)
-
max
public Slider max(double max)
-
step
public Slider step(double step)
-
range
public Slider range(double min, double max)
-
range
public Slider range(double min, double max, double step)
-
showBoundaries
public Slider showBoundaries()
-
showBoundaries
public Slider showBoundaries(boolean showBoundaries)
-
showTicks
public Slider showTicks()
-
showTicks
public Slider showTicks(boolean showTicks)
-
toolTipOnThumb
public Slider toolTipOnThumb()
-
toolTipOnThumb
public Slider toolTipOnThumb(boolean tooltipOnThumb)
-
value
public Slider value(double value)
-
that
public Slider that()
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,Slider>
-
ariaDescribedBy
public Slider ariaDescribedBy(String describedBy)
Sets the aria attribute on the slider and the thumb element.
-
ariaLabelledBy
public Slider ariaLabelledBy(String labelledBy)
Sets the aria attribute on the slider and the thumb element.
-
onChange
public Slider onChange(ChangeHandler<Slider,Double> changeHandler)
-
decrease
public void decrease()
-
increase
public void increase()
-
intValue
public int intValue()
-
currentStep
public SliderStep currentStep()
Returns the current step of the slider.
-
-