public class Rangeslider
extends org.zkoss.zul.impl.XulElement
implements org.zkoss.zk.ui.ext.Disable
Constructor and Description |
---|
Rangeslider() |
Modifier and Type | Method and Description |
---|---|
void |
beforeChildAdded(org.zkoss.zk.ui.Component child,
org.zkoss.zk.ui.Component refChild) |
int |
getEndValue()
Returns the end value of this rangeslider.
|
String |
getMarks()
Returns marks of the rangeslider.
|
int |
getMax()
Returns the maximum value of the rangeslider.
|
int |
getMin()
Returns the minimum value of the rangeslider.
|
String |
getOrient()
Returns the orient.
|
int |
getStartValue()
Returns the start value of this rangeslider.
|
int |
getStep()
Returns the step of rangeslider.
|
String |
getZclass()
The default zclass is "z-rangeslider"
|
protected void |
initSliderButtons() |
boolean |
isDisabled()
Returns whether it is disabled.
|
boolean |
isTooltipVisible()
Returns whether it is tooltipVisible.
|
protected void |
renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) |
void |
service(org.zkoss.zk.au.AuRequest request,
boolean everError)
Processes an AU request.
|
void |
setDisabled(boolean disabled)
Sets whether it is disabled.
|
void |
setEndValue(int value)
Sets the end value of this sliderbuttons.
|
void |
setMarks(String marks)
Sets the marks information for displaying value marks.
|
void |
setMax(int max)
Sets the maximum value of the rangeslider.
|
void |
setMin(int min)
Sets the minimum value of the rangeslider.
|
void |
setOrient(String orient)
Default : "horizontal"
|
void |
setStartValue(int value)
Sets the start value of this sliderbuttons.
|
void |
setStep(int step)
Sets the step of rangeslider
|
void |
setTooltipVisible(boolean tooltipVisible)
Sets whether it is tooltipVisible.
|
clone, getContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributes
addSclass, evalCSSFlex, focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZindex, getZIndex, removeSclass, removeSclass, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight, setHeight0, setHeightDirectly, setHflex, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTabindex, setTabindex, setTooltiptext, setTop, setTopDirectly, setVflex, setVflex0, setVflexDirectly, setWidth, setWidth0, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectly
addAnnotation, addAnnotation, addCallback, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildRemoved, beforeParentChanged, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, enableBindingAnnotation, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getCallback, getChildren, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowFellowIfAny, getShadowRoots, getShadowVariable, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, insertBefore, invalidate, invalidatePartial, isChildable, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onPageAttached, onPageDetached, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisible, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerialize
protected void initSliderButtons()
public int getMin()
Default: 0.
public void setMin(int min)
org.zkoss.zk.ui.WrongValueException
- if negative value is passedpublic int getMax()
Default: 100.
public void setMax(int max)
org.zkoss.zk.ui.WrongValueException
- if negative value is passedpublic int getStep()
Default: 1
public void setStep(int step)
step
- the step of slider.org.zkoss.zk.ui.WrongValueException
- if non-positive minimum is passedpublic int getStartValue()
Default: 0.
public void setStartValue(int value)
value
- public int getEndValue()
Default: 0.
public void setEndValue(int value)
value
- public String getMarks()
setMarks(java.lang.String)
for more details.public void setMarks(String marks)
Default: "20".
If there is only a number value, for example: 20. The value marks would be displayed every 20 start from the minimum value. (if min is 0, then display "0 20 40 ...")
Another options for the marks can be specified as follows:
<rangeslider marks="10:10%, 20:20%, 50:50%, 80:80%"
It means that each value mark could be displayed in different text.
marks
- the value marks displaying informationpublic boolean isDisabled()
Default: false.
isDisabled
in interface org.zkoss.zk.ui.ext.Disable
public void setDisabled(boolean disabled)
setDisabled
in interface org.zkoss.zk.ui.ext.Disable
disabled
- public String getOrient()
Default: "horizontal".
public void setOrient(String orient) throws org.zkoss.zk.ui.WrongValueException
Default : "horizontal"
orient
- either "horizontal" or "vertical".org.zkoss.zk.ui.WrongValueException
public void setTooltipVisible(boolean tooltipVisible)
tooltipVisible
- public boolean isTooltipVisible()
Default: false.
public void beforeChildAdded(org.zkoss.zk.ui.Component child, org.zkoss.zk.ui.Component refChild)
beforeChildAdded
in interface org.zkoss.zk.ui.sys.ComponentCtrl
beforeChildAdded
in class org.zkoss.zk.ui.AbstractComponent
protected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) throws IOException
renderProperties
in class org.zkoss.zul.impl.XulElement
IOException
public void service(org.zkoss.zk.au.AuRequest request, boolean everError)
service
in interface org.zkoss.zk.ui.sys.ComponentCtrl
service
in class org.zkoss.zk.ui.HtmlBasedComponent
public String getZclass()
getZclass
in class org.zkoss.zk.ui.HtmlBasedComponent
Copyright © 2019. All rights reserved.