Class org.ditchnet.dom.DomUtils
Object
|
+--org.ditchnet.dom.DomUtils
- class
org.ditchnet.dom.DomUtils
Defined in tabs.js
|
Constructor Summary |
org.ditchnet.dom.DomUtils
()
A utility class that exists to combine common DOM algorithms and utilities
into a single class as static methods and constants.
|
|
Method Summary |
<static> void
|
addClassName(target,k)
|
<static> Object
|
getChildrenByClassName(target,className)
|
<static> Object
|
getDescendantsByClassName(target,className)
Returns all descendant elements of target with HTML
class attribute values that contain className
as an Array.
|
<static> Object
|
getFirstAncestorByClassName(target,className)
|
<static> Object
|
getFirstAncestorOrSelfByClassName(target, className)
|
<static> Object
|
getFirstChildByClassName(target,className)
|
<static> Object
|
getFirstDescendantByClassNameBreadthFirst( target, className)
Retreives target's first descendant element with an
HTML class attribute value that includes
className using a breadth-first algorithm.
|
<static> Object
|
getFirstDescendantByClassNameDepthFirst( target, className)
Retreives target's first descendant element with an
HTML class attribute value that includes
className using a depth-first algorithm.
|
<static> Object
|
hasClassName(target,className)
|
<static> Object
|
hasId(target,id)
|
<static> void
|
hide(target)
|
<static> Object
|
isElementNode(target)
Tests to see if target's getNodeType()
method returns Node.ELEMENT_NODE.
|
<static> void
|
removeClassName(target,k)
|
<static> void
|
setClassNameAsFocused(target)
|
<static> void
|
setClassNameAsUnFocused(target)
|
<static> void
|
show(target)
|
FOCUSED_CLASS_NAME
<static> string FOCUSED_CLASS_NAME
UNFOCUSED_CLASS_NAME
<static> string UNFOCUSED_CLASS_NAME
org.ditchnet.dom.DomUtils
org.ditchnet.dom.DomUtils()
A utility class that exists to combine common DOM algorithms and utilities
into a single class as static methods and constants. This class is not
meant to be subclassed.
addClassName
<static> void addClassName(target,k)
getChildrenByClassName
<static> Object getChildrenByClassName(target,className)
getDescendantsByClassName
<static> Object getDescendantsByClassName(target,className)
Returns all descendant elements of target with HTML
class attribute values that contain className
as an Array. NOTE that unlike the
algorithms specified in the DOM spec, a NodeList is NOT
returned. This method searched for all descendants of target
meeting the criteria using a breadth-first algorithm.
getFirstAncestorByClassName
<static> Object getFirstAncestorByClassName(target,className)
getFirstAncestorOrSelfByClassName
<static> Object getFirstAncestorOrSelfByClassName(target, className)
getFirstChildByClassName
<static> Object getFirstChildByClassName(target,className)
getFirstDescendantByClassNameBreadthFirst
<static> Object getFirstDescendantByClassNameBreadthFirst( target, className)
Retreives target's first descendant element with an
HTML class attribute value that includes
className using a breadth-first algorithm.
getFirstDescendantByClassNameDepthFirst
<static> Object getFirstDescendantByClassNameDepthFirst( target, className)
Retreives target's first descendant element with an
HTML class attribute value that includes
className using a depth-first algorithm.
hasClassName
<static> Object hasClassName(target,className)
hasId
<static> Object hasId(target,id)
hide
<static> void hide(target)
isElementNode
<static> Object isElementNode(target)
Tests to see if target's getNodeType()
method returns Node.ELEMENT_NODE.
removeClassName
<static> void removeClassName(target,k)
setClassNameAsFocused
<static> void setClassNameAsFocused(target)
setClassNameAsUnFocused
<static> void setClassNameAsUnFocused(target)
show
<static> void show(target)