com.lowagie.toolbox.arguments
public class OptionArgument extends AbstractArgument
Since: 2.1.1 (imported from itexttoolbox project)
Nested Class Summary | |
---|---|
class | OptionArgument.Entry
An Entry that can be chosen as option. |
Field Summary | |
---|---|
TreeMap<String,OptionArgument.Entry> | options |
Constructor Summary | |
---|---|
OptionArgument(AbstractTool tool, String name, String description)
Constructs an OptionArgument. |
Method Summary | |
---|---|
void | actionPerformed(ActionEvent evt) |
void | addOption(Object description, Object value)
Adds an Option. |
Object | getArgument()
Gets the argument as an object. |
String | getUsage() |
Parameters: tool the tool that needs this argument name the name of the argument description the description of the argument
Parameters: evt ActionEvent
See Also: java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
Parameters: description the description of the option value the value of the option
Returns: an object
Throws: InstantiationException
Returns: String
See Also: StringArgument