Package com.lowagie.toolbox.arguments
Class PageSizeArgument
java.lang.Object
com.lowagie.toolbox.arguments.AbstractArgument
com.lowagie.toolbox.arguments.OptionArgument
com.lowagie.toolbox.arguments.PageSizeArgument
- All Implemented Interfaces:
ActionListener
,PropertyChangeListener
,EventListener
Argument that can be one of several options.
- Since:
- 2.1.1 (imported from itexttoolbox project)
-
Nested Class Summary
Nested classes/interfaces inherited from class com.lowagie.toolbox.arguments.OptionArgument
OptionArgument.Entry
-
Field Summary
FieldsFields inherited from class com.lowagie.toolbox.arguments.AbstractArgument
description, name, pcs, tool, value
-
Constructor Summary
ConstructorsConstructorDescriptionPageSizeArgument
(AbstractTool tool, String name, String description) Constructs an OptionArgument. -
Method Summary
Methods inherited from class com.lowagie.toolbox.arguments.OptionArgument
addOption
Methods inherited from class com.lowagie.toolbox.arguments.AbstractArgument
addPropertyChangeListener, firePropertyChange, getDescription, getName, getTool, getValue, propertyChange, removePropertyChangeListener, setDescription, setName, setTool, setValue, setValue
-
Field Details
-
options
-
-
Constructor Details
-
PageSizeArgument
Constructs an OptionArgument.- Parameters:
tool
- the tool that needs this argumentname
- the name of the argumentdescription
- the description of the argument
-
-
Method Details
-
addOption
Adds an Option.- Parameters:
description
- the description of the optionvalue
- the value of the option
-
getOptions
Gets the options.- Returns:
- Returns the options.
-
getArgument
Gets the argument as an object.- Overrides:
getArgument
in classOptionArgument
- Returns:
- an object
- Throws:
InstantiationException
- if the key can't be compared with the other ones in the map
-
getUsage
Description copied from class:AbstractArgument
Give you a String that can be used in a usage description.- Overrides:
getUsage
in classOptionArgument
- Returns:
- String
- See Also:
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
- Overrides:
actionPerformed
in classOptionArgument
- Parameters:
evt
- ActionEvent- See Also:
-
toString
Returns a string representation of the object.- Overrides:
toString
in classAbstractArgument
- Returns:
- a string representation of the object.
-