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
 void addToCache(key, object, area)
           Adds the given object to the cache with the specified key
 void attachEvent(node,name,func)
           Cross browser event attacher
 Object createElement(tagName, elmName)
          
 void detachEvent(node,name,func)
           Cross browser event detacher
 HTMLElement findChildNode(parentNode, nodeName, attrName, attrValue, depth)
           Searches the specified HTML Node under the given node.
 MoreMotionObject findChildObject(parentNode, nodeName, attrName, attrValue, depth)
           Searches the specified HTML Node under the given node and returns the MoreMotionObject that wraps it.
 HTMLElement findParentNode(node,attrName,attrValue)
           Returns the first parent node that has the specified attribute and attribute value.
 String getAttribute(node,attrName)
           Returns the value of the given attribute safely.
 HTMLElement[] getChildInputElements(node)
           Returns an array of all form elements ("input", "button", "select" and "editarea") that exits under the given node.
 HTMLElement getChildNode(parentNode, nodeName, elmName)
           Returns the first child node with the given node name.
 MoreMotionObject getEnclosingObject(node, includingThis)
           Searches the parent nodes of the given DOM element node to find a MoreMotionObject node.
 Object getFromCache(key)
           Returns the object associated with the given key from the cache.
 String getIValue(node)
           Returns the value of the "mo:value" attribute safely.
 HTMLElement getMoChild(parentNode, type, name)
           Returns the first child node that has the specified mo:type and optionally mo:name.
 String getMoName(node)
           Returns the value of the "mo:name" attribute safely.
 HTMLNode[] getMoNodes(parentNode, types)
           Searches the child nodes of the given node and returns an array nodes that have the specified mo:type
 HTMLElement getMoObject(parentNode, type, name)
           Searches the first child node that has the specified mo:type and mo:name and returns the MoreMotionObject that wraps it.
 HTMLElement getMoParent(node, type, name, depth)
           Returns the first parent node that has the specified type and optionally name.
 HTMLElement getNodeByClass(parentNode, className)
           Returns the first child node that has the specified class name
 ProcessField getObject(node)
           Creates the MoreMotionObject defined in the "mo:type" attribute of the given DOM element node and returns it.
 ProcessField 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, types, oldparam)
           Searches the child nodes of the given node and returns an array of MoreMotion Objects that have the specified mo:type
 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.
 Object getStyle(node, style)
           Returns the computed style of the given node and the style name
 String getUniqueId(prefix)
           Returns a unique id
 void initialize(node)
           Initializes all the MoreMotionObject objects existing in the given DOM element node.
 Object needsInit(node)
          
 void refreshAction(frm)
           Refreshes the value of the "_rand" hidden input element in the given form
 void refreshHref(node)
           Refreshes the value of the "_rand=" parameter existing in the href attribute of the specified DOM Node.
 Object refreshLink(href)
           Refreshes the value of the "_rand=" parameter existing in the givn string and returns it.
 void releaseCache(area)
           Releases all the object from the cache that reside in the given area
 void removeFromCache(key)
           Removes the object assoc┼čated with the given key from the cache
 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)
           Sets the value of the given attribute safely.
 void setDisabled(node, value)
           Disables of enables all the input elements existing in the given DOM node
 void setInitialOption(elm, value)
           Sets the initial value of the given SELECT element
 void setIValue(node, value)
           Sets the value of the "mo:value" attribute safely.
 void setOpacity(node,ratio)
           Cross browser opacity setter
 void submitForm(nodeOrFormName, action)
           Submits the specified form with the given action.

Constructor Detail

MoreMotionObjectManager

MoreMotionObjectManager()

Method Detail

addToCache

void addToCache(key, object, area)

attachEvent

void attachEvent(node,name,func)

createElement

Object createElement(tagName, elmName)

detachEvent

void detachEvent(node,name,func)

findChildNode

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

findChildObject

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

findParentNode

HTMLElement findParentNode(node,attrName,attrValue)

getAttribute

String getAttribute(node,attrName)

getChildInputElements

HTMLElement[] getChildInputElements(node)

getChildNode

HTMLElement getChildNode(parentNode, nodeName, elmName)

getEnclosingObject

MoreMotionObject getEnclosingObject(node, includingThis)

getFromCache

Object getFromCache(key)

getIValue

String getIValue(node)

getMoChild

HTMLElement getMoChild(parentNode, type, name)

getMoName

String getMoName(node)

getMoNodes

HTMLNode[] getMoNodes(parentNode, types)

getMoObject

HTMLElement getMoObject(parentNode, type, name)

getMoParent

HTMLElement getMoParent(node, type, name, depth)

getNodeByClass

HTMLElement getNodeByClass(parentNode, className)

getObject

ProcessField getObject(node)

getObjectById

ProcessField getObjectById(id)

getObjects

MoreMotionObject[] getObjects(parentNode, types, oldparam)

getPageInfo

PageInfo getPageInfo(node)

getParentNode

HTMLElement getParentNode(node, nodeName)

getProps

props getProps(node)

getStyle

Object getStyle(node, style)

getUniqueId

String getUniqueId(prefix)

initialize

void initialize(node)

needsInit

Object needsInit(node)

refreshAction

void refreshAction(frm)

refreshHref

void refreshHref(node)

refreshLink

Object refreshLink(href)

releaseCache

void releaseCache(area)

removeFromCache

void removeFromCache(key)

resetForm

void resetForm(nodeOrFormName)

resource

Object resource(resId, parm1, parm2, parm3)

setAttribute

void setAttribute(node, attrName, attrValue)

setDisabled

void setDisabled(node, value)

setInitialOption

void setInitialOption(elm, value)

setIValue

void setIValue(node, value)

setOpacity

void setOpacity(node,ratio)

submitForm

void submitForm(nodeOrFormName, action)

MoreMotion Face API

Copyright 2002 - 2011, MOR YAZILIM
Documentation generated by JSDoc on Thu Mar 3 18:19:14 2011