//
// $Id: CommandEvent.java,v 1.2 2002/02/28 21:55:15 mdb Exp $

package com.samskivert.swing.event;

import java.awt.event.ActionEvent;

/**
 * An action event with an associated argument. Often times with
 * controllers, one wants to post a command with an associated object
 * (which we call the argument), but action event provides no mechanism to
 * do so. So this class is provided for such situations.
 */
public class CommandEvent extends ActionEvent
{
    public CommandEvent (Object source, String command, Object argument)
    {
        super(source, ActionEvent.ACTION_PERFORMED, command);
        _argument = argument;
    }

    /**
     * Returns the argument provided to the command event at construct
     * time.
     */
    public Object getArgument ()
    {
        return _argument;
    }

    /** The argument to this command event. */
    protected Object _argument;
}

@@ -30,29 +30,29 @@
 v 1.
-2
+3
  200
-2/02/28 21:55:15
+3/01/03 23:07:33
  mdb
@@ -801,24 +801,252 @@
 ent;%0A    %7D%0A%0A
+    /**%0A     * Generates a string representation of this command.%0A     */%0A    public String toString ()%0A    %7B%0A        return %22%5Bcmd=%22 + getActionCommand() + %22, src=%22 + getSource() +%0A            %22, arg=%22 + _argument + %22%5D%22;%0A    %7D%0A%0A
     /** The 

Custom toString() output.