|
MoreMotion Face API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--MoreMotionObject | +--TextNode | +--NumberText
Represents a NumberText. It wraps any HTML DOM element that can contains a text node as
a child node. The purpose of this class is to create a text node under the wrapped DOM element
and format its value as a number.
Defined in Number.js
Field Summary | |
Object |
DS
Decimal Separator |
Object |
GS
Grouping separator |
boolean |
isNumberText
|
Object |
needsValueCloning
|
Object |
props
NumberText Properties Object. |
Fields inherited from class TextNode |
isTextNode, textNode
|
Fields inherited from class MoreMotionObject |
node, name, type, isMoreMotionObject, props
|
Constructor Summary | |
NumberText(node)
|
Method Summary | |
void
|
base(node)
|
void
|
init()
Initializes this NumberText |
void
|
setCurrencyValue(value)
|
void
|
setValue(value)
Sets a text value this field object |
Methods inherited from class TextNode |
getANode, removeANode, getValue, getHref, setHref, clear
|
Methods inherited from class MoreMotionObject |
saveProps, boolProp, numberProp, charProp, getIValue, setIValue
|
Field Detail |
Object DS
Object GS
boolean isNumberText
Object needsValueCloning
Object props
value | The value of the NumberText |
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 value |
padZeros | Specify true to pad zeros at the right side when precision digits are less than the specified. |
currencyFormatting | If the number value includes a currency symbol (e.g. '120.23 $'), this property
can be used to format it. Examples:
|
Constructor Detail |
NumberText(node)
node
- the DOM Element node that is wrapped by this object
Method Detail |
void base(node)
node
- the DOM Element node that is wrapped by this object
void init()
void setCurrencyValue(value)
void setValue(value)
|
MoreMotion Face API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |