Interface IRangesliderBase<I extends IRangesliderBase>
- All Superinterfaces:
IAnyGroup<I>,IComponent<I>,IDisable<I>,IHtmlBasedComponent<I>,ISingleChildable<I,,ISliderbuttons> IXulElement<I>
- All Known Subinterfaces:
IMultislider,IRangeslider
Rangeslider base component- Author:
- katherine
- See Also:
-
Rangeslider
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumSpecifies the orient ofIRangesliderBasecomponent -
Method Summary
Modifier and TypeMethodDescriptiongetMarks()Returns the marks information map of the component.default intReturns mark scale of the component.default intgetMax()Returns the maximum value of the component.default intgetMin()Returns the minimum value of the component.default StringReturns the orient.default intgetStep()Returns the step of the component.default booleanReturns whether it is tooltip visible.Returns a copy ofthisimmutable component with the specifiedmarks.withMarkScale(int markScale) Returns a copy ofthisimmutable component with the specifiedmarkScale.withMax(int max) Returns a copy ofthisimmutable component with the specifiedmax.withMin(int min) Returns a copy ofthisimmutable component with the specifiedmin.withOrient(String orient) Returns a copy ofthisimmutable component with the specifiedorient.default IwithOrient(IRangesliderBase.Orient orient) Returns a copy ofthisimmutable component with the specifiedorient.withStep(int step) Returns a copy ofthisimmutable component with the specifiedstep.withTooltipVisible(boolean tooltipVisible) Returns a copy ofthisimmutable component with the specifiedtooltipVisible.Methods inherited from interface org.zkoss.stateless.sul.IComponent
getAction, getActions, getClientAttributes, getId, getMold, getWidgetClass, getWidgetListeners, getWidgetOverrides, isVisible, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withActions, withActions, withClientAttribute, withClientAttributes, withId, withMold, withVisible, withWidgetClass, withWidgetListener, withWidgetListeners, withWidgetOverride, withWidgetOverridesMethods inherited from interface org.zkoss.stateless.sul.IDisable
isDisabled, withDisabledMethods inherited from interface org.zkoss.stateless.sul.IHtmlBasedComponent
getClientAction, getDraggable, getDroppable, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getSkeleton, getStyle, getTabindex, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZIndex, isFocus, withClientAction, withDraggable, withDroppable, withFocus, withHeight, withHflex, withLeft, withRenderdefer, withSclass, withSkeleton, withStyle, withTabindex, withTabindex, withTooltiptext, withTop, withVflex, withWidth, withZclass, withZIndexMethods inherited from interface org.zkoss.stateless.sul.ISingleChildable
getChild, withChildMethods inherited from interface org.zkoss.stateless.sul.IXulElement
getContext, getCtrlKeys, getPopup, getTooltip, withContext, withCtrlKeys, withPopup, withTooltip
-
Method Details
-
getMarks
Returns the marks information map of the component. Refer towithMarks(java.util.Map<java.lang.Integer, ? extends java.lang.String>)for more details. -
withMarks
Returns a copy ofthisimmutable component with the specifiedmarks.Sets the marks information map for displaying value marks. In this map, the key represents the number value of slider, and the value represents the displayed scale text.
- Parameters:
marks- The value marks displaying informationDefault:
null.- Returns:
- A modified copy of the
thisobject
-
getMin
default int getMin()Returns the minimum value of the component.Default:
0. -
withMin
Returns a copy ofthisimmutable component with the specifiedmin.Sets the minimum value of the component.
- Parameters:
min- The minimum value of the component.Default:
0.- Returns:
- A modified copy of the
thisobject
-
getMax
default int getMax()Returns the maximum value of the component.Default:
100. -
withMax
Returns a copy ofthisimmutable component with the specifiedmax.Sets the maximum value of the component.
- Parameters:
max- The maximum value of the component.Default:
100.- Returns:
- A modified copy of the
thisobject
-
getStep
default int getStep()Returns the step of the component. When the user drags the slider buttons, the buttons would increase/decrease value by the step count.Default:
1 -
withStep
Returns a copy ofthisimmutable component with the specifiedstep.Sets the step of component
- Parameters:
step- The step of the slider.Default:
1.- Returns:
- A modified copy of the
thisobject
-
getOrient
Returns the orient.Default:
"horizontal". -
withOrient
Returns a copy ofthisimmutable component with the specifiedorient.Sets the orient of component
- Parameters:
orient- Either"horizontal"or"vertical"Default:
"horizontal".- Returns:
- A modified copy of the
thisobject
-
withOrient
Returns a copy ofthisimmutable component with the specifiedorient.Sets the orient of component
- Parameters:
orient- TheorientDefault:
"horizontal".- Returns:
- A modified copy of the
thisobject
-
isTooltipVisible
default boolean isTooltipVisible()Returns whether it is tooltip visible. If true, the tooltips of the slider buttons would be always visible.Default:
false. -
withTooltipVisible
Returns a copy ofthisimmutable component with the specifiedtooltipVisible.Sets whether it is tooltip visible.
- Parameters:
tooltipVisible- Whether it is tooltip visible.Default:
false.- Returns:
- A modified copy of the
thisobject
-
getMarkScale
default int getMarkScale()Returns mark scale of the component. Refer towithMarkScale(int)for more details.Default:
20 -
withMarkScale
Returns a copy ofthisimmutable component with the specifiedmarkScale.Sets the mark scale for displaying value marks.
The value marks would be displayed every number value (ex. 20) start from the minimum value. (if min is 0, then display "0 20 40 ...")
Notice that it's not allowed to use
markScaleandmarksat the same time.- Parameters:
markScale- The value marks displaying scaleDefault:
20.- Returns:
- A modified copy of the
thisobject
-