Package com.lowagie.toolbox.arguments
Class AbstractArgument
java.lang.Object
com.lowagie.toolbox.arguments.AbstractArgument
- All Implemented Interfaces:
ActionListener
,PropertyChangeListener
,EventListener
- Direct Known Subclasses:
BitsetArgument
,ColorArgument
,FileArgument
,FileArrayArgument
,FloatArgument
,ImageArgument
,IntegerArgument
,OptionArgument
,StringArgument
public abstract class AbstractArgument
extends Object
implements ActionListener, PropertyChangeListener
- Since:
- 2.1.1 (imported from itexttoolbox project)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
describes the argument.protected String
short name for the argument.protected PropertyChangeSupport
protected AbstractTool
reference to the internal frameprotected Object
value of the argument. -
Constructor Summary
ConstructorsConstructorDescriptionAbstractArgument
(AbstractTool tool, String name, String description, Object value) -
Method Summary
Modifier and TypeMethodDescriptionabstract void
void
protected void
Gets the argument as an object.getName()
getTool()
getUsage()
Give you a String that can be used in a usage description.getValue()
void
void
void
setDescription
(String description) void
void
setTool
(AbstractTool tool) void
void
toString()
Returns a string representation of the object.
-
Field Details
-
pcs
-
value
value of the argument. -
name
short name for the argument. -
tool
reference to the internal frame -
description
describes the argument.
-
-
Constructor Details
-
AbstractArgument
public AbstractArgument() -
AbstractArgument
-
-
Method Details
-
firePropertyChange
-
removePropertyChangeListener
-
addPropertyChangeListener
-
getValue
- Returns:
- Returns the value.
-
setValue
- Parameters:
value
- The value to set.
-
setValue
-
getDescription
- Returns:
- Returns the description.
-
setDescription
- Parameters:
description
- The description to set.
-
getUsage
Give you a String that can be used in a usage description.- Returns:
- a String
-
getTool
-
setTool
-
getArgument
Gets the argument as an object.- Returns:
- an object
- Throws:
InstantiationException
- if the specified key cannot be compared with the keys currently in the map
-
getName
- Returns:
- Returns the name.
-
setName
- Parameters:
name
- The name to set.
-
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
-
toString
Returns a string representation of the object.
-