public class Rangeslider extends XulElement implements Disable
HtmlBasedComponent.ExtraCtrlAbstractComponent.Children_zclassAPPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPEAFTER_CHILD_ADDED, AFTER_CHILD_REMOVED, AFTER_PAGE_ATTACHED, AFTER_PAGE_DETACHED, CE_BUSY_IGNORE, CE_DUPLICATE_IGNORE, CE_IMPORTANT, CE_NON_DEFERRABLE, CE_REPEAT_IGNORE| Constructor and Description |
|---|
Rangeslider() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeChildAdded(Component child,
Component refChild)
Default: does nothing.
|
int |
getEndValue()
Returns the end value of this rangeslider.
|
java.util.Map<java.lang.Integer,java.lang.String> |
getMarks()
Returns marks information map of the rangeslider.
|
int |
getMarkScale()
Returns mark scale of the rangeslider.
|
int |
getMax()
Returns the maximum value of the rangeslider.
|
int |
getMin()
Returns the minimum value of the rangeslider.
|
java.lang.String |
getOrient()
Returns the orient.
|
int |
getStartValue()
Returns the start value of this rangeslider.
|
int |
getStep()
Returns the step of rangeslider.
|
java.lang.String |
getZclass()
The default zclass is "z-rangeslider"
|
protected void |
handleOtherButtonsValues(Sliderbuttons child) |
protected void |
initSliderButtons() |
boolean |
isDisabled()
Returns whether it is disabled.
|
boolean |
isTooltipVisible()
Returns whether it is tooltipVisible.
|
protected void |
renderProperties(ContentRenderer renderer)
Renders the content of this component, excluding the enclosing
tags and children.
|
void |
service(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(java.util.Map<java.lang.Integer,java.lang.String> marks)
Sets the marks information map for displaying value marks.
|
void |
setMarkScale(int markScale)
Sets the mark scale 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(java.lang.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, setTooltipAttributesaddSclass, 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, setZIndexDirectlyaddAnnotation, 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, isInitialized, 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, willSerializeequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitinvalidatePartialprotected void initSliderButtons()
public int getMin()
Default: 0.
public void setMin(int min)
WrongValueException - if negative value is passedpublic int getMax()
Default: 100.
public void setMax(int max)
WrongValueException - if negative value is passedpublic int getStep()
Default: 1
public void setStep(int step)
step - the step of slider.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 int getMarkScale()
setMarkScale(int) for more details.public void setMarkScale(int markScale)
Default: 20. 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 markScale and marks at the same time.
markScale - the value marks displaying scalepublic java.util.Map<java.lang.Integer,java.lang.String> getMarks()
setMarks(java.util.Map<java.lang.Integer, java.lang.String>) for more details.public void setMarks(java.util.Map<java.lang.Integer,java.lang.String> marks)
Default: null.
marks - the value marks displaying informationpublic boolean isDisabled()
Default: false.
isDisabled in interface Disablepublic void setDisabled(boolean disabled)
setDisabled in interface Disabledisabled - public java.lang.String getOrient()
Default: "horizontal".
public void setOrient(java.lang.String orient)
throws WrongValueException
Default : "horizontal"
orient - either "horizontal" or "vertical".WrongValueExceptionpublic void setTooltipVisible(boolean tooltipVisible)
tooltipVisible - public boolean isTooltipVisible()
Default: false.
public void beforeChildAdded(Component child, Component refChild)
AbstractComponentbeforeChildAdded in interface ComponentCtrlbeforeChildAdded in class AbstractComponentchild - the child to be added (never null).refChild - another child component that the new child
will be inserted before it. If null, the new child will be the
last child.ComponentCtrl.beforeChildAdded(org.zkoss.zk.ui.Component, org.zkoss.zk.ui.Component)protected void renderProperties(ContentRenderer renderer) throws java.io.IOException
HtmlBasedComponentrenderProperties in class XulElementjava.io.IOExceptionpublic void service(AuRequest request, boolean everError)
service in interface ComponentCtrlservice in class HtmlBasedComponenteverError - whether any error ever occurred before
processing this request.AbstractComponent.setAuService(org.zkoss.zk.au.AuService)protected void handleOtherButtonsValues(Sliderbuttons child)
public java.lang.String getZclass()
getZclass in class HtmlBasedComponentHtmlBasedComponent.getSclass()Copyright © 2005-2024 Potix Corporation. All Rights Reserved.