public class DigesterFileHandler
extends com.lf.commons.docking.filesys.DefaultFileHandler
Modifier and Type | Field and Description |
---|---|
protected CheckOptionsWindow |
chkwindow
The docking window providing checking options.
|
Constructor and Description |
---|
DigesterFileHandler()
Constructor method for i18n purposes only.
|
DigesterFileHandler(com.lf.commons.model.ApplicationModel model,
java.lang.String unitid,
com.lf.commons.dialog.options.FileTypeUnit unit,
com.lf.commons.docking.editor.EditorWindow editwindow,
CheckOptionsWindow checkwindow)
Constructor for the component.
|
Modifier and Type | Method and Description |
---|---|
java.io.File[] |
edit(java.io.File[] files,
boolean checkonly)
Called if the user start editing a file.
|
org.apache.commons.vfs2.FileObject[] |
edit(org.apache.commons.vfs2.FileObject[] urls,
boolean checkonly)
Called if the user start editing a URL.
|
javax.swing.JMenuItem[] |
handle(java.io.File[] files)
Called when a context menu (popup) becomes visible.
|
java.io.File[] |
open(java.io.File[] files,
boolean checkonly)
Called if the user double-clicks a file.
|
org.apache.commons.vfs2.FileObject[] |
open(org.apache.commons.vfs2.FileObject[] urls,
boolean checkonly)
Called if the user double-clicks a URL.
|
protected CheckOptionsWindow chkwindow
public DigesterFileHandler() throws java.lang.InstantiationException
I18NExtractor
).
java.lang.InstantiationException
- Error indicationpublic DigesterFileHandler(com.lf.commons.model.ApplicationModel model, java.lang.String unitid, com.lf.commons.dialog.options.FileTypeUnit unit, com.lf.commons.docking.editor.EditorWindow editwindow, CheckOptionsWindow checkwindow)
model
- The model holding the configuration (required)unitid
- The unique ID for the FileTypeUnit
(required)unit
- The options unit (required)editwindow
- The docking window to add new editor tabscheckwindow
- The docking window (required)java.lang.IllegalArgumentException
- If window is invalidpublic javax.swing.JMenuItem[] handle(java.io.File[] files)
null
so that context menues do not become visible at
all in certain conditions.
handle
in interface com.lf.commons.docking.filesys.FileHandler
handle
in class com.lf.commons.docking.filesys.DefaultFileHandler
files
- The files to be checkednull
or emptypublic java.io.File[] open(java.io.File[] files, boolean checkonly)
true
to indicate that it has been opened. If it returns false
then the other handlers can be informed in the same way (first come first serve).
open
in interface com.lf.commons.docking.filesys.FileHandler
open
in class com.lf.commons.docking.filesys.DefaultFileHandler
files
- The files to be openedcheckonly
- Do not open but check?public java.io.File[] edit(java.io.File[] files, boolean checkonly)
true
to indicate that it has been opened. If it returns false
then the other handlers can be informed in the same way (first come first serve).
edit
in interface com.lf.commons.docking.filesys.FileHandler
edit
in class com.lf.commons.docking.filesys.DefaultFileHandler
files
- The files to be editedcheckonly
- Do not edit but check?public org.apache.commons.vfs2.FileObject[] open(org.apache.commons.vfs2.FileObject[] urls, boolean checkonly)
true
to indicate that it has been opened. If it returns false
then the other handlers can be informed in the same way (first come first serve).
open
in interface com.lf.commons.docking.filesys.FileHandler
open
in class com.lf.commons.docking.filesys.DefaultFileHandler
urls
- The network files to be openedcheckonly
- Do not open but check?public org.apache.commons.vfs2.FileObject[] edit(org.apache.commons.vfs2.FileObject[] urls, boolean checkonly)
true
to indicate that it has been opened. If it returns false
then the other handlers can be informed in the same way (first come first serve).
edit
in interface com.lf.commons.docking.filesys.FileHandler
edit
in class com.lf.commons.docking.filesys.DefaultFileHandler
urls
- The network files to be editedcheckonly
- Do not edit but check?Copyright © 2005-2015 Leisenfels UG. All rights reserved.