public class ImageArgument extends ToolArgument
Modifier and Type | Field and Description |
---|---|
private javax.swing.filechooser.FileFilter |
filter
a filter to put on the FileChooser.
|
classname, description, name, propertyChangeListeners, 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, getClassname, getDescription, getName, getUsage, getValue, propertyChange, removePropertyChangeListener, setClassname, setDescription, setName, setValue
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 ToolArgument
java.lang.InstantiationException
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
actionPerformed
in class ToolArgument
ActionListener.actionPerformed(java.awt.event.ActionEvent)