Custom toString() output.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1004 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: CommandEvent.java,v 1.2 2002/02/28 21:55:15 mdb Exp $
|
||||
// $Id: CommandEvent.java,v 1.3 2003/01/03 23:07:33 mdb Exp $
|
||||
|
||||
package com.samskivert.swing.event;
|
||||
|
||||
@@ -28,6 +28,15 @@ public class CommandEvent extends ActionEvent
|
||||
return _argument;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates a string representation of this command.
|
||||
*/
|
||||
public String toString ()
|
||||
{
|
||||
return "[cmd=" + getActionCommand() + ", src=" + getSource() +
|
||||
", arg=" + _argument + "]";
|
||||
}
|
||||
|
||||
/** The argument to this command event. */
|
||||
protected Object _argument;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user