public class FilteredTree extends Object
| Modifier and Type | Method and Description |
|---|---|
static FilteredTree |
create(TreeModel treeModel)
Creates a new filtered tree for the given (unfiltered!)
|
TreeModel |
getFilteredModel()
Returns the (filtered) model of the tree
|
JTree |
getTree()
Returns the tree
|
void |
setFilter(TreeModelFilter filter)
Set the filter of the model for the tree.
|
void |
setInputModel(TreeModel model)
Set the (unfiltered) model for the tree
|
public static FilteredTree create(TreeModel treeModel)
treeModel - The tree modelpublic JTree getTree()
public TreeModel getFilteredModel()
public void setInputModel(TreeModel model)
model - The model for the treepublic void setFilter(TreeModelFilter filter)
null, then all nodes will be displayed and
the last expansion state of the unfiltered tree will be
restored.filter - The TreeModelFilterCopyright © 2022. All rights reserved.