qx.ui.form
Class Spinner

java.lang.Object
  extended by qx.core.Object
      extended by qx.core.Target
          extended by qx.ui.core.Widget
              extended by qx.ui.core.Parent
                  extended by qx.ui.layout.BoxLayout
                      extended by qx.ui.layout.HorizontalBoxLayout
                          extended by qx.ui.form.Spinner

public class Spinner
extends HorizontalBoxLayout

A spinner is a control that allows you to adjust a numerical value, typically within an allowed range. An obvious example would be to specify the month of a year as a number in the range 1 – 12.

To do so, a spinner encompasses a field to display the current value (a textfield) and controls such as up and down buttons to change that value. The current value can also be changed by editing the display field directly, or using mouse wheel and cursor keys.

To implement the range of a spinner’s value, a Range object is deployed as the manager object. Here you can define the boundaries of the range (min and max properties), the default value, the precision and whether the range should wrap when stepping beyond a border (see the Range documentation for more information). An optional numberFormat property allows you to control the format of how a value can be entered and will be displayed.

A brief, but non-trivial example:

var s = new qx.ui.form.Spinner;
s.set({
  max: 3000,
  min: -3000
});
var nf = new qx.util.format.NumberFormat();
nf.setMaximumFractionDigits(2);
s.setNumberFormat(nf);
s.getManager().setPrecision(2);

A spinner instance without any further properties specified in the constructor or a subsequent set command will appear with default values and behaviour.


Field Summary
 
Fields inherited from class qx.ui.core.Widget
AUTO
 
Constructor Summary
Spinner()
           
Spinner(java.lang.Object vMin)
           
Spinner(java.lang.Object vMin, java.lang.Object vValue)
           
