public class FileArgument extends AbstractArgument
| Modifier and Type | Field and Description |
|---|---|
protected javax.swing.filechooser.FileFilter |
filter
a filter to put on the FileChooser.
|
(package private) PdfInformationPanel |
label
the label
|
protected boolean |
newFile
indicates if the argument has to point to a new or an existing file.
|
description, name, pcs, tool, value| Constructor and Description |
|---|
FileArgument() |
FileArgument(AbstractTool tool,
java.lang.String name,
java.lang.String description,
boolean newFile)
Constructs a FileArgument.
|
FileArgument(AbstractTool tool,
java.lang.String name,
java.lang.String description,
boolean newFile,
javax.swing.filechooser.FileFilter filter)
Constructs a FileArgument.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
java.lang.Object |
getArgument()
Gets the argument as an object.
|
javax.swing.filechooser.FileFilter |
getFilter() |
PdfInformationPanel |
getLabel() |
void |
setFilter(javax.swing.filechooser.FileFilter filter) |
void |
setLabel(PdfInformationPanel label) |
addPropertyChangeListener, firePropertyChange, getDescription, getName, getTool, getUsage, getValue, propertyChange, removePropertyChangeListener, setDescription, setName, setTool, setValue, setValue, toStringprotected javax.swing.filechooser.FileFilter filter
protected boolean newFile
PdfInformationPanel label
public FileArgument()
public FileArgument(AbstractTool tool, java.lang.String name, java.lang.String description, boolean newFile, javax.swing.filechooser.FileFilter filter)
tool - the tool that needs this argumentname - the name of the argumentdescription - the description of the argumentnewFile - makes the difference between an Open or Save dialogfilter - FileFilterpublic FileArgument(AbstractTool tool, java.lang.String name, java.lang.String description, boolean newFile)
tool - the tool that needs this argumentname - the name of the argumentdescription - the description of the argumentnewFile - makes the difference between an Open or Save dialogpublic java.lang.Object getArgument()
throws java.lang.InstantiationException
getArgument in class AbstractArgumentjava.lang.InstantiationExceptionpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListeneractionPerformed in class AbstractArgumente - ActionEventActionListener.actionPerformed(java.awt.event.ActionEvent)public javax.swing.filechooser.FileFilter getFilter()
public void setFilter(javax.swing.filechooser.FileFilter filter)
filter - The filter to set.public PdfInformationPanel getLabel()
public void setLabel(PdfInformationPanel label)
label - The label to set.