MoreMotion Face API

Class NumberBox

Object
   |
   +--MoreMotionObject
         |
         +--ProcessField
               |
               +--NumberBox

class NumberBox
extends ProcessField


Represents a NumberBox Process Field that wraps a TEXT INPUT element and a HIDDEN INPUT element to provide a controlled input field for entering Number data.

While the TEXT INPUT field contains the formatted value, the HIDDEN INPUT contains the pure number value to send to the server. Each time the user types in a new character this class controls immediatelly wheter it is a allowed character and reformats the value in the input field while transfering the pure number equivalance of it to the HIDDEN INPUT ready to send to the server.
Defined in Number.js


Field Summary
 Object DS
          Decimal Separator
 HTMLElement elm
          The HTMLElement object of the TEXT INPUT Element that is visible and editable.
 Object GS
          Grouping separator
 Object props
          NumberBox Properties Object.
 HTMLElement selm
          The object that contains the pure number value to send to the server.
   
Fields inherited from class ProcessField
props, elm, needsValueCloning
   
Fields inherited from class MoreMotionObject
node, name, type, props
 
Constructor Summary
NumberBox(node)
           
 
Method Summary
 void clear()
           Clears values of all the wrapped HTML Elements
 Object getValue()
           Returns the value of this field
 void init()
           Initializes this NumberBox
 void reformat(value)
           Sets the given pure number value to the this.selm.value and reformats the TEXT INPUT field
 void setValue(value)
           Sets the value of this field and reformats the wrapped field(s).
 
Methods inherited from class ProcessField
getCaption, reset, setModified, isModified, getRecord, appendRequestParams, focusTab, notify, notifyEx, runValidationHandler, checkValueIsAvailable, checkValueIsNumber, checkHasValidValue
   
Methods inherited from class MoreMotionObject
saveProps, setProp, boolProp, numberProp, charProp, getIValue, setIValue, runHandler
 

Field Detail

DS

Object DS

elm

HTMLElement elm

GS

Object GS

props

Object props

selm

HTMLElement selm

Constructor Detail

NumberBox

NumberBox(node)

Method Detail

clear

void clear()

getValue

Object getValue()

init

void init()

reformat

void reformat(value)

setValue

void setValue(value)

MoreMotion Face API

Copyright 2002 - 2011, MOR YAZILIM
Documentation generated by JSDoc on Thu Mar 3 18:19:14 2011