MoreMotion Face API

Class NumberDialog

Object
   |
   +--MoreMotionObject
         |
         +--ProcessField
               |
               +--NumberDialog

class NumberDialog
extends ProcessField


Represents a NumberDialog Process Field which wraps two TEXT INPUT elements and a HIDDEN INPUT element to provide a controlled input field for entering Number data. This class splits the given initial value into the integer and the remainder parts and places into the TEXT INPUT fields.

While the TEXT INPUT fields 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 fields while transfering the pure number equivalance of it to the HIDDEN INPUT ready to send to the server.
Defined in Number.js


Field Summary
 HTMLElement dpelm
          The object of the HTMLElement that displays the decimal point.
 Object DS
          Decimal Separator
 HTMLElement elm
          The HTMLElement object of the TEXT INPUT Element on the left
 Object GS
          Grouping separator
 boolean isNumberDialog
          
 Object props
          NumberDialog Properties Object.
 HTMLElement relm
          The HTMLElement object of the TEXT INPUT Element on the right
 HTMLElement selm
          The HTMLElement object of the HIDDEN INPUT Element that contains the pure number value to send to the server.
   
Fields inherited from class ProcessField
props, isProcessField, elm, needsValueCloning
   
Fields inherited from class MoreMotionObject
node, name, type, isMoreMotionObject, props
 
Constructor Summary
NumberDialog(node)
           
 
Method Summary
 void base(node)
          
 Object getValue()
           Returns the value of this field
 void init()
          
 void reformat(value)
          
 void setValue(value)
           Sets the value of this field and reformats the wrapped field(s).
 boolean validate()
           Validates this NumberDialog field and returns true if validation is successful, false otherwise.
 
Methods inherited from class ProcessField
setModified, isModified, getRecord, setSubmitPrefix, appendRequestParams, focusTab, notify, runValidationHandler, checkValueIsAvailable, checkValueIsNumber, checkHasValidValue, runHandler
   
Methods inherited from class MoreMotionObject
saveProps, boolProp, numberProp, charProp, getIValue, setIValue
 

Field Detail

dpelm

HTMLElement dpelm

DS

Object DS

elm

HTMLElement elm

GS

Object GS

isNumberDialog

boolean isNumberDialog

props

Object props

relm

HTMLElement relm

selm

HTMLElement selm

Constructor Detail

NumberDialog

NumberDialog(node)

Method Detail

base

void base(node)

getValue

Object getValue()

init

void init()

reformat

void reformat(value)

setValue

void setValue(value)

validate

boolean validate()

MoreMotion Face API

Copyright 2002 - 2008, MOR YAZILIM
Documentation generated by JSDoc on Mon Sep 29 14:52:55 2008