|
MoreMotion Face API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--MoreMotionObject
|
+--ProcessField
|
+--NumberDialog
Represents a NumberDialog Process Field that wraps two TEXT INPUT elements 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.
Each time the user types in a new character into one of the input fields,
this class checks immediatelly wheter it is a allowed character and reformats the value in the
input fields.
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 |
Object |
props
NumberDialog Properties Object. |
HTMLElement |
relm
The HTMLElement object of the TEXT INPUT Element on the right |
Object |
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 | |
NumberDialog(node)
|
|
| Method Summary | |
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 |
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 |
HTMLElement dpelm
<span name="dpelm">?</span>
Object DS
HTMLElement elm
TEXT INPUT Element on the left
Object GS
Object props
| allowSign | Allow Sign Flag. true means that sign ("-") character can be entered into the input field. |
| precisionDigits | Precision Digits. The number of the digits allowed to enter after the decimal seperator. |
| round | Specify true to round the displayed value |
| padZeros | Specify true to pad zeros at the right side when precision digits are less than the specified. |
| nonBlank | See ProcessField.props.nonBlank |
| validValues | See ProcessField.props.validValues |
| valHandler | See ProcessField.valHandler() |
| valErrorHandler | See ProcessField.props.valErrorHandler |
HTMLElement relm
TEXT INPUT Element on the right
Object selm
| Constructor Detail |
NumberDialog(node)
node - the DOM Element node that is wrapped by this object
| Method Detail |
Object getValue()
void init()
void reformat(value)
void setValue(value)
value - The value to set to the field.
Boolean validate()
true if validation is successful,
false otherwise.
|
MoreMotion Face API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||