com.lowagie.tools.arguments
Class FileArgument
java.lang.Object
com.lowagie.tools.arguments.ToolArgument
com.lowagie.tools.arguments.FileArgument
- All Implemented Interfaces:
- ActionListener, PropertyChangeListener, EventListener
public class FileArgument
- extends ToolArgument
ToolArgument class if the argument is a java.io.File.
Methods inherited from class com.lowagie.tools.arguments.ToolArgument |
addPropertyChangeListener, firePropertyChange, getClassname, getDescription, getName, getUsage, getValue, propertyChange, removePropertyChangeListener, setClassname, setDescription, setName, setValue, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileArgument
public FileArgument(AbstractTool tool,
String name,
String description,
boolean newFile,
FileFilter filter)
- Constructs a FileArgument.
- Parameters:
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
-
FileArgument
public FileArgument(AbstractTool tool,
String name,
String description,
boolean newFile)
- Constructs a FileArgument.
- Parameters:
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 dialog
getArgument
public Object getArgument()
throws InstantiationException
- Gets the argument as an object.
- Overrides:
getArgument
in class ToolArgument
- Returns:
- an object
- Throws:
InstantiationException
actionPerformed
public void actionPerformed(ActionEvent e)
- Specified by:
actionPerformed
in interface ActionListener
- Overrides:
actionPerformed
in class ToolArgument
- See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)
getFilter
public FileFilter getFilter()
- Returns:
- Returns the filter.
setFilter
public void setFilter(FileFilter filter)
- Parameters:
filter
- The filter to set.
getLabel
public LabelAccessory getLabel()
- Returns:
- Returns the label.
setLabel
public void setLabel(LabelAccessory label)
- Parameters:
label
- The label to set.
Copyright © 2006-2007 EGIZ - E-Government Innovationszentrum. All Rights Reserved.