Spinner(java.lang.Object vMin, java.lang.Object vValue, java.lang.Object vMax)
           
 
Method Summary
 void _applyCheckValueFunction(java.lang.Object value, java.lang.Object old)
          Applies changes of the property value of the property checkValueFunction.
 void _applyEditable(boolean value, boolean old)
          Applies changes of the property value of the property editable.
 void _applyIncrementAmount(int value, int old)
          Applies changes of the property value of the property incrementAmount.
 void _applyManager(IRange value, IRange old)
          Applies changes of the property value of the property manager.
 void _applyNumberFormat(NumberFormat value, NumberFormat old)
          Applies changes of the property value of the property numberFormat.
 void _applyWrap(boolean value, boolean old)
          Applies changes of the property value of the property wrap.
 java.lang.Integer _computePreferredInnerHeight()
          Return the prefered inner height for the spinner widget.
 java.lang.Integer _computePreferredInnerWidth()
          Returns the prefered inner width for the spinner widget.
 void _increment()
          Performs a normal increment
 void _onblur(FocusEvent e)
          Callback method for the “blur” event.
 void _onchange(ChangeEvent e)
          Callback method for the “change” event.
 void _oninput(DataEvent e)
          Callback method for the “input” event.
 void _oninterval(Event e)
          Callback method for the “interval” event.
 void _onkeydown(KeyEvent e)
          Callback for “keyDown” event.
 void _onkeypress(KeyEvent e)
          Callback for the “keyPress” event.
 void _onkeyup(KeyEvent e)
          Callback for “keyUp” event.
 void _onmousedown(MouseEvent e)
          Callback method for the “mouseDown” event of the spinner buttons.
 void _onmouseup(MouseEvent e)
          Callback method for the “mouseUp” event of the spinner buttons.
 void _onmousewheel(MouseEvent e)
          Callback method for the “mouseWheel” event.
 void _ontextchange(java.lang.Object e)
           
 void _pageIncrement()
          Performs a page increment
 void _resetIncrements()
          Reset the increments
 int getAmountGrowth()
          Returns the (computed) value of the property amountGrowth.
 java.lang.Object getCheckValueFunction()
          Returns the (computed) value of the property checkValueFunction.
 boolean getEditable()
          Returns the (computed) value of the property editable.
 java.lang.Integer getFirstInterval()
          Returns the (computed) value of the property firstInterval.
 int getIncrementAmount()
          Returns the (computed) value of the property incrementAmount.
 java.lang.Integer getInterval()
          Returns the (computed) value of the property interval.
 IRange getManager()
          Returns the (computed) value of the property manager.
 int getMax()
          Mapping to the “getMax” method of the Range manager
 int getMin()
          Mapping to the “getMin” method of the Range manager
 java.lang.Integer getMinTimer()
          Returns the (computed) value of the property minTimer.
 NumberFormat getNumberFormat()
          Returns the (computed) value of the property numberFormat.
 int getPageIncrementAmount()
          Returns the (computed) value of the property pageIncrementAmount.
 boolean getSelectTextOnInteract()
          Returns the (computed) value of the property selectTextOnInteract.
 java.lang.Integer getTimerDecrease()
          Returns the (computed) value of the property timerDecrease.
 int getValue()
          Mapping to the “getValue” method of the Range manager
 int getWheelIncrementAmount()
          Returns the (computed) value of the property wheelIncrementAmount.
 boolean getWrap()
          Returns the (computed) value of the property wrap.
 void initAmountGrowth(int arg)
          Calls the apply method and dispatches the change event of the property amountGrowth with the default value defined by the class developer.
 void initCheckValueFunction(java.lang.Object arg)
          Calls the apply method and dispatches the change event of the property checkValueFunction with the default value defined by the class developer.
 void initEditable(boolean arg)
          Calls the apply method and dispatches the change event of the property editable with the default value defined by the class developer.
 void initFirstInterval(java.lang.Integer arg)
          Calls the apply method and dispatches the change event of the property firstInterval with the default value defined by the class developer.
 void initIncrementAmount(int arg)
          Calls the apply method and dispatches the change event of the property incrementAmount with the default value defined by the class developer.
 void initInterval(java.lang.Integer arg)
          Calls the apply method and dispatches the change event of the property interval with the default value defined by the class developer.
 void initManager(IRange arg)
          Calls the apply method and dispatches the change event of the property manager with the default value defined by the class developer.
 void initMinTimer(java.lang.Integer arg)
          Calls the apply method and dispatches the change event of the property minTimer with the default value defined by the class developer.
 void initNumberFormat(NumberFormat arg)
          Calls the apply method and dispatches the change event of the property numberFormat with the default value defined by the class developer.
 void initPageIncrementAmount(int arg)
          Calls the apply method and dispatches the change event of the property pageIncrementAmount with the default value defined by the class developer.
 void initSelectTextOnInteract(boolean arg)
          Calls the apply method and dispatches the change event of the property selectTextOnInteract with the default value defined by the class developer.
 void initTimerDecrease(java.lang.Integer arg)
          Calls the apply method and dispatches the change event of the property timerDecrease with the default value defined by the class developer.
 void initWheelIncrementAmount(int arg)
          Calls the apply method and dispatches the change event of the property wheelIncrementAmount with the default value defined by the class developer.
 void initWrap(boolean arg)
          Calls the apply method and dispatches the change event of the property wrap with the default value defined by the class developer.
 boolean isEditable()
          Check whether the (computed) value of the boolean property editable equals true.
 boolean isSelectTextOnInteract()
          Check whether the (computed) value of the boolean property selectTextOnInteract equals true.
 boolean isWrap()
          Check whether the (computed) value of the boolean property wrap equals true.
 void resetAmountGrowth()
          Resets the user value of the property amountGrowth.
 void resetCheckValueFunction()
          Resets the user value of the property checkValueFunction.
 void resetEditable()
          Resets the user value of the property editable.
 void resetFirstInterval()
          Resets the user value of the property firstInterval.
 void resetIncrementAmount()
          Resets the user value of the property incrementAmount.
 void resetInterval()
          Resets the user value of the property interval.
 void resetManager()
          Resets the user value of the property manager.
 void resetMinTimer()
          Resets the user value of the property minTimer.
 void resetNumberFormat()
          Resets the user value of the property numberFormat.
 void resetPageIncrementAmount()
          Resets the user value of the property pageIncrementAmount.
 void resetSelectTextOnInteract()
          Resets the user value of the property selectTextOnInteract.
 void resetTimerDecrease()
          Resets the user value of the property timerDecrease.
 void resetValue()
          Mapping to the “resetValue” method of the Range manager
 void resetWheelIncrementAmount()
          Resets the user value of the property wheelIncrementAmount.
 void resetWrap()
          Resets the user value of the property wrap.
 void setAmountGrowth(int arg)
          Sets the user value of the property amountGrowth.
 void setCheckValueFunction(java.lang.Object arg)
          Sets the user value of the property checkValueFunction.
 void setEditable(boolean arg)
          Sets the user value of the property editable.
 void setFirstInterval(java.lang.Integer arg)
          Sets the user value of the property firstInterval.
 void setIncrementAmount(int arg)
          Sets the user value of the property incrementAmount.
 void setInterval(java.lang.Integer arg)
          Sets the user value of the property interval.
 void setManager(IRange arg)
          Sets the user value of the property manager.
 int setMax(int vMax)
          Mapping to the “setMax” method of the Range manager
 int setMin(int vMin)
          Mapping to the “setMin” method of the Range manager
 void setMinTimer(java.lang.Integer arg)
          Sets the user value of the property minTimer.
 void setNumberFormat(NumberFormat arg)
          Sets the user value of the property numberFormat.
 void setPageIncrementAmount(int arg)
          Sets the user value of the property pageIncrementAmount.
 void setSelectTextOnInteract(boolean arg)
          Sets the user value of the property selectTextOnInteract.
 void setTimerDecrease(java.lang.Integer arg)
          Sets the user value of the property timerDecrease.
 void setValue(int nValue)
          Mapping to the “setValue” method of the Range manager
 void setWheelIncrementAmount(int arg)
          Sets the user value of the property wheelIncrementAmount.
 void setWrap(boolean arg)
          Sets the user value of the property wrap.
 boolean toggleEditable()
          Toggles the (computed) value of the boolean property editable.
 boolean toggleSelectTextOnInteract()
          Toggles the (computed) value of the boolean property selectTextOnInteract.
 boolean toggleWrap()
          Toggles the (computed) value of the boolean property wrap.
 
