public class TreeModelImpl extends Object implements TreeModel
Modifier and Type | Field and Description |
---|---|
protected ContentProvider |
provider |
protected TreeItem |
root |
Constructor and Description |
---|
TreeModelImpl() |
TreeModelImpl(ContentProvider provider) |
Modifier and Type | Method and Description |
---|---|
TreeItem |
find(Path path)
Like
TreeModel.find(Path) but the path is expressed as a Path object. |
TreeItem |
find(String path)
Find the item at the given path.
|
TreeItem |
findAndReveal(Path path)
Like
TreeModel.findAndReveal(Path) but the path is expressed as a Path object. |
TreeItem |
findAndReveal(String path)
Find and item given it's path and expand parents if needed.
|
ContentProvider |
getContentProvider()
Gets the content provider used by this tree.
|
Object |
getInput()
Gets the current input of the tree.
|
TreeItem |
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 |
setInput(Object input)
Sets the input data.
|
protected ContentProvider provider
public TreeModelImpl()
public TreeModelImpl(ContentProvider provider)
public ContentProvider getContentProvider()
TreeModel
getContentProvider
in interface TreeModel
public void setContentProvider(ContentProvider provider)
TreeModel
setContentProvider
in interface TreeModel
public void setInput(Object input)
TreeModel
public TreeItem getRoot()
TreeModel
public TreeItem findAndReveal(String path)
TreeModel
findAndReveal
in interface TreeModel
path
- the path to searchpublic TreeItem find(String path)
TreeModel
public TreeItem findAndReveal(Path path)
TreeModel
TreeModel.findAndReveal(Path)
but the path is expressed as a Path
object.findAndReveal
in interface TreeModel
TreeModel.findAndReveal(String)
public TreeItem find(Path path)
TreeModel
TreeModel.find(Path)
but the path is expressed as a Path
object.find
in interface TreeModel
TreeModel.find(String)
public Object getInput()
TreeModel
public boolean hasInput()
Copyright © 2015 Nuxeo SA. All rights reserved.