org.w3c.dom.svg
Interface ElementTraversal


public interface ElementTraversal

This interface provides a way to traverse elements in the uDOM tree. It is needed mainly because SVG Tiny uDOM does not expose character data nodes. Each element in the SVG Tiny document tree implements this interface. This applies to elements in the foreign namespaces as well.

Category:
Experimental

Since:
BlackBerry API 5.0.0

Method Summary
 Element getFirstElementChild()
           Returns the first child element node of this element.
 Element getLastElementChild()
           Returns the last child element node of this element.
 Element getNextElementSibling()
           Returns the next sibling element node of this element.
 Element getPreviousElementSibling()
           Returns the previous sibling element node of this element.
 

Method Detail

getFirstElementChild

public Element getFirstElementChild()

Returns the first child element node of this element. null if this element has no child elements.

Returns:
the first child element node of this element.
Since:
BlackBerry API 5.0.0
Category:
Experimental

getLastElementChild

public Element getLastElementChild()

Returns the last child element node of this element. null if this element has no child elements.

Returns:
the last child element node of this element.
Since:
BlackBerry API 5.0.0
Category:
Experimental

getNextElementSibling

public Element getNextElementSibling()

Returns the next sibling element node of this element. null if this element has no element sibling nodes that come after this one in the document tree.

Returns:
the next sibling element node of this element.
Since:
BlackBerry API 5.0.0
Category:
Experimental

getPreviousElementSibling

public Element getPreviousElementSibling()

Returns the previous sibling element node of this element. null if this element has no element sibling nodes that come before this one in the document tree.

Returns:
the previous sibling element node of this element.
Since:
BlackBerry API 5.0.0
Category:
Experimental



Copyright 1999-2009 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.