|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.webtoolkit.jwt.WObject
eu.webtoolkit.jwt.WWidget
eu.webtoolkit.jwt.WWebWidget
eu.webtoolkit.jwt.WInteractWidget
eu.webtoolkit.jwt.WFormWidget
eu.webtoolkit.jwt.WLineEdit
eu.webtoolkit.jwt.WAbstractSpinBox
eu.webtoolkit.jwt.WDoubleSpinBox
public class WDoubleSpinBox
An input control for fixed point numbers.
The spin box provides a control for entering a fixed point number. It
consists of a line edit, and buttons which allow to increase or decrease the
value. If you rather need input of an integer number number, use
WDoubleSpinBox instead.
WDoubleSpinBox is an inline
widget.
See WAbstractSpinBox.
Note: A spinbox configures a validator for validating the
input. Therefore you cannot set a validator yourself.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class eu.webtoolkit.jwt.WLineEdit |
|---|
WLineEdit.EchoMode |
| Constructor Summary | |
|---|---|
WDoubleSpinBox()
Creates a spin-box. |
|
WDoubleSpinBox(WContainerWidget parent)
Creates a spin-box. |
|
| Method Summary | |
|---|---|
double |
getMaximum()
Returns the maximum value. |
double |
getMinimum()
Returns the minimum value. |
double |
getSingleStep()
Returns the step value. |
double |
getValue()
Returns the value. |
void |
setDecimals(int decimals)
Sets the precision. |
void |
setMaximum(double maximum)
Sets the maximum value. |
void |
setMinimum(double minimum)
Sets the minimum value. |
void |
setRange(double minimum,
double maximum)
Sets the range. |
void |
setSingleStep(double step)
Sets the step value. |
void |
setValue(double value)
Sets the value. |
Signal1<java.lang.Double> |
valueChanged()
A signal that indicates when the value has changed. |
| Methods inherited from class eu.webtoolkit.jwt.WAbstractSpinBox |
|---|
boxPadding, getPrefix, getSuffix, isNativeControl, render, setNativeControl, setPrefix, setSuffix, setText |
| Methods inherited from class eu.webtoolkit.jwt.WLineEdit |
|---|
boxBorder, getCursorPosition, getEchoMode, getMaxLength, getSelectedText, getSelectionStart, getText, getTextSize, getValueText, hasSelectedText, setEchoMode, setMaxLength, setTextSize, setValueText |
| Methods inherited from class eu.webtoolkit.jwt.WFormWidget |
|---|
blurred, changed, enableAjax, focussed, getEmptyText, getLabel, getTabIndex, getValidator, hasFocus, isReadOnly, propagateSetEnabled, refresh, remove, selected, setEmptyText, setEnabled, setFocus, setFocus, setHidden, setReadOnly, setTabIndex, setValidator, validate, validated |
| Methods inherited from class eu.webtoolkit.jwt.WInteractWidget |
|---|
clicked, doubleClicked, enterPressed, escapePressed, gestureChanged, gestureEnded, gestureStarted, isEnabled, keyPressed, keyWentDown, keyWentUp, load, mouseDragged, mouseMoved, mouseWentDown, mouseWentOut, mouseWentOver, mouseWentUp, mouseWheel, setDraggable, setDraggable, setDraggable, setDraggable, touchEnded, touchMoved, touchStarted |
| Methods inherited from class eu.webtoolkit.jwt.WWidget |
|---|
acceptDrops, acceptDrops, addCssRule, addCssRule, addStyleClass, animateHide, animateShow, containsExposed, disable, dropEvent, enable, getDrop, getJsRef, getParent, hide, htmlText, isLayoutSizeAware, layoutSizeChanged, positionAt, positionAt, removeStyleClass, resize, setClearSides, setHeight, setHidden, setLayoutSizeAware, setMargin, setMargin, setMargin, setMargin, setMargin, setOffsets, setOffsets, setOffsets, setOffsets, setOffsets, setToolTip, setVerticalAlignment, setWidth, show, stopAcceptDrops, toggleStyleClass, toggleStyleClass, tr |
| Methods inherited from class eu.webtoolkit.jwt.WObject |
|---|
addChild, getObjectName, setObjectName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WDoubleSpinBox(WContainerWidget parent)
The range is (0.0 - 99.99), the step size 1.0, and the spin box has a precision of 2 decimals.
The initial value is 0.0.
public WDoubleSpinBox()
Calls this((WContainerWidget)null)
| Method Detail |
|---|
public void setMinimum(double minimum)
The default value is 0.0.
public double getMinimum()
setMinimum(double minimum)public void setMaximum(double maximum)
The default value is 99.99.
public double getMaximum()
setMaximum(double maximum)
public void setRange(double minimum,
double maximum)
setMinimum(double minimum),
setMaximum(double maximum)public void setSingleStep(double step)
The default value is 1.0.
public double getSingleStep()
setSingleStep(double step)public void setDecimals(int decimals)
This sets the number of digits after the decimal point shown
The default precision is 2.
public void setValue(double value)
value must be a value between
getMinimum() and
getMaximum().
The default value is 0
public double getValue()
public Signal1<java.lang.Double> valueChanged()
This signal is emitted when setValue() is called.
setValue(double value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||