|
MoreMotion Face API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--MoreMotionObject
Represents a MoreMotion Object. This object can be instantiated by giving an DOM Element node to the
constructor. The DOM node may have "mo:name" and "mo:props" attributes.
Defined in Common.js
Field Summary | |
Object |
isMoreMotionObject
|
Object |
name
The name of this object. |
Object |
node
The DOM Element node wrapped by this object |
Object |
props
The properties object. |
String |
type
The type of this object |
Constructor Summary | |
MoreMotionObject(node)
|
Method Summary | |
boolean
|
boolProp(propName)
Returns the value of the given property as a boolean value. |
String
|
charProp(propName, def)
Returns the value of the given property as a char (1-byte string) |
Object
|
getIValue()
Returns the initial value of this object |
number
|
numberProp(propName, def)
Returns the value of the given property as a number value. |
void
|
saveProps()
Saves the properties in the props object to the "mo:props" attribute of the DOM element node |
void
|
setIValue(value)
Sets the initial value of this object |
Field Detail |
Object isMoreMotionObject
Object name
Object node
Object props
String type
Constructor Detail |
MoreMotionObject(node)
node
- the DOM Element node that is wrapped by this object
Method Detail |
boolean boolProp(propName)
propName
- The name of the property in the props object.
true
if given property exists in props object and its value is 'true', false
otherwise
String charProp(propName, def)
propName
- The name of the property in the props object.
def
- The default value to use if the given prop is missing in the props object.
Object getIValue()
number numberProp(propName, def)
propName
- The name of the property in the props object.
def
- The default value to use if the given prop is missing in the props object.
void saveProps()
void setIValue(value)
|
MoreMotion Face API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |