2000-04-09 04:13:27 +00:00
|
|
|
/* Copyright (C) 1999, 2000 Free Software Foundation
|
1999-05-05 04:05:57 -07:00
|
|
|
|
|
|
|
This file is part of libjava.
|
|
|
|
|
|
|
|
This software is copyrighted work licensed under the terms of the
|
|
|
|
Libjava License. Please consult the file "LIBJAVA_LICENSE" for
|
|
|
|
details. */
|
|
|
|
|
|
|
|
package java.awt.event;
|
|
|
|
import java.awt.*;
|
|
|
|
|
2000-04-09 04:13:27 +00:00
|
|
|
/* Status: Believed complete and correct to JDK 1.2. */
|
1999-05-05 04:05:57 -07:00
|
|
|
|
|
|
|
public class ActionEvent extends AWTEvent
|
|
|
|
{
|
2000-04-09 04:13:27 +00:00
|
|
|
public static final int ACTION_FIRST = 1001;
|
|
|
|
public static final int ACTION_LAST = 1001;
|
|
|
|
public static final int ACTION_PERFORMED = 1001;
|
|
|
|
public static final int ALT_MASK = 8;
|
|
|
|
public static final int CTRL_MASK = 2;
|
|
|
|
public static final int META_MASK = 4;
|
|
|
|
public static final int SHIFT_MASK = 1;
|
|
|
|
|
1999-05-05 04:05:57 -07:00
|
|
|
String actionCommand;
|
|
|
|
int modifiers;
|
|
|
|
|
|
|
|
public ActionEvent (Object source, int id, String command)
|
|
|
|
{
|
|
|
|
super(source, id);
|
|
|
|
actionCommand = command;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ActionEvent (Object source, int id, String command, int modifiers)
|
|
|
|
{
|
|
|
|
super(source, id);
|
|
|
|
actionCommand = command;
|
|
|
|
this.modifiers = modifiers;
|
|
|
|
}
|
|
|
|
|
2000-04-09 04:13:27 +00:00
|
|
|
public String getActionCommand ()
|
|
|
|
{
|
|
|
|
return actionCommand;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getModifiers ()
|
|
|
|
{
|
|
|
|
return modifiers;
|
|
|
|
}
|
1999-05-05 04:05:57 -07:00
|
|
|
|
2000-04-09 04:13:27 +00:00
|
|
|
public String paramString ()
|
|
|
|
{
|
|
|
|
return ("ActionEvent[" + actionCommand + "," + modifiers
|
|
|
|
+ ";" + super.paramString () + "]");
|
|
|
|
}
|
1999-05-05 04:05:57 -07:00
|
|
|
}
|