Sydney

Class NumericText

Object
   |
   +--Widget
         |
         +--Text
               |
               +--ValidatingText
                     |
                     +--NumericText

class NumericText
extends ValidatingText

Defined in form_widgets.js


 
Fields inherited from class ValidatingText
   
Fields inherited from class Text
   
Fields inherited from class Widget
html, id, parent, layoutData, eventTable
 
Constructor Summary
NumericText (<boolean> onlyIntegers, <number> lowerBound, <number> upperBound, <boolean> setMaxLength)
            Creates a text widget that will force the user to only enter valid numeric strings.
 
Method Summary
 number getMaximum()
           Returns the current maximum acceptable value for this text box.
 number getMinimum()
           Returns the current minimum acceptable value for this text box.
 boolean isIntegerOnly()
           Returns true if this text box only accepts integers, and false otherwise.
 void setBounds(<number> min, <number> max, <boolean> updateTextLength)
           Sets the bounds of this text box to [min, max].
<static> function makePrototypes()
          
 
Methods inherited from class ValidatingText
setTextTransformer, _handleKeyPress, _handleChange, isUpper, isLower, isDigit, isSpace, isAlpha, isAlphaNum
   
Methods inherited from class Text
getMaxLength, getText, setMaxLength, setText
   
Methods inherited from class Widget
installContextMenu, installDefaultContextMenu, uninstallContextMenu, isDraggable, setDraggable, addEventListener, blur, createEventTable, dispose, focus, getAbsoluteBottom, getAbsoluteLeft, getAbsoluteRight, getAbsoluteTop, getBottom, getBounds, getClientHeight, getClientWidth, getCorner, getHeight, getLeft, getPixelsPerEm, getRight, getToolTip, getTop, getWidth, isDisposed, isEnabled, layout, moveToAbsolute, moveTo, raiseEvent, registerEventType, removeEventListener, setAbsoluteBottom, setAbsoluteLeft, setAbsoluteRight, setAbsoluteTop, setBottom, setEnabled, setHeight, setLeft, setRight, setToolTip, setTop, setWidth, setParent, toString
 

Constructor Detail

NumericText

function NumericText(<boolean> onlyIntegers, <number> lowerBound, <number> upperBound, <boolean> setMaxLength)
Method Detail

getMaximum

number getMaximum()

getMinimum

number getMinimum()

isIntegerOnly

boolean isIntegerOnly()

setBounds

void setBounds(<number> min, <number> max, <boolean> updateTextLength)

makePrototypes

<static> function makePrototypes()

Sydney

SourceForge.net Logo