|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.lowagie.toolbox.arguments.AbstractArgument
com.lowagie.toolbox.arguments.OptionArgument
com.lowagie.toolbox.arguments.PageSizeArgument
public class PageSizeArgument
Argument that can be one of several options.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.lowagie.toolbox.arguments.OptionArgument |
|---|
OptionArgument.Entry |
| Field Summary | |
|---|---|
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 | |
|---|---|
PageSizeArgument(AbstractTool tool,
java.lang.String name,
java.lang.String description)
Constructs an OptionArgument. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.lowagie.toolbox.arguments.AbstractArgument |
|---|
addPropertyChangeListener, firePropertyChange, getDescription, getName, getTool, getValue, propertyChange, removePropertyChangeListener, setDescription, setName, setTool, setValue, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private java.util.TreeMap<java.lang.Object,java.lang.Object> options
| Constructor Detail |
|---|
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 argument| Method Detail |
|---|
public void addOption(java.lang.Object description,
java.lang.Object value)
addOption in class OptionArgumentdescription - 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 OptionArgumentjava.lang.InstantiationExceptionpublic java.lang.String getUsage()
AbstractArgument
getUsage in class OptionArgumentAbstractArgument.getUsage()public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed in interface java.awt.event.ActionListeneractionPerformed in class OptionArgumentevt - ActionEventActionListener.actionPerformed(java.awt.event.ActionEvent)public java.lang.String toString()
toString in class AbstractArgument
|
Hosted by Hostbasket | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||