Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


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

unpublished service TreeControlModel
Usage Restrictions
not published
Description
specifies the standard model of a TreeControl.

Included Services - Summary
::com::sun::star::awt::UnoControlModel

specifies the standard model of an ::com::sun::star::awt::UnoControl.

Properties' Summary
::com::sun::star::view::SelectionType
SelectionType
Specifies the selection mode that is enabled for this tree.  
XTreeDataModel
DataModel
Specifies the XTreeDataModel that is providing the hierarchical data.  
boolean
RootDisplayed
Specifies if the root node of the tree is displayed.  
boolean
ShowsHandles
Specifies whether the node handles should be displayed.  
boolean
ShowsRootHandles
Specifies whether the node handles should also be displayed at root level.  
long
RowHeight
Specifies the height of each row, in pixels.  
boolean
Editable
Specifies whether the nodes of the tree are editable.  
boolean
InvokesStopNodeEditing
Specifies what happens when editing is interrupted by selecting another node in the tree, a change in the tree's data, or by some other means.  
Included Services - Details
::com::sun::star::awt::UnoControlModel
Description
specifies the standard model of an ::com::sun::star::awt::UnoControl.
Properties' Details
SelectionType
::com::sun::star::view::SelectionType SelectionType;
Description
Specifies the selection mode that is enabled for this tree.

The default value is ::com::sun::star::view::SelectionType::NONE

DataModel
XTreeDataModel DataModel;
Description
Specifies the XTreeDataModel that is providing the hierarchical data.

You can implement your own instance of XTreeDataModel or use the MutableTreeDataModel.

RootDisplayed
boolean RootDisplayed;
Description
Specifies if the root node of the tree is displayed.

If RootDisplayed is set to false, the root node of a model is no longer a valid node for the XTreeControl and can't be used with any method of XTreeControl.

The default value is true

ShowsHandles
boolean ShowsHandles;
Description
Specifies whether the node handles should be displayed.

The handles are doted lines that visualize the tree like hirarchie

The default value is true

ShowsRootHandles
boolean ShowsRootHandles;
Description
Specifies whether the node handles should also be displayed at root level.

The default value is true

RowHeight
long RowHeight;
Description
Specifies the height of each row, in pixels.

If the specified value is less than or equal to zero, the row height is the maximum height of all rows.

The default value is 0

Editable
boolean Editable;
Description
Specifies whether the nodes of the tree are editable.

The default value is false

See also
XTreeControl::startEditingAtNode(), XTreeEditListener
InvokesStopNodeEditing
boolean InvokesStopNodeEditing;
Description
Specifies what happens when editing is interrupted by selecting another node in the tree, a change in the tree's data, or by some other means.

Setting this property to true causes the changes to be automatically saved when editing is interrupted. false means that editing is canceled and changes are lost

The default value is false


 
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.