Package org.patternfly.component.slider
Class Slider
java.lang.Object
org.patternfly.component.BaseComponentFlat<elemental2.dom.HTMLElement,Slider>
org.patternfly.component.slider.Slider
- All Implemented Interfaces:
Attachable,Finder<elemental2.dom.HTMLElement>,HasElement<elemental2.dom.HTMLElement,,Slider> HasHTMLElement<elemental2.dom.HTMLElement,,Slider> IsElement<elemental2.dom.HTMLElement>,TypedBuilder<elemental2.dom.HTMLElement,,Slider> Component,HasValue<Double>,Modifiers.Disabled<elemental2.dom.HTMLElement,Slider>
public class Slider
extends BaseComponentFlat<elemental2.dom.HTMLElement,Slider>
implements Modifiers.Disabled<elemental2.dom.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
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) voidattach(elemental2.dom.MutationRecord mutationRecord) Returns the current step of the slider.customSteps(boolean continuous, SliderSteps steps) customSteps(SliderSteps steps) voiddecrease()voiddetach(elemental2.dom.MutationRecord mutationRecord) disabled(boolean disabled) voidincrease()intintValue()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, elementMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, uniqueIdMethods inherited from interface org.jboss.elemento.HasHTMLElement
data, hidden, style, style, style, style, style, style, titleMethods inherited from interface org.patternfly.style.Modifiers.Disabled
disabled, isDisabled
-
Method Details
-
slider
-
attach
public void attach(elemental2.dom.MutationRecord mutationRecord) - Specified by:
attachin interfaceAttachable
-
detach
public void detach(elemental2.dom.MutationRecord mutationRecord) - Specified by:
detachin interfaceAttachable
-
addStartActions
-
addEndActions
-
addValueInput
-
addValueInput
-
addValueInput
-
addValueInput
-
customSteps
-
customSteps
-
disabled
- Specified by:
disabledin interfaceModifiers.Disabled<elemental2.dom.HTMLElement,Slider>
-
min
-
max
-
step
-
range
-
range
-
showBoundaries
-
showBoundaries
-
showTicks
-
showTicks
-
toolTipOnThumb
-
toolTipOnThumb
-
value
-
that
- Specified by:
thatin interfaceTypedBuilder<elemental2.dom.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.
-