public class WatchFileTreeModel extends FileTreeModel
fsv, showHiddenFiles
asksAllowsChildren, listenerList, root
Constructor and Description |
---|
WatchFileTreeModel(FileSystemView fileSystemView) |
WatchFileTreeModel(FileSystemView fileSystemView,
boolean showHiddenFiles,
File... roots) |
WatchFileTreeModel(FileSystemView fileSystemView,
boolean showHiddenFiles,
Path... roots) |
Modifier and Type | Method and Description |
---|---|
protected Map<Watchable,FileTreeNode> |
getNodeMap() |
protected WatchService |
getWatchService() |
protected void |
init() |
protected void |
register(FileTreeNode node) |
void |
startWatching() |
void |
stopWatching() |
protected void |
unregister(FileTreeNode node) |
createNode, createRoot, createRoot, getRoot, isShowHiddenFiles, reload, setShowHiddenFiles
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChanged
public WatchFileTreeModel(FileSystemView fileSystemView)
public WatchFileTreeModel(FileSystemView fileSystemView, boolean showHiddenFiles, File... roots)
public WatchFileTreeModel(FileSystemView fileSystemView, boolean showHiddenFiles, Path... roots)
protected void init()
init
in class FileTreeModel
protected WatchService getWatchService()
protected Map<Watchable,FileTreeNode> getNodeMap()
public void startWatching()
public void stopWatching()
protected void register(FileTreeNode node)
register
in class FileTreeModel
protected void unregister(FileTreeNode node)
unregister
in class FileTreeModel