MoreMotion Face API

Class MoreMotionObjectManager

Object
   |
   +--MoreMotionObjectManager

class MoreMotionObjectManager


Manager Class that provides methods to navigate through the DOM structure and manage MoreMotionObject objects. A static object of this class is available with name OMgr.

var OMgr = new MoreMotionObjectManager();

Defined in Common.js


Constructor Summary
MoreMotionObjectManager()
           
 
Method Summary
 Object createElement(tagName, elmName)
          
 HTMLElement findChildNode(parentNode, nodeName, attrName, attrValue, depth)
           Searches the specified HTML Node under the given node.
 Object findChildObject(parentNode, nodeName, attrName, attrValue, depth)
          
 HTMLElement findParentNode(node,attrName,attrValue)
           Returns the first parent node that has the specified attribute and attribute value.
 Object findParentObject(parentNode,attrName,attrValue)
          
 String getAttribute(node,attrName)
           Returns the value of the given attribute safely.
 HTMLElement[] getChildInputElements(node)
           Returns an array of all form elements ("input", "select" and "editarea") that exits under the given node.
 HTMLElement getChildNode(parentNode, nodeName, elmName, elmSuffix)
           Returns the first child node with the given node name.
 MoreMotionObject getEnclosingObject(node)
           Searches the parent nodes of the given DOM element node to find a MoreMotionObject node.
 Object getObject(node)
           Creates the MoreMotionObject defined in the "mo:type" attribute of the given DOM element node and returns it.
 Object getObjectById(id)
           Creates the MoreMotionObject defined in the "mo:type" attribute of the DOM element whose id is given and returns it.
 MoreMotionObject[] getObjects(parentNode, attrName, attrValue)
           Searches the child nodes of the given node and returns an array of MoreMotion Objects that have the specified attribute and value
 PageInfo getPageInfo(node)
           Searches the parents of the given node to find a node that has "mo:pageInfo" attribute to extract extracts and return the page info from there.
 HTMLElement getParentNode(node, nodeName)
           Returns the first parent node with the given node name.
 props getProps(node)
           Creates a props object from the value of the "mo:props" attribute of the given node and returns it.
 PageInfo getThisPageInfo()
           Returns the page info by extracting from the document.body node.
 Object getUniqueId(prefix)
           Returns a unique id
 void initialize(node)
           Initializes all the MoreMotionObject objects existing in the given DOM element node.
 void refreshAction(frm)
          
 void refreshHref(node)
          
 Object refreshLink(href)
          
 void resetForm(nodeOrFormName)
           Resets the specified form
 Object resource(resId, parm1, parm2, parm3)
           Returns the resource text associated with the specified resId.
 void setAttribute(node, attrName, attrValue)
          
 void setInitialOption(elm, value)
           Sets the initial value of the given SELECT element
 void submitForm(nodeOrFormName, action)
           Submits the specified form with the given action.

Constructor Detail

MoreMotionObjectManager

MoreMotionObjectManager()

Method Detail

createElement

Object createElement(tagName, elmName)

findChildNode

HTMLElement findChildNode(parentNode, nodeName, attrName, attrValue, depth)

findChildObject

Object findChildObject(parentNode, nodeName, attrName, attrValue, depth)

findParentNode

HTMLElement findParentNode(node,attrName,attrValue)

findParentObject

Object findParentObject(parentNode,attrName,attrValue)

getAttribute

String getAttribute(node,attrName)

getChildInputElements

HTMLElement[] getChildInputElements(node)

getChildNode

HTMLElement getChildNode(parentNode, nodeName, elmName, elmSuffix)

getEnclosingObject

MoreMotionObject getEnclosingObject(node)

getObject

Object getObject(node)

getObjectById

Object getObjectById(id)

getObjects

MoreMotionObject[] getObjects(parentNode, attrName, attrValue)

getPageInfo

PageInfo getPageInfo(node)

getParentNode

HTMLElement getParentNode(node, nodeName)

getProps

props getProps(node)

getThisPageInfo

PageInfo getThisPageInfo()

getUniqueId

Object getUniqueId(prefix)

initialize

void initialize(node)

refreshAction

void refreshAction(frm)

refreshHref

void refreshHref(node)

refreshLink

Object refreshLink(href)

resetForm

void resetForm(nodeOrFormName)

resource

Object resource(resId, parm1, parm2, parm3)

setAttribute

void setAttribute(node, attrName, attrValue)

setInitialOption

void setInitialOption(elm, value)

submitForm

void submitForm(nodeOrFormName, action)

MoreMotion Face API

Copyright 2002 - 2008, MOR YAZILIM
Documentation generated by JSDoc on Mon Sep 29 14:52:55 2008