public abstract class AbstractArgument extends Object implements ActionListener, PropertyChangeListener
Modifier and Type | Field and Description |
---|---|
protected String |
description
describes the argument.
|
protected String |
name
short name for the argument.
|
protected PropertyChangeSupport |
pcs |
protected AbstractTool |
tool
reference to the internal frame
|
protected Object |
value
value of the argument.
|
Constructor and Description |
---|
AbstractArgument() |
AbstractArgument(AbstractTool tool,
String name,
String description,
Object value) |
Modifier and Type | Method and Description |
---|---|
abstract void |
actionPerformed(ActionEvent e) |
void |
addPropertyChangeListener(PropertyChangeListener l) |
protected void |
firePropertyChange(PropertyChangeEvent evt) |
Object |
getArgument()
Gets the argument as an object.
|
String |
getDescription() |
String |
getName() |
AbstractTool |
getTool() |
String |
getUsage()
Give you a String that can be used in a usage description.
|
Object |
getValue() |
void |
propertyChange(PropertyChangeEvent evt) |
void |
removePropertyChangeListener(PropertyChangeListener l) |
void |
setDescription(String description) |
void |
setName(String name) |
void |
setTool(AbstractTool tool) |
void |
setValue(Object value) |
void |
setValue(Object value,
String propertyname) |
String |
toString()
Returns a string representation of the object.
|
protected PropertyChangeSupport pcs
protected Object value
protected String name
protected AbstractTool tool
protected String description
public AbstractArgument()
public AbstractArgument(AbstractTool tool, String name, String description, Object value)
protected void firePropertyChange(PropertyChangeEvent evt)
public void removePropertyChangeListener(PropertyChangeListener l)
public void addPropertyChangeListener(PropertyChangeListener l)
public Object getValue()
public void setDescription(String description)
description
- The description to set.public String getDescription()
public void setName(String name)
name
- The name to set.public String getUsage()
public AbstractTool getTool()
public void setTool(AbstractTool tool)
public Object getArgument() throws InstantiationException
InstantiationException
public String getName()
public void setValue(Object value)
value
- The value to set.public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
public abstract void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
Copyright © 2013 InProTopia Corporation. All Rights Reserved.