public final class ProjectFileTreeModel extends BaseTreeModel<ProjectFileNode> implements InvokerSupplier
Disposable.Parent
disposed, listeners
Constructor and Description |
---|
ProjectFileTreeModel(Project project) |
Modifier and Type | Method and Description |
---|---|
java.util.List<ProjectFileNode> |
getChildren(java.lang.Object object) |
int |
getIndexOfChild(java.lang.Object parent,
java.lang.Object object) |
Invoker |
getInvoker() |
java.lang.Object |
getRoot() |
boolean |
isLeaf(java.lang.Object object) |
boolean |
isValidThread() |
void |
onValidThread(java.lang.Runnable task) |
void |
setFilter(VirtualFileFilter filter) |
void |
setSettings(boolean showExcludedFiles,
boolean showModules) |
getChild, getChildCount
addTreeModelListener, dispose, removeTreeModelListener, treeNodesChanged, treeNodesInserted, treeNodesRemoved, treeStructureChanged, valueForPathChanged
public ProjectFileTreeModel(Project project)
public Invoker getInvoker()
getInvoker
in interface InvokerSupplier
public boolean isValidThread()
public void onValidThread(java.lang.Runnable task)
public java.lang.Object getRoot()
getRoot
in interface javax.swing.tree.TreeModel
public boolean isLeaf(java.lang.Object object)
isLeaf
in interface javax.swing.tree.TreeModel
isLeaf
in class BaseTreeModel<ProjectFileNode>
public int getIndexOfChild(java.lang.Object parent, java.lang.Object object)
getIndexOfChild
in interface javax.swing.tree.TreeModel
getIndexOfChild
in class BaseTreeModel<ProjectFileNode>
public java.util.List<ProjectFileNode> getChildren(java.lang.Object object)
getChildren
in interface ChildrenProvider<ProjectFileNode>
object
- a tree nodenull
if they are not ready yetpublic void setFilter(VirtualFileFilter filter)
public void setSettings(boolean showExcludedFiles, boolean showModules)