Methods inherited from class qx.ui.layout.BoxLayout
_applyHorizontalChildrenAlign, _applyOrientation, _applyReverseChildrenOrder, _applySpacing, _applyStretchChildrenOrthogonalAxis, _applyUseAdvancedFlexAllocation, _applyVerticalChildrenAlign, _computeAccumulatedChildrenOuterHeight, _computeAccumulatedChildrenOuterWidth, _createLayoutImpl, _doLayout, _doLayoutOrder, _invalidateLayoutMode, _recomputeChildrenStretchingX, _recomputeChildrenStretchingY, _updateLayoutMode, getHorizontalChildrenAlign, getLayoutMode, getOrientation, getReverseChildrenOrder, getSpacing, getStretchChildrenOrthogonalAxis, getUseAdvancedFlexAllocation, getVerticalChildrenAlign, initHorizontalChildrenAlign, initOrientation, initReverseChildrenOrder, initSpacing, initStretchChildrenOrthogonalAxis, initUseAdvancedFlexAllocation, initVerticalChildrenAlign, isHorizontal, isReverseChildrenOrder, isStretchChildrenOrthogonalAxis, isUseAdvancedFlexAllocation, isVertical, resetHorizontalChildrenAlign, resetOrientation, resetReverseChildrenOrder, resetSpacing, resetStretchChildrenOrthogonalAxis, resetUseAdvancedFlexAllocation, resetVerticalChildrenAlign, setHorizontalChildrenAlign, setOrientation, setReverseChildrenOrder, setSpacing, setStretchChildrenOrthogonalAxis, setUseAdvancedFlexAllocation, setVerticalChildrenAlign, toggleReverseChildrenOrder, toggleStretchChildrenOrthogonalAxis, toggleUseAdvancedFlexAllocation
 
Methods inherited from class qx.ui.core.Parent
_addChildrenToLayoutQueue, _addChildrenToStateQueue, _addChildToChildrenQueue, _afterAppear, _afterDisappear, _afterInsertDom, _afterRemoveDom, _applyActiveChild, _applyFocusedChild, _applyFocusHandler, _beforeAppear, _beforeDisappear, _beforeInsertDom, _beforeRemoveDom, _changeInnerHeight, _changeInnerWidth, _computeVisibleChildren, _flushChildrenQueue, _handleDisplayableCustom, _layoutChild, _layoutPost, _onfocuskeyevent, _recursiveAppearanceThemeUpdate, _removeChildFromChildrenQueue, activateFocusRoot, add, addAfter, addAt, addAtBegin, addAtEnd, addBefore, contains, forEachChild, forEachVisibleChild, getActiveChild, getChildren, getChildrenLength, getFirstActiveChild, getFirstChild, getFirstVisibleChild, getFocusedChild, getFocusHandler, getFocusRoot, getInnerHeightForChild, getInnerWidthForChild, getLastActiveChild, getLastChild, getLastVisibleChild, getLayoutImpl, getVisibleChildrenLength, hasChildren, hasVisibleChildren, indexOf, initActiveChild, initFocusedChild, initFocusHandler, isEmpty, isFocusRoot, isVisibleEmpty, recursiveAddToStateQueue, remapChildrenHandlingTo, remove, removeAll, removeAt, resetActiveChild, resetFocusedChild, resetFocusHandler, setActiveChild, setFocusedChild, setFocusHandler
 
