public class OptionArgument extends AbstractArgument
| Modifier and Type | Class and Description |
|---|---|
class |
OptionArgument.Entry
An Entry that can be chosen as option.
|
description, name, pcs, tool, value| Constructor and Description |
|---|
OptionArgument(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.
|
String |
getUsage()
Give you a String that can be used in a usage description.
|
addPropertyChangeListener, firePropertyChange, getDescription, getName, getTool, getValue, propertyChange, removePropertyChangeListener, setDescription, setName, setTool, setValue, setValue, toStringpublic OptionArgument(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)
description - the description of the optionvalue - the value of the optionpublic Object getArgument() throws InstantiationException
getArgument in class AbstractArgumentInstantiationExceptionpublic String getUsage()
AbstractArgumentgetUsage in class AbstractArgumentAbstractArgument.getUsage()public void actionPerformed(ActionEvent evt)
actionPerformed in interface ActionListeneractionPerformed in class AbstractArgumentevt - ActionEventActionListener.actionPerformed(java.awt.event.ActionEvent)Copyright © 2015. All rights reserved.