com.lowagie.toolbox.arguments

Class PageSizeArgument

public class PageSizeArgument extends OptionArgument

Argument that can be one of several options.

Since: 2.1.1 (imported from itexttoolbox project)

Field Summary
TreeMap<Object,Object>options
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.
TreeMap<Object,Object>getOptions()
Gets the options.
StringgetUsage()
StringtoString()
Returns a string representation of the object.

Field Detail

options

private TreeMap<Object,Object> 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)

Parameters: evt ActionEvent

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<Object,Object> getOptions()
Gets the options.

Returns: Returns the options.

getUsage

public String getUsage()

Returns: String

See Also: StringArgument

toString

public String toString()
Returns a string representation of the object.

Returns: a string representation of the object.