OverviewSingleDeprecatedPropertiesEventsXSL Parameters

jsx3.gui

class NumberInput

Object
->jsx3.lang.Object
  ->jsx3.app.Model
    ->jsx3.gui.Painted
      ->jsx3.gui.Block
        ->jsx3.gui.TextBox
          ->jsx3.gui.NumberInput

All Implemented Interfaces:

jsx3.gui.Form, jsx3.gui.Interactive, jsx3.util.EventDispatcher

class NumberInput
extends jsx3.gui.TextBox
A form element (text box) that stores a number value. The value can be formatted according to a number format. User input is parsed according to the number format before setting the value of the form element.

Since:

3.7

See Also:

jsx3.util.NumberFormat, jsx3.app.Server.getLocale()

Method Summary
String | int
Returns the number format as set with setFormat().
void
setFormat(format : String | int)
Sets the format of this number input.
Methods Inherited From jsx3.gui.TextBox
beep, doValidate, formatValue, getDefaultValue, getMaxLength, getReadonly, getSelection, getType, getValidationExpression, getValidationType, getValue, getWrap, paint, parseValue, setDefaultValue, setMaxLength, setOverflow, setReadonly, setSelection, setType, setValidationExpression, setValidationType, setValue, setWrap
Methods Inherited From jsx3.gui.Form
doKeyBinding, doReset, getDisabledBackgroundColor, getDisabledColor, getEnabled, getKeyBinding, getRequired, getValidationState, setDisabledBackgroundColor, setDisabledColor, setEnabled, setKeyBinding, setRequired, setValidationState
Methods Inherited From jsx3.gui.Block
getBackground, getBackgroundColor, getBorder, getCDFAttribute, getCDFId, getCSSOverride, getClassName, getColor, getCursor, getDimensions, getDisplay, getFontName, getFontSize, getFontWeight, getHeight, getIndex, getLeft, getMargin, getOverflow, getPadding, getRelativePosition, getTagName, getText, getTextAlign, getTip, getTop, getVisibility, getWidth, getZIndex, hideMask, setBackground, setBackgroundColor, setBorder, setCDFAttribute, setCDFId, setCSSOverride, setClassName, setColor, setCursor, setDimensions, setDisplay, setFontName, setFontSize, setFontWeight, setHeight, setIndex, setLeft, setMargin, setPadding, setRelativePosition, setTagName, setText, setTextAlign, setTip, setTop, setVisibility, setWidth, setZIndex, showMask
Methods Inherited From jsx3.gui.Interactive
doEvent, getCanDrag, getCanDrop, getCanMove, getCanSpy, getEvent, getEvents, getMenu, hasEvent, registerHotKey, removeEvent, removeEvents, setCanDrag, setCanDrop, setCanMove, setCanSpy, setEvent, setMenu, setSpyStyles, showSpy
Methods Inherited From jsx3.gui.Painted
focus, getAbsolutePosition, getAttribute, getAttributes, getRendered, insertHTML, onAfterPaint, onAfterRestoreView, paintChild, paintChildren, recalcBox, removeAttribute, removeAttributes, repaint, setAttribute
Methods Inherited From jsx3.app.Model
adoptChild, assembleFromXML, doClone, findAncestor, findDescendants, getAncestorOfName, getAncestorOfType, getChild, getChildIndex, getChildren, getDescendantOfName, getDescendantsOfType, getDynamicProperty, getFirstChild, getFirstChildOfType, getHelpId, getId, getLastChild, getLoadType, getMetaValue, getNS, getName, getNextSibling, getParent, getPersistence, getPreviousSibling, getServer, getUriResolver, insertBefore, load, loadAndCache, loadXML, onAfterAssemble, onAfterAttach, onBeforeAssemble, onChangeServer, onChildAdded, onDestroy, onRemoveChild, onSetChild, onSetParent, removeChild, removeChildren, selectDescendants, setChild, setDynamicProperty, setHelpId, setLoadType, setMetaValue, setName, setPersistence, toString, toXML, toXMLDoc, toXMLElm
Methods Inherited From jsx3.util.EventDispatcher
publish, subscribe, unsubscribe, unsubscribeAll
Methods Inherited From jsx3.lang.Object
clone, equals, eval, getClass, getInstanceOf, getInstanceOfClass, getInstanceOfPackage, instanceOf, isInstanceOf, isSubclassOf, jsxmix, jsxsuper, jsxsupermix, setInstanceOf
Method Detail

getFormat

String | int getFormat()
Returns the number format as set with setFormat().

Returns:

 

See Also:

setFormat()

setFormat

void setFormat(format : String | int)
Sets the format of this number input. The format should conform to the syntax of jsx3.util.NumberFormat. The provided format may also be an integer, in which case it is intepreted as one of of the fields of NumberFormat - NUMBER, INTEGER, or CURRENCY - and the displayed format will be localized accordingly.

Parameters:

formatthe new format.

See Also:

jsx3.util.NumberFormat, jsx3.util.NumberFormat.NUMBER, jsx3.util.NumberFormat.INTEGER, jsx3.util.NumberFormat.CURRENCY