com.lowagie.toolbox.arguments
public class FileArgument extends AbstractArgument
Since: 2.1.1 (imported from itexttoolbox project)
Field Summary | |
---|---|
protected FileFilter | filter a filter to put on the FileChooser. |
PdfInformationPanel | label the label |
protected boolean | newFile indicates if the argument has to point to a new or an existing file. |
Constructor Summary | |
---|---|
FileArgument() | |
FileArgument(AbstractTool tool, String name, String description, boolean newFile, FileFilter filter)
Constructs a FileArgument.
| |
FileArgument(AbstractTool tool, String name, String description, boolean newFile)
Constructs a FileArgument. |
Method Summary | |
---|---|
void | actionPerformed(ActionEvent e) |
Object | getArgument()
Gets the argument as an object. |
FileFilter | getFilter() |
PdfInformationPanel | getLabel() |
void | setFilter(FileFilter filter) |
void | setLabel(PdfInformationPanel label) |
Parameters: tool the tool that needs this argument name the name of the argument description the description of the argument newFile makes the difference between an Open or Save dialog filter FileFilter
Parameters: tool the tool that needs this argument name the name of the argument description the description of the argument newFile makes the difference between an Open or Save dialog
Parameters: e ActionEvent
See Also: java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
Returns: an object
Throws: InstantiationException
Returns: Returns the filter.
Returns: Returns the label.
Parameters: filter The filter to set.
Parameters: label The label to set.