|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Spinner
An edit box for holding a constrained integer.
Default HtmlBasedComponent.getZclass(): z-spinner.
spinner supports below key events.
| Field Summary |
|---|
| Fields inherited from interface org.zkoss.zk.ui.Component |
|---|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE |
| Method Summary | |
|---|---|
int |
getStep()
Return the step of spinner |
java.lang.Integer |
getValue()
Returns the value (in Integer), might be null unless a constraint stops it. |
int |
intValue()
Returns the value in int. |
boolean |
isButtonVisible()
Returns whether the button (on the right of the textbox) is visible. |
void |
setButtonVisible(boolean visible)
Sets whether the button (on the right of the textbox) is visible. |
void |
setStep(int step)
Set the step of spinner |
void |
setValue(java.lang.Integer value)
Sets the value (in Integer). |
| Methods inherited from interface org.zkoss.zul.impl.api.NumberInputElement |
|---|
getRoundingMode, setRoundingMode, setRoundingMode |
| Methods inherited from interface org.zkoss.zul.impl.api.FormatInputElement |
|---|
getFormat, setFormat |
| Methods inherited from interface org.zkoss.zul.impl.api.InputElement |
|---|
clearErrorMessage, clearErrorMessage, getAreaText, getCols, getErrorMessage, getMaxlength, getName, getRawText, getRawValue, getTabindex, getText, getType, isDisabled, isMultiline, isReadonly, isValid, select, setCols, setConstraint, setDisabled, setMaxlength, setName, setRawValue, setReadonly, setSelectedText, setSelectionRange, setTabindex, setText |
| Methods inherited from interface org.zkoss.zul.impl.api.XulElement |
|---|
getAction, getContext, getCtrlKeys, getPopup, getTooltip, setAction, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip |
| Methods inherited from interface org.zkoss.zk.ui.api.HtmlBasedComponent |
|---|
focus, getHeight, getLeft, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZclass, getZindex, getZIndex, setDraggable, setDroppable, setFocus, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZclass, setZindex, setZIndex |
| Methods inherited from interface org.zkoss.zul.ext.Constrainted |
|---|
getConstraint, setConstraint |
| Method Detail |
|---|
java.lang.Integer getValue()
throws WrongValueException
WrongValueException - if user entered a wrong value
int intValue()
throws WrongValueException
WrongValueException
void setValue(java.lang.Integer value)
throws WrongValueException
WrongValueException - if value is wrongint getStep()
void setStep(int step)
boolean isButtonVisible()
Default: true.
void setButtonVisible(boolean visible)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||