Methods inherited from class qx.ui.core.Widget
_applyAppearance, _applyBackgroundColor, _applyBackgroundImage, _applyBackgroundRepeat, _applyBorder, _applyBottom, _applyCapture, _applyClip, _applyCommand, _applyCursor, _applyDisplay, _applyElement, _applyElementData, _applyEnabled, _applyFocused, _applyFont, _applyHeight, _applyHideFocus, _applyHtmlAttributes, _applyHtmlProperties, _applyLeft, _applyMarginBottom, _applyMarginLeft, _applyMarginRight, _applyMarginTop, _applyMaxHeight, _applyMaxWidth, _applyMinHeight, _applyMinWidth, _applyOpacity, _applyOverflow, _applyPaddingBottom, _applyPaddingLeft, _applyPaddingRight, _applyPaddingTop, _applyParent, _applyRight, _applySelectable, _applyStateStyleFocus, _applyStyleProperties, _applyTabIndex, _applyTextColor, _applyTop, _applyVisibility, _applyWidth, _applyZIndex, _checkParent, _compileClipString, _computeBoxHeight, _computeBoxHeightFallback, _computeBoxWidth, _computeBoxWidthFallback, _computeDisplayable, _computeFrameHeight, _computeFrameWidth, _computeHasAutoX, _computeHasAutoY, _computeHasFlexX, _computeHasFlexY, _computeHasPercentX, _computeHasPercentY, _computeInnerHeight, _computeInnerWidth, _computeOuterHeight, _computeOuterWidth, _computePreferredBoxHeight, _computePreferredBoxWidth, _computeValuePercentX, _computeValuePercentXLimit, _computeValuePercentY, _computeValuePercentYLimit, _computeValuePixel, _computeValuePixelLimit, _createElementImpl, _evalUnitsPixelPercent, _evalUnitsPixelPercentAuto, _evalUnitsPixelPercentAutoFlex, _flushJobQueue, _generateHtmlId, _getTargetNode, _handleDisplayable, _invalidateFrameDimensions, _invalidatePreferredInnerDimensions, _queueBorder, _recomputeFlexX, _recomputeFlexY, _recomputePercentX, _recomputePercentY, _recomputeRangeX, _recomputeRangeY, _recomputeStretchingX, _recomputeStretchingY, _renderAppearance, _renderOverflow, _resetAppearanceThemeWrapper, _styleBackgroundColor, _styleBackgroundImage, _styleFromMap, _unitDetectionPixelPercent, _unitDetectionPixelPercentAuto, _unitDetectionPixelPercentAutoFlex, _unstyleFromArray, _visualizeBlur, _visualizeFocus, _visualPropertyCheck, addState, addToDocument, addToJobQueue, addToLayoutChanges, addToQueue, addToQueueRuntime, addToStateQueue, auto, blur, connect, contains, disconnect, execute, focus, getAllowStretchX, getAllowStretchY, getAnonymous, getAppearance, getBackgroundColor, getBackgroundImage, getBackgroundRepeat, getBorder, getBottom, getBottomValue, getCapture, getClientHeight, getClientWidth, getClipHeight, getClipLeft, getClipTop, getClipWidth, getCommand, getContextMenu, getCursor, getDisplay, getDropDataTypes, getElement, getEnabled, getEnableElementFocus, getFocused, getFont, getHeight, getHeightValue, getHideFocus, getHorizontalAlign, getHtmlAttribute, getHtmlProperty, getLeft, getLeftValue, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMaxHeight, getMaxHeightValue, getMaxWidth, getMaxWidthValue, getMinHeight, getMinHeightValue, getMinWidth, getMinWidthValue, getNeededHeight, getNeededWidth, getNextActiveSibling, getNextSibling, getNextVisibleSibling, getOffsetHeight, getOffsetLeft, getOffsetTop, getOffsetWidth, getOpacity, getOverflow, getOverflowX, getOverflowY, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getParent, getPreviousActiveSibling, getPreviousSibling, getPreviousVisibleSibling, getRight, getRightValue, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getSelectable, getStyleProperty, getSupportsDropMethod, getTabIndex, getTextColor, getToolTip, getTop, getTopLevelWidget, getTopValue, getVerticalAlign, getVisibility, getVisibleChildren, getWidth, getWidthValue, getZIndex, hasState, hide, indexOf, initAllowStretchX, initAllowStretchY, initAnonymous, initAppearance, initBackgroundColor, initBackgroundImage, initBackgroundRepeat, initBorder, initBottom, initCapture, initClipHeight, initClipLeft, initClipTop, initClipWidth, initCommand, initContextMenu, initCursor, initDisplay, initDropDataTypes, initElement, initEnabled, initEnableElementFocus, initFocused, initFont, initHeight, initHideFocus, initHorizontalAlign, initLeft, initMarginBottom, initMarginLeft, initMarginRight, initMarginTop, initMaxHeight, initMaxWidth, initMinHeight, initMinWidth, initOpacity, initOverflow, initPaddingBottom, initPaddingLeft, initPaddingRight, initPaddingTop, initParent, initRight, initSelectable, initSupportsDropMethod, initTabIndex, initTextColor, initToolTip, initTop, initVerticalAlign, initVisibility, initWidth, initZIndex, isAllowStretchX, isAllowStretchY, isAnonymous, isAppearRelevant, isCapture, isCreated, isDisplay, isDisplayable, isEnabled, isEnableElementFocus, isFirstChild, isFirstVisibleChild, isFocusable, isFocused, isHideFocus, isLastChild, isLastVisibleChild, isMaterialized, isSeeable, isSelectable, isVisibility, moveSelfAfter, moveSelfBefore, moveSelfToBegin, moveSelfToEnd, pack, removeHtmlAttribute, removeHtmlProperty, removeState, removeStyleProperty, renderPadding, resetAlign, resetAllowStretchX, resetAllowStretchY, resetAnonymous, resetAppearance, resetBackgroundColor, resetBackgroundImage, resetBackgroundRepeat, resetBorder, resetBottom, resetCapture, resetClip, resetClipDimension, resetClipHeight, resetClipLeft, resetClipLocation, resetClipTop, resetClipWidth, resetCommand, resetContextMenu, resetCursor, resetDimension, resetDisplay, resetDropDataTypes, resetEdge, resetElement, resetEnabled, resetEnableElementFocus, resetFocused, resetFont, resetHeight, resetHeights, resetHideFocus, resetHorizontalAlign, resetLeft, resetLocation, resetMargin, resetMarginBottom, resetMarginLeft, resetMarginRight, resetMarginTop, resetMaxHeight, resetMaxWidth, resetMinHeight, resetMinWidth, resetOpacity, resetOverflow, resetPadding, resetPaddingBottom, resetPaddingLeft, resetPaddingRight, resetPaddingTop, resetParent, resetRight, resetSelectable, resetSpace, resetSupportsDropMethod, resetTabIndex, resetTextColor, resetToolTip, resetTop, resetVerticalAlign, resetVisibility, resetWidth, resetWidths, resetZIndex, scrollIntoView, scrollIntoViewX, scrollIntoViewY, setAlign, setAllowStretchX, setAllowStretchY, setAnonymous, setAppearance, setBackgroundColor, setBackgroundImage, setBackgroundRepeat, setBorder, setBottom, setCapture, setClip, setClipDimension, setClipHeight, setClipLeft, setClipLocation, setClipTop, setClipWidth, setCommand, setContextMenu, setCursor, setDimension, setDisplay, setDropDataTypes, setEdge, setElement, setEnabled, setEnableElementFocus, setFocused, setFont, setHeight, setHeights, setHideFocus, setHorizontalAlign, setHtmlAttribute, setHtmlProperty, setLeft, setLocation, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOpacity, setOverflow, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setParent, setRight, setScrollLeft, setScrollTop, setSelectable, setSpace, setStyleProperty, setSupportsDropMethod, setTabIndex, setTextColor, setToolTip, setTop, setVerticalAlign, setVisibility, setWidth, setWidths, setZIndex, show, supportsDrop, toggleAllowStretchX, toggleAllowStretchY, toggleAnonymous, toggleCapture, toggleDisplay, toggleEnabled, toggleEnableElementFocus, toggleFocused, toggleHideFocus, toggleSelectable, toggleVisibility
 
