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 Details

    • pcs

      protected PropertyChangeSupport pcs
    • value

      protected Object value
      value of the argument.
    • name

      protected String name
      short name for the argument.
    • tool

      protected AbstractTool tool
      reference to the internal frame
    • description

      protected String description
      describes the argument.
  • Constructor Details

    • AbstractArgument

      public AbstractArgument()
    • AbstractArgument

      public AbstractArgument(AbstractTool tool, String name, String description, Object value)
  • Method Details

    • firePropertyChange

      protected void firePropertyChange(PropertyChangeEvent evt)
    • removePropertyChangeListener

      public void removePropertyChangeListener(PropertyChangeListener l)
    • addPropertyChangeListener

      public void addPropertyChangeListener(PropertyChangeListener l)
    • getValue

      public Object getValue()
      Returns:
      Returns the value.
    • setValue

      public void setValue(Object value)
      Parameters:
      value - The value to set.
    • setValue

      public void setValue(Object value, String propertyname)
    • getDescription

      public String getDescription()
      Returns:
      Returns the description.
    • setDescription

      public void setDescription(String description)
      Parameters:
      description - The description to set.
    • getUsage

      public String getUsage()
      Give you a String that can be used in a usage description.
      Returns:
      a String
    • getTool

      public AbstractTool getTool()
    • setTool

      public void setTool(AbstractTool tool)
    • getArgument

      public Object getArgument() throws InstantiationException
      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

      public String getName()
      Returns:
      Returns the name.
    • setName

      public void setName(String name)
      Parameters:
      name - The name to set.
    • propertyChange

      public void propertyChange(PropertyChangeEvent evt)
      Specified by:
      propertyChange in interface PropertyChangeListener
    • actionPerformed

      public abstract void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
    • toString

      public String toString()
      Returns a string representation of the object.
      Overrides:
      toString in class Object
      Returns:
      a string representation of the object.