:: com :: sun :: star :: awt :: tree ::
|
unpublished |
interface XTreeDataModel |
|
|
- Base Interfaces
XTreeDataModel
┗ ::com::sun::star::lang::XComponent
::com::sun::star::lang::XComponent |
- (referenced interface's summary:)
- allows to exclicitly free resources and break cyclic references.
|
|
- Usage Restrictions
- not published
- Description
- An instance of this interface is used by the TreeControl to
retrieve the hierarchical outline data that is displayed in the actual control.
If you implement your own XTreeDataModel you need to notify registered
XTreeDataModelListener if your model changes after the control is created.
If this is not done correctly the TreeControl will not update the data properly.
If you do not need your own model implementation, you can also use the MutableTreeDataModel.
|
Methods' Details |
getRoot
- Description
- Returns the root of the tree.
Returns null only if the tree has no nodes.
- Returns
- the root of the tree
|
|
addTreeDataModelListener
- Description
- Adds a listener for the TreeDataModelEvent posted after the tree changes.
- Parameter Listener
- the listener to add.
|
|
removeTreeDataModelListener
- Description
- Removes a listener previously added with addTreeDataModelListener().
- Parameter Listener
- the listener to remove.
|
|
Top of Page
Copyright © 1995, 2012, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.