|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zul.impl.XulElement
org.zkoss.zul.Slider
public class Slider
A slider.
| Nested Class Summary | |
|---|---|
protected class |
Slider.ExtraCtrl
A utility class to implement AbstractComponent.getExtraCtrl(). |
| Field Summary |
|---|
| Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
RS_NO_DISPLAY, RS_NO_HEIGHT, RS_NO_WIDTH |
| Fields inherited from interface org.zkoss.zk.ui.Component |
|---|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE |
| Constructor Summary | |
|---|---|
Slider()
|
|
Slider(int curpos)
|
|
| Method Summary | |
|---|---|
int |
getCurpos()
Returns the current position of the slider. |
int |
getMaxpos()
Returns the maximum position of the slider. |
java.lang.String |
getOuterAttrs()
|
int |
getPageIncrement()
Returns the amount that the value of getCurpos()
changes by when the tray of the scroll bar is clicked. |
boolean |
isChildable()
Not childable. |
protected java.lang.Object |
newExtraCtrl()
|
void |
setCurpos(int curpos)
Sets the current position of the slider. |
void |
setMaxpos(int maxpos)
Sets the maximum position of the slider. |
void |
setPageIncrement(int pginc)
Sets the amount that the value of getCurpos()
changes by when the tray of the scroll bar is clicked. |
| Methods inherited from class org.zkoss.zul.impl.XulElement |
|---|
getAction, getAllOnClickAttrs, getContext, getInnerAttrs, getPopup, getTooltip, setAction, setContext, setPopup, setTooltip |
| Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
addEventListener, appendAsapAttr, focus, getDraggable, getDroppable, getHeight, getLeft, getRealStyle, getRealStyleFlags, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZIndex, isAsapRequired, removeEventListener, setClass, setDraggable, setDroppable, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZIndex |
| Methods inherited from class org.zkoss.zk.ui.AbstractComponent |
|---|
addAnnotation, addAnnotation, addEventHandler, addSharedAnnotationMap, addSharedEventHandlerMap, appendChild, applyProperties, clone, containsVariable, detach, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttributes, getAttributes, getChildren, getDefinition, getDesktop, getEventHandler, getExtraCtrl, getFellow, getFellowIfAny, getId, getListenerIterator, getMold, getMoldURI, getNamespace, getPage, getParent, getPropagatee, getRoot, getSpaceOwner, getUuid, getVariable, insertBefore, invalidate, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onDrawNewChild, onWrongValue, redraw, removeAttribute, removeAttribute, removeChild, response, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setComponentDefinition, setId, setMold, setPage, setParent, setVariable, setVisible, smartUpdate, smartUpdate, smartUpdate, toString, unsetVariable |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Slider()
public Slider(int curpos)
curpos - the current position (default: 0)| Method Detail |
|---|
public final int getCurpos()
Default: 0.
public final void setCurpos(int curpos)
throws org.zkoss.zk.ui.WrongValueException
getMaxpos(),
getMaxpos() is assumed.
org.zkoss.zk.ui.WrongValueExceptionpublic final int getMaxpos()
Default: 100.
public final void setMaxpos(int maxpos)
throws org.zkoss.zk.ui.WrongValueException
org.zkoss.zk.ui.WrongValueException - if non-positive maxpos is passedpublic final int getPageIncrement()
getCurpos()
changes by when the tray of the scroll bar is clicked.
Default: 10.
public final void setPageIncrement(int pginc)
throws org.zkoss.zk.ui.WrongValueException
getCurpos()
changes by when the tray of the scroll bar is clicked.
org.zkoss.zk.ui.WrongValueExceptionpublic java.lang.String getOuterAttrs()
getOuterAttrs in class XulElementpublic boolean isChildable()
isChildable in interface org.zkoss.zk.ui.ComponentisChildable in class org.zkoss.zk.ui.AbstractComponentprotected java.lang.Object newExtraCtrl()
newExtraCtrl in class org.zkoss.zk.ui.HtmlBasedComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||