Methods inherited from class qx.core.Target
_dispatchEvent, addChangeSelectionListener, addChangeValueListener, addEventListener, addExecuteListener, addJavaEventListener, createDispatchChangeEvent, createDispatchDataEvent, createDispatchEvent, dispatchEvent, hasEventListeners, removeEventListener
 
Methods inherited from class qx.core.Object
_disposeFields, _disposeObjectDeep, _disposeObjects, base, dispose, get, getDisposed, isDisposed, reset, self, set, toHashCode, toString_
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Spinner

public Spinner()

Spinner

public Spinner(java.lang.Object vMin)

Spinner

public Spinner(java.lang.Object vMin,
               java.lang.Object vValue)

Spinner

public Spinner(java.lang.Object vMin,
               java.lang.Object vValue,
               java.lang.Object vMax)
Method Detail

_applyCheckValueFunction

public void _applyCheckValueFunction(java.lang.Object value,
                                     java.lang.Object old)

Applies changes of the property value of the property checkValueFunction.

For further details take a look at the property definition: _applyCheckValueFunction(java.lang.Object, java.lang.Object).


_applyEditable

public void _applyEditable(boolean value,
                           boolean old)

Applies changes of the property value of the property editable.

For further details take a look at the property definition: _applyEditable(boolean, boolean).


