|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object zk.Object zk.Widget zul.Widget zul.inp.Slider
public class Slider
A slider.
Default Widget.getZclass()
as follows:
getOrient()
is vertical, "z-slider-ver" is assumedgetOrient()
is horizontal, "z-slider-hor" is assumed
Field Summary |
---|
Fields inherited from class zk.Widget |
---|
$weave, auDelay, autag, bindLevel, className, desktop, effects_, firstChild, id, insertingBefore_, inServer, lastChild, nChildren, nextSibling, parent, previousSibling, uuid, widgetName |
Fields inherited from class zk.Object |
---|
$class, $oid |
Method Summary | |
---|---|
int |
getCurpos()
Returns the current position of the slider. |
int |
getMaxpos()
Returns the maximum position of the slider. |
String |
getName()
Returns the name of this component. |
String |
getOrient()
Returns the orient. |
void |
getPageIncrement()
Returns the amount that the value of getCurpos()
changes by when the tray of the scroll bar is clicked. |
String |
getSlidingtext()
Returns the sliding text. |
boolean |
inScaleMold()
Return whether this widget in scale mold |
boolean |
inSphereMold()
Return whether this widget in sphere mold |
boolean |
isVertical()
Returns whether it is a vertical slider. |
void |
setCurpos(int curpos)
Sets the current position of the slider. |
void |
setMaxpos(int maxpos)
Sets the maximum position of the slider. |
void |
setName(String name)
Sets the name of this component. |
void |
setOrient(String orient)
Sets the orient. |
void |
setPageIncrement(int pginc)
Sets the amount that the value of getCurpos()
changes by when the tray of the scroll bar is clicked. |
void |
setSlidingtext(String slidingtext)
Sets the sliding text. |
Methods inherited from class zul.Widget |
---|
afterKeyDown_, beforeCtrlKeys_, getContext, getCtrlKeys, getOpenTooltip, getPopup, getTooltip, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip |
Methods inherited from class zk.Object |
---|
$init, $instanceof, $super, $super, $supers, $supers, afterInit, isAssignableFrom, isInstance, proxy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void setOrient(String orient)
Default : "horizontal"
orient
- either "horizontal" or "vertical".public String getOrient()
Default: "horizontal".
public void setCurpos(int curpos)
getMaxpos()
,
getMaxpos()
is assumed.
curpos
- public int getCurpos()
Default: 0.
public void setMaxpos(int maxpos)
maxpos
- public int getMaxpos()
Default: 100.
public void setSlidingtext(String slidingtext)
slidingtext
- public String getSlidingtext()
Default : "{0}"
public void setPageIncrement(int pginc)
getCurpos()
changes by when the tray of the scroll bar is clicked.
Default: -1 (means it will scroll to the position the user clicks).
pginc
- the page increment. If negative, slider will scroll
to the position that user clicks.public void getPageIncrement()
getCurpos()
changes by when the tray of the scroll bar is clicked.
Default: -1 (means it will scroll to the position the user clicks).
public void setName(String name)
The name is used only to work with "legacy" Web application that handles user's request by servlets. It works only with HTTP/HTML-based browsers. It doesn't work with other kind of clients.
Don't use this method if your application is purely based on ZK's event-driven model.
name
- the name of this component.public String getName()
Default: null.
The name is used only to work with "legacy" Web application that handles user's request by servlets. It works only with HTTP/HTML-based browsers. It doesn't work with other kind of clients.
Don't use this method if your application is purely based on ZK's event-driven model.
public boolean inScaleMold()
public boolean inSphereMold()
public boolean isVertical()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |