public class FileTreeService extends BaseService
BaseService.OnStart, BaseService.OnStop, BaseService.UiAction, BaseService.UiActionBase, BaseService.UiActionField, BaseService.UiActionMethod, BaseService.UiMenu| Modifier and Type | Field and Description |
|---|---|
static Icon |
addIcon |
protected Map<String,FileTreeCommand> |
commands |
static Icon |
copyIcon |
static Icon |
cutIcon |
static Icon |
deleteIcon |
static Icon |
documentIcon |
static Icon |
errorIcon |
protected MultiMap<String,String> |
extOpenCommands |
protected Map<xyz.cofe.io.File,xyz.cofe.gui.swing.tree.TreeTableNodeBasic> |
fileSelection
Выборка файлов для манипуляции
|
static Icon |
folderIcon |
static Icon |
linkBreakIcon |
static Icon |
pasteIcon |
static Icon |
renameIcon |
protected xyz.cofe.common.CloseableSet |
shutdown |
static Icon |
trashIcon |
actionFieldSet, actionMethodSet, initUiActionsSuccess, MENU_FIELD_NAME, runningstartCallLevel, startStopSync, stopCallLevelserviceEventQueue| Constructor and Description |
|---|
FileTreeService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMountPoint()
Добавление точки монтирования
|
void |
copy(xyz.cofe.io.File file,
xyz.cofe.gui.swing.tree.TreeTableNodeBasic fileNode)
Отмечает файл для копирования
|
protected void |
createMountPointsNodes(Iterable<String> mpoints)
Создание узлов для указанных каталогов
|
void |
delete(xyz.cofe.io.File file,
xyz.cofe.gui.swing.tree.TreeTableNodeBasic fileNode)
Удаление файла
|
protected void |
dropMountPointsNodes()
Удаление монтированных каталогов (узлов в root.children)
|
static Icon |
getAddIcon() |
Map<String,FileTreeCommand> |
getCommands()
Команды над файлами
|
static Icon |
getCopyIcon() |
static Icon |
getCutIcon() |
static Icon |
getDeleteIcon() |
static Icon |
getDocumentIcon() |
static Icon |
getErrorIcon() |
MultiMap<String,String> |
getExtOpenCommands() |
FileDialogService |
getFileDialogService() |
Map<xyz.cofe.io.File,xyz.cofe.gui.swing.tree.TreeTableNodeBasic> |
getFileSelection()
Возвращает выборку файлов для манипуляции с оными
|
static Icon |
getFolderIcon() |
static Icon |
getLinkBreakIcon() |
NotifyService |
getNotifyService() |
ObjectBrowserService |
getObjectBrowserService() |
static Icon |
getPasteIcon() |
Set<String> |
getPermanentMountPoints()
"Постоянные" Точки монтирования
|
static Icon |
getRenameIcon() |
static Icon |
getTrashIcon() |
protected void |
initConfWithMapDB() |
List<JMenuItem> |
menuOf(xyz.cofe.gui.swing.tree.TreeTableNodeBasic node,
xyz.cofe.io.File file)
Создает меню для указанного файла из списка команд
|
void |
mkdir(xyz.cofe.io.File container,
xyz.cofe.gui.swing.tree.TreeTableNodeBasic fileNode)
Создает подкаталог
|
void |
mount(xyz.cofe.io.File path,
boolean permanent)
Монтирование каталога
|
void |
paste(xyz.cofe.io.File dest,
xyz.cofe.gui.swing.tree.TreeTableNodeBasic destNode)
копирует/перемещает отченные файлы
|
protected void |
rebuildMountPointsNodes()
Перемонтирование каталогов
|
protected void |
registerFileTypes(xyz.cofe.gui.swing.tree.ob.ObjectBrowser ob) |
protected void |
registerOpenAction() |
protected void |
reinitPermanentMountPoints(MapDB2Service mdb)
Перемонтирование каталогов указанныъх в БД
|
void |
rename(xyz.cofe.io.File file,
xyz.cofe.gui.swing.tree.TreeTableNodeBasic fileNode)
Переименовывает файл/каталог
|
protected void |
shutdown() |
protected void |
startup() |
void |
unmount(xyz.cofe.io.File file,
boolean permanent)
Отмантирование каталога из дерева
|
buttonGroup, getActionFieldSet, getActionMethodSet, getActionsService, getButtonGroup, getMenuService, getStartableMethodsList, getStartableMethodsMap, getStoppableMethodsList, getStoppableMethodsMap, initUiActionError, initUiActions, isRunning, onStart, onStopfireStarted, fireStarting, fireStopped, fireStopping, getServiceByStopper, getServiceDependencies, isDetectCycleStart, isDetectCycleStop, onResolvedDependencies, start, stop, stopByDependencyaddServiceEvent, addServiceListener, addServiceListener, findFirstService, findFirstService, findServices, findServices, findServices, fireServiceEvent, fireServiceEvents, getConsole, getFieldDependencies, getInitDependenciesCallCount, getServiceListeners, getUnresolvedDependencies, hasServiceListener, init, initDependencies, instances, isResolvedDependencies, listeners, onInitServicesEnd, removeServiceListener, resolveDependecyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitaddServiceEvent, addServiceListener, addServiceListener, fireServiceEvents, getServiceListeners, hasServiceListener, removeServiceListenerprotected final xyz.cofe.common.CloseableSet shutdown
public static volatile Icon folderIcon
public static volatile Icon documentIcon
public static volatile Icon errorIcon
public static volatile Icon deleteIcon
public static volatile Icon trashIcon
public static volatile Icon renameIcon
public static volatile Icon cutIcon
public static volatile Icon copyIcon
public static volatile Icon pasteIcon
public static volatile Icon linkBreakIcon
public static volatile Icon addIcon
protected Map<String,FileTreeCommand> commands
protected final Map<xyz.cofe.io.File,xyz.cofe.gui.swing.tree.TreeTableNodeBasic> fileSelection
public ObjectBrowserService getObjectBrowserService()
public NotifyService getNotifyService()
public FileDialogService getFileDialogService()
protected void startup()
protected void shutdown()
protected void registerFileTypes(xyz.cofe.gui.swing.tree.ob.ObjectBrowser ob)
public static Icon getFolderIcon()
public static Icon getDocumentIcon()
public static Icon getErrorIcon()
public static Icon getDeleteIcon()
public static Icon getTrashIcon()
public static Icon getRenameIcon()
public static Icon getCutIcon()
public static Icon getCopyIcon()
public static Icon getPasteIcon()
public static Icon getLinkBreakIcon()
public static Icon getAddIcon()
public Set<String> getPermanentMountPoints()
protected void reinitPermanentMountPoints(MapDB2Service mdb)
mdb - Базаprotected void initConfWithMapDB()
protected void rebuildMountPointsNodes()
protected void dropMountPointsNodes()
protected void createMountPointsNodes(Iterable<String> mpoints)
mpoints - каталогиpublic void mount(xyz.cofe.io.File path,
boolean permanent)
path - каталогpermanent - true - запомнить в списке PermanentMountPointsgetPermanentMountPoints()public void addMountPoint()
public void unmount(xyz.cofe.io.File file,
boolean permanent)
file - каталогpermanent - true - удалить запись из PermanentMountPointsgetPermanentMountPoints()public Map<String,FileTreeCommand> getCommands()
public List<JMenuItem> menuOf(xyz.cofe.gui.swing.tree.TreeTableNodeBasic node, xyz.cofe.io.File file)
node - узелfile - файлgetCommands()protected void registerOpenAction()
public void delete(xyz.cofe.io.File file,
xyz.cofe.gui.swing.tree.TreeTableNodeBasic fileNode)
file - файлfileNode - узелpublic Map<xyz.cofe.io.File,xyz.cofe.gui.swing.tree.TreeTableNodeBasic> getFileSelection()
public void copy(xyz.cofe.io.File file,
xyz.cofe.gui.swing.tree.TreeTableNodeBasic fileNode)
file - файлfileNode - узелpublic void paste(xyz.cofe.io.File dest,
xyz.cofe.gui.swing.tree.TreeTableNodeBasic destNode)
dest - куда копироватьdestNode - узелpublic void mkdir(xyz.cofe.io.File container,
xyz.cofe.gui.swing.tree.TreeTableNodeBasic fileNode)
container - каталог контейнерfileNode - узел контейнераpublic void rename(xyz.cofe.io.File file,
xyz.cofe.gui.swing.tree.TreeTableNodeBasic fileNode)
file - файлfileNode - узелCopyright © 2019. All rights reserved.