Package org.nuxeo.ecm.webengine.ui.tree
Interface TreeModel
- All Superinterfaces:
- Serializable
- All Known Implementing Classes:
- TreeModelImpl
A tree view manage a tree structure of items. The tree data is lazy loaded by using the data provider specified at
 tree view creation.
- Author:
- Bogdan Stefanescu
- 
Method SummaryModifier and TypeMethodDescriptionFind the item at the given path.Likefind(String)but the path is expressed as aPathobject.findAndReveal(String path) Find and item given it's path and expand parents if needed.findAndReveal(Path path) LikefindAndReveal(String)but the path is expressed as aPathobject.Gets the content provider used by this tree.getInput()Gets the current input of the tree.getRoot()Get the tree root item, or null if tree has no input.voidsetContentProvider(ContentProvider provider) Sets the content provider to be used by this tree.voidSets the input data.
- 
Method Details- 
getContentProviderContentProvider getContentProvider()Gets the content provider used by this tree.
- 
setContentProviderSets the content provider to be used by this tree.
- 
setInputSets the input data.- Parameters:
- input- (may be null)
 
- 
getInputObject getInput()Gets the current input of the tree.- Returns:
- the tree input data. may be null.
 
- 
getRootTreeItem getRoot()Get the tree root item, or null if tree has no input.- Returns:
- the root
 
- 
findFind the item at the given path. Only loaded items are searched. This operation will not load any extra item.- Parameters:
- path- the path to search
- Returns:
- the item at the given path or null if none
 
- 
findAndRevealFind and item given it's path and expand parents if needed. The returned item is not explicitly expanded so it may be collapsed or its children if any not yet loaded- Parameters:
- path- the path to search
- Returns:
- the item or null if none
 
- 
findLikefind(String)but the path is expressed as aPathobject.- See Also:
 
- 
findAndRevealLikefindAndReveal(String)but the path is expressed as aPathobject.- See Also:
 
 
-