public final class FileTreeModel extends AbstractTreeModel implements Identifiable, InvokerSupplier
Disposable.Parent
disposed, listeners
Constructor and Description |
---|
FileTreeModel(FileChooserDescriptor descriptor,
FileRefresher refresher) |
FileTreeModel(FileChooserDescriptor descriptor,
FileRefresher refresher,
boolean sortDirectories,
boolean sortArchives) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getChild(java.lang.Object object,
int index) |
int |
getChildCount(java.lang.Object object) |
int |
getIndexOfChild(java.lang.Object object,
java.lang.Object child) |
Invoker |
getInvoker() |
java.lang.Object |
getRoot() |
java.lang.Object |
getUniqueID(javax.swing.tree.TreePath path)
Returns an unique identifier for the specified path if applicable.
|
void |
invalidate() |
boolean |
isLeaf(java.lang.Object object) |
addTreeModelListener, dispose, removeTreeModelListener, treeNodesChanged, treeNodesInserted, treeNodesRemoved, treeStructureChanged, valueForPathChanged
public FileTreeModel(FileChooserDescriptor descriptor, FileRefresher refresher)
public FileTreeModel(FileChooserDescriptor descriptor, FileRefresher refresher, boolean sortDirectories, boolean sortArchives)
public void invalidate()
public java.lang.Object getUniqueID(javax.swing.tree.TreePath path)
Identifiable
getUniqueID
in interface Identifiable
path
- a tree path in the current tree modelnull
if not applicableSearchable.getTreePath(java.lang.Object)
public Invoker getInvoker()
getInvoker
in interface InvokerSupplier
public final java.lang.Object getRoot()
getRoot
in interface javax.swing.tree.TreeModel
public final java.lang.Object getChild(java.lang.Object object, int index)
getChild
in interface javax.swing.tree.TreeModel
public final int getChildCount(java.lang.Object object)
getChildCount
in interface javax.swing.tree.TreeModel
public final boolean isLeaf(java.lang.Object object)
isLeaf
in interface javax.swing.tree.TreeModel
public final int getIndexOfChild(java.lang.Object object, java.lang.Object child)
getIndexOfChild
in interface javax.swing.tree.TreeModel