_applyIncrementAmount

public void _applyIncrementAmount(int value,
                                  int old)

Applies changes of the property value of the property incrementAmount.

For further details take a look at the property definition: _applyIncrementAmount(int, int).


_applyManager

public void _applyManager(IRange value,
                          IRange old)

Applies changes of the property value of the property manager.

For further details take a look at the property definition: _applyManager(qx.util.range.IRange, qx.util.range.IRange).


_applyNumberFormat

public void _applyNumberFormat(NumberFormat value,
                               NumberFormat old)

Applies changes of the property value of the property numberFormat.

For further details take a look at the property definition: _applyNumberFormat(qx.util.format.NumberFormat, qx.util.format.NumberFormat).


_applyWrap

public void _applyWrap(boolean value,
                       boolean old)

Applies changes of the property value of the property wrap.

For further details take a look at the property definition: _applyWrap(boolean, boolean).


_computePreferredInnerHeight

public java.lang.Integer _computePreferredInnerHeight()

Return the prefered inner height for the spinner widget. Currently this method returns 14

Overrides:
_computePreferredInnerHeight in class Parent

_computePreferredInnerWidth

public java.lang.Integer _computePreferredInnerWidth()

Returns the prefered inner width for the spinner widget. Currently this method returns 50.

Overrides:
_computePreferredInnerWidth in class Parent

_increment

public void _increment()

Performs a normal increment


_onblur

public void _onblur(FocusEvent e)

Callback method for the “blur” event.

Calls the method of the “checkValueFunction” property


_onchange

public void _onchange(ChangeEvent e)

Callback method for the “change” event.

Sets the value of the text field and enables/disables the up-/down-buttons of the min-/max-value are reached (additionally stops the timer of the min-/max-boundaries are reached) Dispatched the “change” event.


_oninput

public void _oninput(DataEvent e)

Callback method for the “input” event.

Delegates the further processing to the method hold by the “checkValue” property.


_oninterval

public void _oninterval(Event e)

Callback method for the “interval” event.

Stops the timer and sets a new interval. Executes the increment of the spinner depending on the intervalMode and restarts the timer with the new interval.


_onkeydown

public void _onkeydown(KeyEvent e)

Callback for “keyDown” event.

Controls the interval mode (“single” or “page”) and the interval increase by detecting “Up”/“Down” and “PageUp”/“PageDown” keys. Starting a timer to control the incrementing of the spinner value.


_onkeypress

public void _onkeypress(KeyEvent e)

Callback for the “keyPress” event.

Perform action when “Enter” (without “Alt”), control keys and numeric (0–9) keys are pressed. Suppress all key events for events without modifiers.


_onkeyup

public void _onkeyup(KeyEvent e)

Callback for “keyUp” event.

Detecting “Up”/“Down” and “PageUp”/“PageDown” keys. If detected the interval mode and interval increase get resetted and the timer for the control of the increase of the spinner value gets stopped.


_onmousedown

public void _onmousedown(MouseEvent e)

Callback method for the “mouseDown” event of the spinner buttons.

State handling, registering event listeners at the spinner button and invoking the increment management (resets increments, setup and start timer etc.).


_onmouseup

public void _onmouseup(MouseEvent e)

Callback method for the “mouseUp” event of the spinner buttons.

State handling, removing event listeners at the spinner button, focusing the text field and resetting the interval management (stopping timer, resetting interval increase).


_onmousewheel

public void _onmousewheel(MouseEvent e)

Callback method for the “mouseWheel” event.

Delegates the in-/decrementing to the manager and selects the text field.


_ontextchange

public void _ontextchange(java.lang.Object e)

_pageIncrement

public void _pageIncrement()

Performs a page increment


_resetIncrements

public void _resetIncrements()

Reset the increments


getAmountGrowth

public int getAmountGrowth()

Returns the (computed) value of the property amountGrowth.

For further details take a look at the property definition: amountGrowth.


getCheckValueFunction

public java.lang.Object getCheckValueFunction()

Returns the (computed) value of the property checkValueFunction.

For further details take a look at the property definition: checkValueFunction.


getEditable

public boolean getEditable()

Returns the (computed) value of the property editable.

For further details take a look at the property definition: editable.


getFirstInterval

public java.lang.Integer getFirstInterval()

