com.lowagie.toolbox.arguments

Class ImageArgument

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
FileFilterfilter
a filter to put on the FileChooser.
Constructor Summary
ImageArgument(AbstractTool tool, String name, String description, FileFilter filter)
Constructs a FileArgument.
ImageArgument(AbstractTool tool, String name, String description)
Constructs a FileArgument.
Method Summary
voidactionPerformed(ActionEvent e)
ObjectgetArgument()
Gets the argument as an object.

Field Detail

filter

private FileFilter filter
a filter to put on the FileChooser.

Constructor Detail

ImageArgument

public ImageArgument(AbstractTool tool, String name, String description, FileFilter filter)
Constructs a FileArgument.

Parameters: tool the tool that needs this argument name the name of the argument description the description of the argument filter a custom filter

ImageArgument

public ImageArgument(AbstractTool tool, String name, String description)
Constructs a FileArgument.

Parameters: tool the tool that needs this argument name the name of the argument description the description of the argument

Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)

Parameters: e ActionEvent

See Also: java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)

getArgument

public Object getArgument()
Gets the argument as an object.

Returns: an object

Throws: InstantiationException