Class AbstractArgument

    • Field Detail

      • pcs

        protected java.beans.PropertyChangeSupport pcs
      • value

        protected java.lang.Object value
        value of the argument.
      • name

        protected java.lang.String name
        short name for the argument.
      • tool

        protected AbstractTool tool
        reference to the internal frame
      • description

        protected java.lang.String description
        describes the argument.
    • Constructor Detail

      • AbstractArgument

        public AbstractArgument()
      • AbstractArgument

        public AbstractArgument​(AbstractTool tool,
                                java.lang.String name,
                                java.lang.String description,
                                java.lang.Object value)
    • Method Detail

      • firePropertyChange

        protected void firePropertyChange​(java.beans.PropertyChangeEvent evt)
      • removePropertyChangeListener

        public void removePropertyChangeListener​(java.beans.PropertyChangeListener l)
      • addPropertyChangeListener

        public void addPropertyChangeListener​(java.beans.PropertyChangeListener l)
      • getValue

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

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

        public void setValue​(java.lang.Object value,
                             java.lang.String propertyname)
      • getDescription

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

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

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

        public java.lang.Object getArgument()
                                     throws java.lang.InstantiationException
        Gets the argument as an object.
        Returns:
        an object
        Throws:
        java.lang.InstantiationException - if the specified key cannot be compared with the keys currently in the map
      • getName

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

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

        public void propertyChange​(java.beans.PropertyChangeEvent evt)
        Specified by:
        propertyChange in interface java.beans.PropertyChangeListener
      • actionPerformed

        public abstract void actionPerformed​(java.awt.event.ActionEvent e)
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
      • toString

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