|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Decimalbox
An edit box for holding BigDecimal.
Default HtmlBasedComponent.getZclass(): z-decimalbox.(since 3.5.0)
| 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 | |
|---|---|
double |
doubleValue()
Returns the value in double. |
int |
getScale()
Returns the scale for the decimal number storing in this component, or Decimalbox.AUTO if the scale is decided
automatically (based on what user has entered). |
java.math.BigDecimal |
getValue()
Returns the value (in BigDecimal), might be null unless a constraint stops it. |
int |
intValue()
Returns the value in integer. |
long |
longValue()
Returns the value in long. |
void |
setScale(int scale)
Returns the scale for the decimal number storing in this component, or Decimalbox.AUTO if the scale is decided
automatically (based on what user has entered). |
void |
setValue(java.math.BigDecimal value)
Sets the value (in BigDecimal). |
short |
shortValue()
Returns the value in short. |
| 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.math.BigDecimal getValue()
throws WrongValueException
WrongValueException - if user entered a wrong value
double doubleValue()
throws WrongValueException
WrongValueException
int intValue()
throws WrongValueException
WrongValueException
long longValue()
throws WrongValueException
WrongValueException
short shortValue()
throws WrongValueException
WrongValueException
void setValue(java.math.BigDecimal value)
throws WrongValueException
WrongValueException - if value is wrongint getScale()
Decimalbox.AUTO if the scale is decided
automatically (based on what user has entered).
Default: Decimalbox.AUTO.
void setScale(int scale)
Decimalbox.AUTO if the scale is decided
automatically (based on what user has entered).
Default: Decimalbox.AUTO.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||