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, removePathRegistrationListenergetApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannelconfigureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toString, toStringpublic LocalPathTreeModelDriver(ApplicationContext ctx)
public void startWatchService()
startWatchService in class PathTreeModelDriverpublic void stopWatchService()
stopWatchService in class PathTreeModelDriverpublic boolean isWatchServiceRunning()
isWatchServiceRunning in class PathTreeModelDriverpublic void setFilter(java.nio.file.DirectoryStream.Filter<java.nio.file.Path> filter)
setFilter in class PathTreeModelDriverpublic java.nio.file.DirectoryStream.Filter<java.nio.file.Path> getFilter()
getFilter in class PathTreeModelDriverpublic java.util.List<PathInfo> loadChildren(PathInfo parentInfo)
loadChildren in class PathTreeModelDriverpublic void renamePath(java.nio.file.Path oldPath,
java.nio.file.Path newPath)
throws java.io.IOException
renamePath in class PathTreeModelDriverjava.io.IOExceptionCopyright © 2013 EsprIT-Systems. All Rights Reserved.