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
Fields 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
addOptionMethods inherited from class com.lowagie.toolbox.arguments.AbstractArgument
addPropertyChangeListener, firePropertyChange, getDescription, getName, getTool, getValue, propertyChange, removePropertyChangeListener, setDescription, setName, setTool, setValue, setValue
-
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:
getArgumentin 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:AbstractArgumentGive you a String that can be used in a usage description.- Overrides:
getUsagein classOptionArgument- Returns:
- String
- See Also:
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener- Overrides:
actionPerformedin classOptionArgument- Parameters:
evt- ActionEvent- See Also:
-
toString
Returns a string representation of the object.- Overrides:
toStringin classAbstractArgument- Returns:
- a string representation of the object.
-