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:
java.awt.event.ActionListener,java.beans.PropertyChangeListener,java.util.EventListener
public class PageSizeArgument extends OptionArgument
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 Modifier and Type Field Description private java.util.TreeMap<java.lang.Object,java.lang.Object>options-
Fields inherited from class com.lowagie.toolbox.arguments.AbstractArgument
description, name, pcs, tool, value
-
-
Constructor Summary
Constructors Constructor Description PageSizeArgument(AbstractTool tool, java.lang.String name, java.lang.String description)Constructs an OptionArgument.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent evt)voidaddOption(java.lang.Object description, java.lang.Object value)Adds an Option.java.lang.ObjectgetArgument()Gets the argument as an object.java.util.TreeMap<java.lang.Object,java.lang.Object>getOptions()Gets the options.java.lang.StringgetUsage()Give you a String that can be used in a usage description.java.lang.StringtoString()Returns a string representation of the object.-
Methods inherited from class com.lowagie.toolbox.arguments.AbstractArgument
addPropertyChangeListener, firePropertyChange, getDescription, getName, getTool, getValue, propertyChange, removePropertyChangeListener, setDescription, setName, setTool, setValue, setValue
-
-
-
-
Constructor Detail
-
PageSizeArgument
public PageSizeArgument(AbstractTool tool, java.lang.String name, java.lang.String description)
Constructs an OptionArgument.- Parameters:
tool- the tool that needs this argumentname- the name of the argumentdescription- the description of the argument
-
-
Method Detail
-
addOption
public void addOption(java.lang.Object description, java.lang.Object value)Adds an Option.- Overrides:
addOptionin classOptionArgument- Parameters:
description- the description of the optionvalue- the value of the option
-
getOptions
public java.util.TreeMap<java.lang.Object,java.lang.Object> getOptions()
Gets the options.- Returns:
- Returns the options.
-
getArgument
public java.lang.Object getArgument() throws java.lang.InstantiationExceptionGets the argument as an object.- Overrides:
getArgumentin classOptionArgument- Returns:
- an object
- Throws:
java.lang.InstantiationException
-
getUsage
public java.lang.String getUsage()
Description copied from class:AbstractArgumentGive you a String that can be used in a usage description.- Overrides:
getUsagein classOptionArgument- Returns:
- String
- See Also:
AbstractArgument.getUsage()
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent evt)
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener- Overrides:
actionPerformedin classOptionArgument- Parameters:
evt- ActionEvent- See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)
-
toString
public java.lang.String toString()
Returns a string representation of the object.- Overrides:
toStringin classAbstractArgument- Returns:
- a string representation of the object.
-
-