|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.tools.arguments.ToolArgument
com.lowagie.tools.arguments.FileArgument
ToolArgument class if the argument is a java.io.File.
Field Summary | |
private FileFilter |
filter
a filter to put on the FileChooser. |
private boolean |
newFile
indicates if the argument has to point to a new or an existing file. |
Fields inherited from class com.lowagie.tools.arguments.ToolArgument |
classname, description, name, tool, value |
Constructor Summary | |
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. |
Method Summary | |
void |
actionPerformed(ActionEvent e)
|
Object |
getArgument()
Gets the argument as an object. |
Methods inherited from class com.lowagie.tools.arguments.ToolArgument |
getClassname, getDescription, getName, getUsage, getValue, setClassname, setDescription, setName, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private FileFilter filter
private boolean newFile
Constructor Detail |
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
- public 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 dialogMethod Detail |
public Object getArgument() throws InstantiationException
getArgument
in class ToolArgument
InstantiationException
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
actionPerformed
in class ToolArgument
ActionListener.actionPerformed(java.awt.event.ActionEvent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |