com.lowagie.tools.arguments
Class ImageArgument
java.lang.Object
com.lowagie.tools.arguments.ToolArgument
com.lowagie.tools.arguments.ImageArgument
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.beans.PropertyChangeListener, java.util.EventListener
public class ImageArgument
- extends ToolArgument
ToolArgument class if the argument is a com.lowagie.text.Image.
Field Summary |
private javax.swing.filechooser.FileFilter |
filter
a filter to put on the FileChooser. |
Constructor Summary |
ImageArgument(AbstractTool tool,
java.lang.String name,
java.lang.String description)
Constructs a FileArgument. |
ImageArgument(AbstractTool tool,
java.lang.String name,
java.lang.String description,
javax.swing.filechooser.FileFilter filter)
Constructs a FileArgument. |
Methods inherited from class com.lowagie.tools.arguments.ToolArgument |
addPropertyChangeListener, firePropertyChange, getClassname, getDescription, getName, getUsage, getValue, propertyChange, removePropertyChangeListener, setClassname, setDescription, setName, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
filter
private javax.swing.filechooser.FileFilter filter
- a filter to put on the FileChooser.
ImageArgument
public ImageArgument(AbstractTool tool,
java.lang.String name,
java.lang.String description,
javax.swing.filechooser.FileFilter filter)
- Constructs a FileArgument.
- Parameters:
tool
- the tool that needs this argumentname
- the name of the argumentdescription
- the description of the argumentfilter
- a custom filter
ImageArgument
public ImageArgument(AbstractTool tool,
java.lang.String name,
java.lang.String description)
- Constructs a FileArgument.
- Parameters:
tool
- the tool that needs this argumentname
- the name of the argumentdescription
- the description of the argument
getArgument
public java.lang.Object getArgument()
throws java.lang.InstantiationException
- Gets the argument as an object.
- Overrides:
getArgument
in class ToolArgument
- Returns:
- an object
- Throws:
java.lang.InstantiationException
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
- Overrides:
actionPerformed
in class ToolArgument
- See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)