public class FileArgument extends AbstractArgument
| Modifier and Type | Field and Description |
|---|---|
protected FileFilter |
filter
a filter to put on the FileChooser.
|
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,
String name,
String description,
boolean newFile)
Constructs a FileArgument.
|
FileArgument(AbstractTool tool,
String name,
String description,
boolean newFile,
FileFilter filter)
Constructs a FileArgument.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e) |
Object |
getArgument()
Gets the argument as an object.
|
FileFilter |
getFilter() |
PdfInformationPanel |
getLabel() |
void |
setFilter(FileFilter filter) |
void |
setLabel(PdfInformationPanel label) |
addPropertyChangeListener, firePropertyChange, getDescription, getName, getTool, getUsage, getValue, propertyChange, removePropertyChangeListener, setDescription, setName, setTool, setValue, setValue, toStringprotected FileFilter filter
protected boolean newFile
public FileArgument()
public FileArgument(AbstractTool tool, String name, String description, boolean newFile, 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, String name, 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 Object getArgument() throws InstantiationException
getArgument in class AbstractArgumentInstantiationExceptionpublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListeneractionPerformed in class AbstractArgumente - ActionEventActionListener.actionPerformed(java.awt.event.ActionEvent)public FileFilter getFilter()
public void setFilter(FileFilter filter)
filter - The filter to set.public PdfInformationPanel getLabel()
public void setLabel(PdfInformationPanel label)
label - The label to set.Copyright © 2015. All rights reserved.