com.lowagie.toolbox.arguments
public class ImageArgument extends AbstractArgument
Modifier and Type | Field and Description |
---|---|
private javax.swing.filechooser.FileFilter |
filter
a filter to put on the FileChooser.
|
description, name, pcs, tool, value
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
java.lang.Object |
getArgument()
Gets the argument as an object.
|
addPropertyChangeListener, firePropertyChange, getDescription, getName, getTool, getUsage, getValue, propertyChange, removePropertyChangeListener, setDescription, setName, setTool, setValue, setValue, toString
private javax.swing.filechooser.FileFilter filter
public ImageArgument(AbstractTool tool, java.lang.String name, java.lang.String description, javax.swing.filechooser.FileFilter filter)
tool
- the tool that needs this argumentname
- the name of the argumentdescription
- the description of the argumentfilter
- a custom filterpublic ImageArgument(AbstractTool tool, java.lang.String name, java.lang.String description)
tool
- the tool that needs this argumentname
- the name of the argumentdescription
- the description of the argumentpublic java.lang.Object getArgument() throws java.lang.InstantiationException
getArgument
in class AbstractArgument
java.lang.InstantiationException
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
actionPerformed
in class AbstractArgument
e
- ActionEventActionListener.actionPerformed(java.awt.event.ActionEvent)