Returns the (computed) value of the property firstInterval.

For further details take a look at the property definition: firstInterval.


getIncrementAmount

public int getIncrementAmount()

Returns the (computed) value of the property incrementAmount.

For further details take a look at the property definition: incrementAmount.


getInterval

public java.lang.Integer getInterval()

Returns the (computed) value of the property interval.

For further details take a look at the property definition: interval.


getManager

public IRange getManager()

Returns the (computed) value of the property manager.

For further details take a look at the property definition: manager.


getMax

public int getMax()

Mapping to the “getMax” method of the Range manager


getMin

public int getMin()

Mapping to the “getMin” method of the Range manager


getMinTimer

public java.lang.Integer getMinTimer()

Returns the (computed) value of the property minTimer.

For further details take a look at the property definition: minTimer.


getNumberFormat

public NumberFormat getNumberFormat()

Returns the (computed) value of the property numberFormat.

For further details take a look at the property definition: numberFormat.


getPageIncrementAmount

public int getPageIncrementAmount()

Returns the (computed) value of the property pageIncrementAmount.

For further details take a look at the property definition: pageIncrementAmount.


getSelectTextOnInteract

public boolean getSelectTextOnInteract()

Returns the (computed) value of the property selectTextOnInteract.

For further details take a look at the property definition: selectTextOnInteract.


getTimerDecrease

public java.lang.Integer getTimerDecrease()

Returns the (computed) value of the property timerDecrease.

For further details take a look at the property definition: timerDecrease.


getValue

public int getValue()

Mapping to the “getValue” method of the Range manager


getWheelIncrementAmount

public int getWheelIncrementAmount()

Returns the (computed) value of the property wheelIncrementAmount.

For further details take a look at the property definition: wheelIncrementAmount.


getWrap

public boolean getWrap()

Returns the (computed) value of the property wrap.

For further details take a look at the property definition: wrap.


initAmountGrowth

public void initAmountGrowth(int arg)

Calls the apply method and dispatches the change event of the property amountGrowth with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: amountGrowth.


initCheckValueFunction

public void initCheckValueFunction(java.lang.Object arg)

Calls the apply method and dispatches the change event of the property checkValueFunction with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: checkValueFunction.


initEditable

public void initEditable(boolean arg)

Calls the apply method and dispatches the change event of the property editable with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: editable.


initFirstInterval

public void initFirstInterval(java.lang.Integer arg)

Calls the apply method and dispatches the change event of the property firstInterval with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: firstInterval.


initIncrementAmount

public void initIncrementAmount(int arg)

Calls the apply method and dispatches the change event of the property incrementAmount with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: incrementAmount.


initInterval

public void initInterval(java.lang.Integer arg)

Calls the apply method and dispatches the change event of the property interval with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: interval.


initManager

public void initManager(IRange arg)

Calls the apply method and dispatches the change event of the property manager with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: manager.


initMinTimer

public void initMinTimer(java.lang.Integer arg)

Calls the apply method and dispatches the change event of the property minTimer with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: minTimer.


initNumberFormat

public void initNumberFormat(NumberFormat arg)

Calls the apply method and dispatches the change event of the property numberFormat with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: numberFormat.


initPageIncrementAmount

public void initPageIncrementAmount(int arg)

Calls the apply method and dispatches the change event of the property pageIncrementAmount with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: pageIncrementAmount.


initSelectTextOnInteract

public void initSelectTextOnInteract(boolean arg)

Calls the apply method and dispatches the change event of the property selectTextOnInteract with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: selectTextOnInteract.


initTimerDecrease

public void initTimerDecrease(java.lang.Integer arg)

Calls the apply method and dispatches the change event of the property timerDecrease with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: timerDecrease.


initWheelIncrementAmount

public void initWheelIncrementAmount(int arg)

Calls the apply method and dispatches the change event of the property wheelIncrementAmount with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: wheelIncrementAmount.


initWrap

public void initWrap(boolean arg)

Calls the apply method and dispatches the change event of the property wrap with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: wrap.


isEditable

public boolean isEditable()

Check whether the (computed) value of the boolean property editable equals true.

For further details take a look at the property definition: editable.


isSelectTextOnInteract

public boolean isSelectTextOnInteract()

Check whether the (computed) value of the boolean property selectTextOnInteract equals true.

For further details take a look at the property definition: selectTextOnInteract.


isWrap

public boolean isWrap()

Check whether the (computed) value of the boolean property wrap equals true.

For further details take a look at the property definition: wrap.


resetAmountGrowth

public void resetAmountGrowth()

Resets the user value of the property amountGrowth.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: amountGrowth.


