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. |
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
|
dpelm
HTMLElement dpelm
The object of the HTMLElement that displays the decimal point. The element must have "DecimalPoint"
type as follows.
<span mo:type="DecimalPoint">?</span>
DS
Object DS
elm
HTMLElement elm
The HTMLElement object of the TEXT INPUT
Element on the left
GS
Object GS
isNumberDialog
boolean isNumberDialog
props
Object props
NumberDialog Properties Object.
relm
HTMLElement relm
The HTMLElement object of the TEXT INPUT
Element on the right
selm
HTMLElement selm
The HTMLElement object of the HIDDEN INPUT
Element that contains the pure
number value to send to the server.
NumberDialog
NumberDialog(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
getValue
Object getValue()
Returns the value of this field
init
void init()
reformat
void reformat(value)
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.
validate
boolean validate()
Validates this NumberDialog field and returns true
if validation is successful,
false
otherwise.
Copyright 2002 - 2008, MOR YAZILIM
Documentation generated by
JSDoc on Mon Sep 29 14:52:55 2008