LibreOffice
LibreOffice 24.2 SDK API Reference
|
An instance implementing this interface represents the model data for an entry in a XTreeDataModel. More...
import"XTreeNode.idl";
Public Member Functions | |
XTreeNode | getChildAt ([in] long Index) raises ( com::sun::star::lang::IndexOutOfBoundsException ) |
Returns the child tree node at Index. More... | |
long | getChildCount () |
Returns the number of child nodes. More... | |
XTreeNode | getParent () |
Returns the parent node of this node. More... | |
long | getIndex ([in] XTreeNode Node) |
Returns the index of Node in this instances children. More... | |
boolean | hasChildrenOnDemand () |
Returns TRUE if the children of this node are created on demand. More... | |
any | getDisplayValue () |
If not empty, the textual representation of this any is used as the text part of this node. More... | |
string | getNodeGraphicURL () |
The URL for a graphic that is rendered before the text part of this node. More... | |
string | getExpandedGraphicURL () |
The URL for a graphic that is rendered to visualize expanded non leaf nodes. More... | |
string | getCollapsedGraphicURL () |
The URL for a graphic that is rendered to visualize collapsed non leaf nodes. More... | |
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.
XTreeNode getChildAt | ( | [in] long | Index | ) | |
raises | ( | com::sun::star::lang::IndexOutOfBoundsException | |||
) |
Returns the child tree node at Index.
com::sun::star::lang::IndexOutOfBoundsException | if Index is less than 0 or equal or greater than getChildCount(). |
long getChildCount | ( | ) |
Returns the number of child nodes.
string getCollapsedGraphicURL | ( | ) |
The URL for a graphic that is rendered to visualize collapsed non leaf nodes.
If URL is empty, XTreeControl::DefaultCollapsedGraphicURL is used.
any getDisplayValue | ( | ) |
If not empty, the textual representation of this any is used as the text part of this node.
string getExpandedGraphicURL | ( | ) |
The URL for a graphic that is rendered to visualize expanded non leaf nodes.
If URL is empty, XTreeControl::DefaultExpandedGraphicURL is used.
long getIndex | ( | [in] XTreeNode | Node | ) |
Returns the index of Node in this instances children.
string getNodeGraphicURL | ( | ) |
The URL for a graphic that is rendered before the text part of this node.
If this URL is empty, no graphic is rendered.
XTreeNode getParent | ( | ) |
Returns the parent node of this node.
boolean hasChildrenOnDemand | ( | ) |
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.