OSDN Git Service

d62289e4936166bb83f2e22e622b02c30df568cb
[pf3gnuchains/gcc-fork.git] / libjava / java / awt / event / ActionEvent.java
1 /* Copyright (C) 1999  Red Hat, Inc.
2
3    This file is part of libjava.
4
5 This software is copyrighted work licensed under the terms of the
6 Libjava License.  Please consult the file "LIBJAVA_LICENSE" for
7 details.  */
8
9 package java.awt.event;
10 import java.awt.*;
11
12 /* A very incomplete placeholder. */
13
14 public class ActionEvent extends AWTEvent
15 {
16   String actionCommand;
17   int modifiers;
18
19   public ActionEvent (Object source, int id, String command)
20   {
21     super(source, id);
22     actionCommand = command;
23   }
24
25   public ActionEvent (Object source, int id, String command, int modifiers)
26   {
27     super(source, id);
28     actionCommand = command;
29     this.modifiers = modifiers;
30   }
31
32   public String getActionCommand () { return actionCommand; }
33
34   public int getModifiers () { return modifiers; }
35 }