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 |
boolean |
isNumberBox
|
Object |
props
NumberBox Properties Object. |
HTMLElement |
selm
The HTMLElement object of the HIDDEN INPUT Element that contains the pure
number value to send to the server. |
Method Summary |
void
|
base(node)
|
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 HIDDEN INPUT element 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 |
setModified, isModified, getRecord, setSubmitPrefix, appendRequestParams, focusTab, notify, runValidationHandler, checkValueIsAvailable, checkValueIsNumber, checkHasValidValue, runHandler
|
DS
Object DS
elm
HTMLElement elm
The HTMLElement object of the TEXT INPUT
Element that is visible and editable.
It contains the formatted number.
GS
Object GS
isNumberBox
boolean isNumberBox
props
Object props
NumberBox Properties Object.
selm
HTMLElement selm
The HTMLElement object of the HIDDEN INPUT
Element that contains the pure
number value to send to the server.
NumberBox
NumberBox(node)
Parameters:
node
- the DOM Element node that is wrapped by this object
base
void base(node)
Parameters:
node
- the DOM Element node that is wrapped by this field
clear
void clear()
Clears values of all the wrapped HTML Elements
getValue
Object getValue()
Returns the value of this field
init
void init()
Initializes this NumberBox
reformat
void reformat(value)
Sets the given pure number value to the HIDDEN INPUT
element and
reformats the TEXT INPUT
field
setValue
void setValue(value)
Sets the value of this field and reformats the wrapped field(s).
Parameters:
value
- The value to set to the field.
Copyright 2002 - 2008, MOR YAZILIM
Documentation generated by
JSDoc on Mon Sep 29 14:52:55 2008