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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFind the item at the given path.LikeTreeModel.find(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) LikeTreeModel.findAndReveal(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.booleanhasInput()voidsetContentProvider(ContentProvider provider) Sets the content provider to be used by this tree.voidSets the input data.
-
Field Details
-
provider
-
root
-
-
Constructor Details
-
TreeModelImpl
public TreeModelImpl() -
TreeModelImpl
-
-
Method Details
-
getContentProvider
Description copied from interface:TreeModelGets the content provider used by this tree.- Specified by:
getContentProviderin interfaceTreeModel
-
setContentProvider
Description copied from interface:TreeModelSets the content provider to be used by this tree.- Specified by:
setContentProviderin interfaceTreeModel
-
setInput
Description copied from interface:TreeModelSets the input data. -
getRoot
Description copied from interface:TreeModelGet the tree root item, or null if tree has no input. -
findAndReveal
Description copied from interface:TreeModelFind 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:
findAndRevealin interfaceTreeModel- Parameters:
path- the path to search- Returns:
- the item or null if none
-
find
Description copied from interface:TreeModelFind the item at the given path. Only loaded items are searched. This operation will not load any extra item. -
findAndReveal
Description copied from interface:TreeModelLikeTreeModel.findAndReveal(String)but the path is expressed as aPathobject.- Specified by:
findAndRevealin interfaceTreeModel- See Also:
-
find
Description copied from interface:TreeModelLikeTreeModel.find(String)but the path is expressed as aPathobject. -
getInput
Description copied from interface:TreeModelGets the current input of the tree. -
hasInput
public boolean hasInput()
-