resetCheckValueFunction

public void resetCheckValueFunction()

Resets the user value of the property checkValueFunction.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: checkValueFunction.


resetEditable

public void resetEditable()

Resets the user value of the property editable.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: editable.


resetFirstInterval

public void resetFirstInterval()

Resets the user value of the property firstInterval.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: firstInterval.


resetIncrementAmount

public void resetIncrementAmount()

Resets the user value of the property incrementAmount.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: incrementAmount.


resetInterval

public void resetInterval()

Resets the user value of the property interval.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: interval.


resetManager

public void resetManager()

Resets the user value of the property manager.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: manager.


resetMinTimer

public void resetMinTimer()

Resets the user value of the property minTimer.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: minTimer.


resetNumberFormat

public void resetNumberFormat()

Resets the user value of the property numberFormat.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: numberFormat.


resetPageIncrementAmount

public void resetPageIncrementAmount()

Resets the user value of the property pageIncrementAmount.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: pageIncrementAmount.


resetSelectTextOnInteract

public void resetSelectTextOnInteract()

Resets the user value of the property selectTextOnInteract.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: selectTextOnInteract.


resetTimerDecrease

public void resetTimerDecrease()

Resets the user value of the property timerDecrease.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: timerDecrease.


resetValue

public void resetValue()

Mapping to the “resetValue” method of the Range manager


resetWheelIncrementAmount

public void resetWheelIncrementAmount()

Resets the user value of the property wheelIncrementAmount.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: wheelIncrementAmount.


resetWrap

public void resetWrap()

Resets the user value of the property wrap.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: wrap.


setAmountGrowth

public void setAmountGrowth(int arg)

Sets the user value of the property amountGrowth.

For further details take a look at the property definition: amountGrowth.


setCheckValueFunction

public void setCheckValueFunction(java.lang.Object arg)

Sets the user value of the property checkValueFunction.

For further details take a look at the property definition: checkValueFunction.


setEditable

public void setEditable(boolean arg)

Sets the user value of the property editable.

For further details take a look at the property definition: editable.


setFirstInterval

public void setFirstInterval(java.lang.Integer arg)

Sets the user value of the property firstInterval.

For further details take a look at the property definition: firstInterval.


setIncrementAmount

public void setIncrementAmount(int arg)

Sets the user value of the property incrementAmount.

For further details take a look at the property definition: incrementAmount.


setInterval

public void setInterval(java.lang.Integer arg)

Sets the user value of the property interval.

For further details take a look at the property definition: interval.


setManager

public void setManager(IRange arg)

Sets the user value of the property manager.

For further details take a look at the property definition: manager.


setMax

public int setMax(int vMax)

Mapping to the “setMax” method of the Range manager


setMin

public int setMin(int vMin)

Mapping to the “setMin” method of the Range manager


setMinTimer

public void setMinTimer(java.lang.Integer arg)

Sets the user value of the property minTimer.

For further details take a look at the property definition: minTimer.


setNumberFormat

public void setNumberFormat(NumberFormat arg)

Sets the user value of the property numberFormat.

For further details take a look at the property definition: numberFormat.


setPageIncrementAmount

public void setPageIncrementAmount(int arg)

Sets the user value of the property pageIncrementAmount.

For further details take a look at the property definition: pageIncrementAmount.


setSelectTextOnInteract

public void setSelectTextOnInteract(boolean arg)

Sets the user value of the property selectTextOnInteract.

For further details take a look at the property definition: selectTextOnInteract.


setTimerDecrease

public void setTimerDecrease(java.lang.Integer arg)

Sets the user value of the property timerDecrease.

For further details take a look at the property definition: timerDecrease.


setValue

public void setValue(int nValue)

Mapping to the “setValue” method of the Range manager


setWheelIncrementAmount

public void setWheelIncrementAmount(int arg)

Sets the user value of the property wheelIncrementAmount.

For further details take a look at the property definition: wheelIncrementAmount.


setWrap

public void setWrap(boolean arg)

Sets the user value of the property wrap.

For further details take a look at the property definition: wrap.


toggleEditable

public boolean toggleEditable()

Toggles the (computed) value of the boolean property editable.

For further details take a look at the property definition: editable.


toggleSelectTextOnInteract

public boolean toggleSelectTextOnInteract()

Toggles the (computed) value of the boolean property selectTextOnInteract.

For further details take a look at the property definition: selectTextOnInteract.


toggleWrap

public boolean toggleWrap()

Toggles the (computed) value of the boolean property wrap.

For further details take a look at the property definition: wrap.



Copyright © 2008 1&1. All Rights Reserved.