com.lowagie.toolbox.arguments
public class PageSizeArgument extends OptionArgument
OptionArgument.Entry
Modifier and Type | Field and Description |
---|---|
private java.util.TreeMap<java.lang.Object,java.lang.Object> |
options |
description, name, pcs, tool, value
Constructor and Description |
---|
PageSizeArgument(AbstractTool tool,
java.lang.String name,
java.lang.String description)
Constructs an OptionArgument.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent evt) |
void |
addOption(java.lang.Object description,
java.lang.Object value)
Adds an Option.
|
java.lang.Object |
getArgument()
Gets the argument as an object.
|
java.util.TreeMap<java.lang.Object,java.lang.Object> |
getOptions()
Gets the options.
|
java.lang.String |
getUsage()
Give you a String that can be used in a usage description.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
addPropertyChangeListener, firePropertyChange, getDescription, getName, getTool, getValue, propertyChange, removePropertyChangeListener, setDescription, setName, setTool, setValue, setValue
public PageSizeArgument(AbstractTool tool, java.lang.String name, java.lang.String description)
tool
- the tool that needs this argumentname
- the name of the argumentdescription
- the description of the argumentpublic void addOption(java.lang.Object description, java.lang.Object value)
addOption
in class OptionArgument
description
- the description of the optionvalue
- the value of the optionpublic java.util.TreeMap<java.lang.Object,java.lang.Object> getOptions()
public java.lang.Object getArgument() throws java.lang.InstantiationException
getArgument
in class OptionArgument
java.lang.InstantiationException
public java.lang.String getUsage()
AbstractArgument
getUsage
in class OptionArgument
AbstractArgument.getUsage()
public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed
in interface java.awt.event.ActionListener
actionPerformed
in class OptionArgument
evt
- ActionEventActionListener.actionPerformed(java.awt.event.ActionEvent)
public java.lang.String toString()
toString
in class AbstractArgument