be.ugent.caagt.swirl.actions
Class FileOpenAction
public abstract class FileOpenAction
Abstract super class for actions that allow files to be loaded.
Clients should at least override
openFile(File)
.
FileOpenAction(Window parent, boolean multipleAllowed, FileFilter... filters) - Create an action of this type
|
FileOpenAction
public FileOpenAction(Window parent,
boolean multipleAllowed,
FileFilter... filters)
Create an action of this type
parent
- Parent window for the file chooser dialogmultipleAllowed
- Indicates whether the user is allowed to select
more than a single file at the timefilters
- File filters for the file chooser dialog
openFile
protected abstract void openFile(File file)
Called for every file selected by the user. Must be overridden
by clients.
showDialog
protected int showDialog()
Shows the file chooser open dialog.
- showDialog in interface FileAction