Package org.nuxeo.ecm.webengine.ui.tree
Class TreeModelImpl
java.lang.Object
org.nuxeo.ecm.webengine.ui.tree.TreeModelImpl
- All Implemented Interfaces:
Serializable
,TreeModel
- Author:
- Bogdan Stefanescu
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionFind the item at the given path.LikeTreeModel.find(String)
but the path is expressed as aPath
object.findAndReveal
(String path) Find and item given it's path and expand parents if needed.findAndReveal
(Path path) LikeTreeModel.findAndReveal(String)
but the path is expressed as aPath
object.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.boolean
hasInput()
void
setContentProvider
(ContentProvider provider) Sets the content provider to be used by this tree.void
Sets the input data.
-
Field Details
-
provider
-
root
-
-
Constructor Details
-
TreeModelImpl
public TreeModelImpl() -
TreeModelImpl
-
-
Method Details
-
getContentProvider
Description copied from interface:TreeModel
Gets the content provider used by this tree.- Specified by:
getContentProvider
in interfaceTreeModel
-
setContentProvider
Description copied from interface:TreeModel
Sets the content provider to be used by this tree.- Specified by:
setContentProvider
in interfaceTreeModel
-
setInput
Description copied from interface:TreeModel
Sets the input data. -
getRoot
Description copied from interface:TreeModel
Get the tree root item, or null if tree has no input. -
findAndReveal
Description copied from interface:TreeModel
Find 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- Specified by:
findAndReveal
in interfaceTreeModel
- Parameters:
path
- the path to search- Returns:
- the item or null if none
-
find
Description copied from interface:TreeModel
Find the item at the given path. Only loaded items are searched. This operation will not load any extra item. -
findAndReveal
Description copied from interface:TreeModel
LikeTreeModel.findAndReveal(String)
but the path is expressed as aPath
object.- Specified by:
findAndReveal
in interfaceTreeModel
- See Also:
-
find
Description copied from interface:TreeModel
LikeTreeModel.find(String)
but the path is expressed as aPath
object. -
getInput
Description copied from interface:TreeModel
Gets the current input of the tree. -
hasInput
public boolean hasInput()
-