public class LocalPathTreeModelDriver<C extends ApplicationContext> extends PathTreeModelDriver<C>
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
.Modifier and Type | Field and Description |
---|---|
protected PathWatcher |
watcher |
Constructor and Description |
---|
LocalPathTreeModelDriver(C ctx) |
Modifier and Type | Method and Description |
---|---|
protected PathInfo |
createPathInfo(PathInfo parentInfo,
java.nio.file.Path path) |
BranchPathFilter |
getPathFilter() |
PathWatcher |
getPathWatcher() |
boolean |
isWatchServiceRunning() |
java.util.List<PathInfo> |
loadChildren(PathInfo parentInfo) |
void |
renamePath(java.nio.file.Path oldPath,
java.nio.file.Path newPath) |
void |
reset()
This method is called by the ResetButton on it's registered target.
|
void |
setPathFilter(PathFilter filter) |
protected void |
setPermissionFilter(PathFilter 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
protected final PathWatcher watcher
public LocalPathTreeModelDriver(C ctx)
public PathWatcher getPathWatcher()
public void reset()
Resettable
public final void startWatchService()
public final void stopWatchService()
public final boolean isWatchServiceRunning()
public final BranchPathFilter getPathFilter()
getPathFilter
in class PathTreeModelDriver<C extends ApplicationContext>
public final void setPathFilter(PathFilter filter)
setPathFilter
in class PathTreeModelDriver<C extends ApplicationContext>
protected final void setPermissionFilter(PathFilter filter)
public final java.util.List<PathInfo> loadChildren(PathInfo parentInfo)
loadChildren
in class PathTreeModelDriver<C extends ApplicationContext>
protected PathInfo createPathInfo(PathInfo parentInfo, java.nio.file.Path path) throws java.lang.Exception
java.lang.Exception
public final void renamePath(java.nio.file.Path oldPath, java.nio.file.Path newPath) throws java.lang.Exception
renamePath
in class PathTreeModelDriver<C extends ApplicationContext>
java.lang.Exception
Copyright © 2014 EsprIT-Systems. All Rights Reserved.