public class CheckHandler
extends java.lang.Object
implements com.lf.commons.docking.filesys.FileHandler, java.awt.event.ActionListener
Constructor and Description |
---|
CheckHandler()
Constructor method for i18n purposes only.
|
CheckHandler(CheckOptionsWindow window)
Constructor for the component.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
Called whenever the one of the components was activated.
|
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 network file.
|
javax.swing.JMenuItem[] |
handle(java.io.File[] files)
Called when a context menu (popup) becomes visible.
|
javax.swing.JMenuItem[] |
handle(org.apache.commons.vfs2.FileObject[] urls)
Called when a context menu (popup) becomes visible.
|
java.io.File[] |
hexedit(java.io.File[] files)
Called if the user start hexediting a file.
|
org.apache.commons.vfs2.FileObject[] |
hexedit(org.apache.commons.vfs2.FileObject[] urls)
Called if the user start hexediting a network file.
|
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 network file.
|
public CheckHandler() throws java.lang.InstantiationException
I18NExtractor
).
java.lang.InstantiationException
- Error indicationpublic CheckHandler(CheckOptionsWindow window)
window
- The options 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
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
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
files
- The files to be editedcheckonly
- Do not edit but check?public java.io.File[] hexedit(java.io.File[] files)
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).
hexedit
in interface com.lf.commons.docking.filesys.FileHandler
files
- The files to be editedtrue
if the file was opened (accepted)public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
event
- The event objectpublic javax.swing.JMenuItem[] handle(org.apache.commons.vfs2.FileObject[] urls)
null
so that context menues do not become visible at
all in certain conditions.
handle
in interface com.lf.commons.docking.filesys.FileHandler
urls
- The network files to be checkednull
or emptypublic 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
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
urls
- The network files to be editedcheckonly
- Do not edit but check?public org.apache.commons.vfs2.FileObject[] hexedit(org.apache.commons.vfs2.FileObject[] urls)
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).
hexedit
in interface com.lf.commons.docking.filesys.FileHandler
urls
- The network files to be hexeditedCopyright © 2005-2015 Leisenfels UG. All rights reserved.