com.lowagie.tools.arguments
Class BitsetArgument
java.lang.Object
com.lowagie.tools.arguments.ToolArgument
com.lowagie.tools.arguments.BitsetArgument
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.beans.PropertyChangeListener, java.util.EventListener
public class BitsetArgument
- extends ToolArgument
Argument that results in a set of "1" and "0" values.
Field Summary |
private javax.swing.JCheckBox[] |
options
These are the different options that can be true or false. |
Constructor Summary |
BitsetArgument(AbstractTool tool,
java.lang.String name,
java.lang.String description,
java.lang.String[] options)
Constructs an BitsetArgument. |
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent evt)
|
java.lang.Object |
getArgument()
Gets the argument as an object. |
java.lang.String |
getUsage()
Give you a String that can be used in a usage description. |
Methods inherited from class com.lowagie.tools.arguments.ToolArgument |
addPropertyChangeListener, firePropertyChange, getClassname, getDescription, getName, getValue, propertyChange, removePropertyChangeListener, setClassname, setDescription, setName, setValue, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
options
private javax.swing.JCheckBox[] options
- These are the different options that can be true or false.
BitsetArgument
public BitsetArgument(AbstractTool tool,
java.lang.String name,
java.lang.String description,
java.lang.String[] options)
- Constructs an BitsetArgument.
- Parameters:
tool
- the tool that needs this argumentname
- the name of the argumentdescription
- the description of the argumentoptions
- the different options that can be true or false
getArgument
public java.lang.Object getArgument()
throws java.lang.InstantiationException
- Gets the argument as an object.
- Overrides:
getArgument
in class ToolArgument
- Returns:
- an object
- Throws:
java.lang.InstantiationException
getUsage
public java.lang.String getUsage()
- Description copied from class:
ToolArgument
- Give you a String that can be used in a usage description.
- Overrides:
getUsage
in class ToolArgument
- Returns:
- a String
- See Also:
ToolArgument.getUsage()
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent evt)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
- Overrides:
actionPerformed
in class ToolArgument
- See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)