|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NumberInputElement
A skeletal implementation for number-type input box.
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 |
getRoundingMode()
Returns the rounding mode. |
void |
setRoundingMode(int mode)
Sets the rounding mode. |
void |
setRoundingMode(java.lang.String name)
Sets the rounding mode by the name. |
Methods inherited from interface org.zkoss.zul.impl.api.FormatInputElement |
---|
getFormat, setFormat |
Methods inherited from interface org.zkoss.zul.impl.api.InputElement |
---|
clearErrorMessage, clearErrorMessage, 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.zk.ui.ext.Scope |
---|
addScopeListener, getAttribute, hasAttribute, removeAttribute, removeScopeListener, setAttribute |
Methods inherited from interface org.zkoss.zul.ext.Constrainted |
---|
getConstraint, setConstraint |
Method Detail |
---|
void setRoundingMode(int mode)
mode
- the rounding mode. Allowed value:
BigDecimal.ROUND_CEILING
,
BigDecimal.ROUND_DOWN
, BigDecimal.ROUND_FLOOR
,
BigDecimal.ROUND_HALF_DOWN
,
BigDecimal.ROUND_HALF_UP
,
BigDecimal.ROUND_HALF_EVEN
,
BigDecimal.ROUND_UNNECESSARY
and
BigDecimal.ROUND_UP
java.lang.UnsupportedOperationException
- if Java 5 or belowvoid setRoundingMode(java.lang.String name)
name
- the rounding mode's name. Allowed value:
java.lang.UnsupportedOperationException
- if Java 5 or belowRoundingModes
int getRoundingMode()
Default: BigDecimal.ROUND_HALF_EVEN
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |