public class LocalPathTreeModelDriver extends PathTreeModelDriver
PathTreeModelDriver
implementation runs a PathWatcher
that observes registered paths in the
local file-system. This class ensures that change events are dispatched within the event dispatcher thread. Therefore this
class can directly drive a GUI component such as a PathTreeModel
.Constructor and Description |
---|
LocalPathTreeModelDriver(ApplicationContext ctx) |
Modifier and Type | Method and Description |
---|---|
java.nio.file.DirectoryStream.Filter<java.nio.file.Path> |
getFilter() |
boolean |
isWatchServiceRunning() |
java.util.List<PathInfo> |
loadChildren(PathInfo parentInfo) |
void |
renamePath(java.nio.file.Path oldPath,
java.nio.file.Path newPath) |
void |
setFilter(java.nio.file.DirectoryStream.Filter<java.nio.file.Path> filter) |
void |
startWatchService() |
void |
stopWatchService() |
addPathChangeListener, addPathRegistrationListener, firePathChangeEvent, firePathRegistrationEvent, removePathChangeListener, removePathRegistrationListener
getApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannel
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toString, toString
public LocalPathTreeModelDriver(ApplicationContext ctx)
public void startWatchService()
startWatchService
in class PathTreeModelDriver
public void stopWatchService()
stopWatchService
in class PathTreeModelDriver
public boolean isWatchServiceRunning()
isWatchServiceRunning
in class PathTreeModelDriver
public void setFilter(java.nio.file.DirectoryStream.Filter<java.nio.file.Path> filter)
setFilter
in class PathTreeModelDriver
public java.nio.file.DirectoryStream.Filter<java.nio.file.Path> getFilter()
getFilter
in class PathTreeModelDriver
public java.util.List<PathInfo> loadChildren(PathInfo parentInfo)
loadChildren
in class PathTreeModelDriver
public void renamePath(java.nio.file.Path oldPath, java.nio.file.Path newPath) throws java.io.IOException
renamePath
in class PathTreeModelDriver
java.io.IOException
Copyright © 2013 EsprIT-Systems. All Rights Reserved.