public class PageSizeArgument extends OptionArgument
OptionArgument.Entry
description, name, pcs, tool, value
Constructor and Description |
---|
PageSizeArgument(AbstractTool tool,
String name,
String description)
Constructs an OptionArgument.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent evt) |
void |
addOption(Object description,
Object value)
Adds an Option.
|
Object |
getArgument()
Gets the argument as an object.
|
TreeMap<Object,Object> |
getOptions()
Gets the options.
|
String |
getUsage()
Give you a String that can be used in a usage description.
|
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, String name, String description)
tool
- the tool that needs this argumentname
- the name of the argumentdescription
- the description of the argumentpublic void addOption(Object description, Object value)
addOption
in class OptionArgument
description
- the description of the optionvalue
- the value of the optionpublic TreeMap<Object,Object> getOptions()
public Object getArgument() throws InstantiationException
getArgument
in class OptionArgument
InstantiationException
public String getUsage()
AbstractArgument
getUsage
in class OptionArgument
AbstractArgument.getUsage()
public void actionPerformed(ActionEvent evt)
actionPerformed
in interface ActionListener
actionPerformed
in class OptionArgument
evt
- ActionEventActionListener.actionPerformed(java.awt.event.ActionEvent)
public String toString()
toString
in class AbstractArgument
Copyright © 2015. All rights reserved.