Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: star :: awt :: tree ::

interface XTreeNode
Description
An instance implementing this interface represents the model data for an entry in a XTreeDataModel.

The TreeControl uses this interface to retrieve the model information needed to display a hierarchical outline

Each XTreeNode in a XTreeDataModel must be unique.


Methods' Summary
getChildAt Returns the child tree node at Index.  
getChildCount Returns the number of child nodes.  
getParent Returns the parent node of this node.  
getIndex Returns the index of Node in this instances children.  
hasChildrenOnDemand Returns true if the children of this node are created on demand.  
getDisplayValue If not empty, the textual representation of this any is used as the text part of this node.  
getNodeGraphicURL The URL for a graphic that is rendered before the text part of this node.  
getExpandedGraphicURL The URL for a graphic that is rendered to visualize expanded non leaf nodes.  
getCollapsedGraphicURL The URL for a graphic that is rendered to visualize collapsed non leaf nodes.  
Methods' Details
getChildAt
XTreeNode
getChildAt( [in] long  Index )
raises( ::com::sun::star::lang::IndexOutOfBoundsException );

Description
Returns the child tree node at Index.
Throws
::com::sun::star::lang::IndexOutOfBoundsException if Index is less than 0 or equal or greater then getChildCount.
getChildCount
long
getChildCount();

Description
Returns the number of child nodes.
getParent
XTreeNode
getParent();

Description
Returns the parent node of this node.
getIndex
long
getIndex( [in] XTreeNode  Node );

Description
Returns the index of Node in this instances children.
Returns
The child index of Node , or -1 if Node is no child of this instance.
hasChildrenOnDemand
boolean
hasChildrenOnDemand();

Description
Returns true if the children of this node are created on demand.

A TreeControl will handle a node that returns true always like a node that has child nodes, even if getChildCount returns 0.

See also
TreeExpansionListener;
getDisplayValue
any
getDisplayValue();

Description
If not empty, the textual representation of this any is used as the text part of this node.
getNodeGraphicURL
string
getNodeGraphicURL();

Description
The URL for a graphic that is rendered before the text part of this node.

If this URL is empty, no graphic is rendered.

getExpandedGraphicURL
string
getExpandedGraphicURL();

Description
The URL for a graphic that is rendered to visualize expanded non leaf nodes.

If URL is empty, XTreeControl::DefaultExpandedGraphicURL is used.

getCollapsedGraphicURL
string
getCollapsedGraphicURL();

Description
The URL for a graphic that is rendered to visualize collapsed non leaf nodes.

If URL is empty, XTreeControl::DefaultCollapsedGraphicURL is used.

Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.