Package com.lowagie.toolbox.arguments
Class ImageArgument
- java.lang.Object
-
- com.lowagie.toolbox.arguments.AbstractArgument
-
- com.lowagie.toolbox.arguments.ImageArgument
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.beans.PropertyChangeListener,java.util.EventListener
public class ImageArgument extends AbstractArgument
StringArgument class if the argument is a com.lowagie.text.Image.- Since:
- 2.1.1 (imported from itexttoolbox project)
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.filechooser.FileFilterfiltera filter to put on the FileChooser.-
Fields inherited from class com.lowagie.toolbox.arguments.AbstractArgument
description, name, pcs, tool, value
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)java.lang.ObjectgetArgument()Gets the argument as an object.-
Methods inherited from class com.lowagie.toolbox.arguments.AbstractArgument
addPropertyChangeListener, firePropertyChange, getDescription, getName, getTool, getUsage, getValue, propertyChange, removePropertyChangeListener, setDescription, setName, setTool, setValue, setValue, toString
-
-
-
-
Constructor Detail
-
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
-
-
Method Detail
-
getArgument
public java.lang.Object getArgument() throws java.lang.InstantiationExceptionGets the argument as an object.- Overrides:
getArgumentin classAbstractArgument- Returns:
- an object
- Throws:
java.lang.InstantiationException
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener- Specified by:
actionPerformedin classAbstractArgument- Parameters:
e- ActionEvent- See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)
-
-