com.lowagie.tools.arguments

Class PageSizeArgument

public class PageSizeArgument extends OptionArgument

Argument that can be one of several options.
Field Summary
TreeMapoptions
Constructor Summary
PageSizeArgument(AbstractTool tool, String name, String description)
Constructs an OptionArgument.
Method Summary
voidactionPerformed(ActionEvent evt)
voidaddOption(Object description, Object value)
Adds an Option.
ObjectgetArgument()
Gets the argument as an object.
TreeMapgetOptions()
Gets the options.
StringgetUsage()

Field Detail

options

private TreeMap options

Constructor Detail

PageSizeArgument

public PageSizeArgument(AbstractTool tool, String name, String description)
Constructs an OptionArgument.

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 evt)

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

addOption

public void addOption(Object description, Object value)
Adds an Option.

Parameters: description the description of the option value the value of the option

getArgument

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

Returns: an object

Throws: InstantiationException

getOptions

public TreeMap getOptions()
Gets the options.

Returns: Returns the options.

getUsage

public String getUsage()

See Also: getUsage