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 |
|---|---|
boolean |
isWatchServiceRunning() |
java.util.List<PathInfo> |
loadChildren(PathInfo parentInfo) |
void |
renamePath(java.nio.file.Path oldPath,
java.nio.file.Path newPath) |
void |
startWatchService() |
void |
stopWatchService() |
addPathChangeListener, addPathRegistrationListener, firePathChangeEvent, firePathRegistrationEvent, getFilter, removePathChangeListener, removePathRegistrationListener, setFiltergetApplicationConfig, getApplicationContext, 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 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 © 2011 EsprIT-Systems. All Rights Reserved.