|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.tools.arguments.ToolArgument
This is an argument of one of the tools in the toolbox.
Field Summary | |
protected String |
classname
type of the argument. |
protected String |
description
describes the argument. |
protected String |
name
short name for the argument. |
(package private) Vector |
propertyChangeListeners
|
protected AbstractTool |
tool
reference to the internal frame |
protected String |
value
value of the argument. |
Constructor Summary | |
ToolArgument()
Constructs a ToolArgument. |
|
ToolArgument(AbstractTool tool,
String name,
String description,
String classname)
Constructs a ToolArgument. |
Method Summary | |
void |
actionPerformed(ActionEvent e)
|
void |
addPropertyChangeListener(PropertyChangeListener l)
|
protected void |
firePropertyChange(PropertyChangeEvent evt)
|
Object |
getArgument()
Gets the argument as an object. |
String |
getClassname()
|
String |
getDescription()
|
String |
getName()
|
String |
getUsage()
Give you a String that can be used in a usage description. |
String |
getValue()
|
void |
propertyChange(PropertyChangeEvent evt)
This method gets called when a bound property is changed. |
void |
removePropertyChangeListener(PropertyChangeListener l)
|
void |
setClassname(String classname)
|
void |
setDescription(String description)
|
void |
setName(String name)
|
void |
setValue(String value)
|
void |
setValue(String value,
String propertyname)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected AbstractTool tool
protected String description
protected String name
protected String classname
protected String value
transient Vector propertyChangeListeners
Constructor Detail |
public ToolArgument()
public ToolArgument(AbstractTool tool, String name, String description, String classname)
tool
- the tool that needs this argumentname
- the name of the argumentdescription
- the description of the argumentclassname
- the type of the argumentMethod Detail |
public Object getArgument() throws InstantiationException
InstantiationException
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
ActionListener.actionPerformed(java.awt.event.ActionEvent)
public String getUsage()
public String getClassname()
public void setClassname(String classname)
classname
- The classname to set.public String getDescription()
public void setDescription(String description)
description
- The description to set.public String getName()
public void setName(String name)
name
- The name to set.public String getValue()
public void setValue(String value)
value
- The value to set.public void setValue(String value, String propertyname)
public void addPropertyChangeListener(PropertyChangeListener l)
public void removePropertyChangeListener(PropertyChangeListener l)
protected void firePropertyChange(PropertyChangeEvent evt)
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
evt
- A PropertyChangeEvent object describing the event source and the property that has
changed.
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |