aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/awt/event
diff options
context:
space:
mode:
authorPer Bothner <bothner@gcc.gnu.org>1999-05-05 04:05:57 -0700
committerPer Bothner <bothner@gcc.gnu.org>1999-05-05 04:05:57 -0700
commitfd164b17ac570b8fd2ade4b0479a7e110b6320b3 (patch)
tree3edb990316aba3328ac1c48470efa027d207dceb /libjava/java/awt/event
parentdfac8a13330e009a0143c9823b92c27d74b18a2b (diff)
downloadgcc-fd164b17ac570b8fd2ade4b0479a7e110b6320b3.zip
gcc-fd164b17ac570b8fd2ade4b0479a7e110b6320b3.tar.gz
gcc-fd164b17ac570b8fd2ade4b0479a7e110b6320b3.tar.bz2
Add AWT stubs and incomplete classes.
From-SVN: r26778
Diffstat (limited to 'libjava/java/awt/event')
-rw-r--r--libjava/java/awt/event/ActionEvent.java35
-rw-r--r--libjava/java/awt/event/ActionListener.java21
-rw-r--r--libjava/java/awt/event/ComponentEvent.java20
-rw-r--r--libjava/java/awt/event/InputEvent.java22
-rw-r--r--libjava/java/awt/event/KeyEvent.java38
-rw-r--r--libjava/java/awt/event/KeyListener.java23
-rw-r--r--libjava/java/awt/event/TextEvent.java20
-rw-r--r--libjava/java/awt/event/TextListener.java22
-rw-r--r--libjava/java/awt/event/WindowAdapter.java27
-rw-r--r--libjava/java/awt/event/WindowEvent.java19
-rw-r--r--libjava/java/awt/event/WindowListener.java27
11 files changed, 274 insertions, 0 deletions
diff --git a/libjava/java/awt/event/ActionEvent.java b/libjava/java/awt/event/ActionEvent.java
new file mode 100644
index 0000000..3ea105b
--- /dev/null
+++ b/libjava/java/awt/event/ActionEvent.java
@@ -0,0 +1,35 @@
+/* Copyright (C) 1999 Cygnus Solutions
+
+ 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.*;
+
+/* A very incomplete placeholder. */
+
+public class ActionEvent extends AWTEvent
+{
+ 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;
+ }
+
+ public String getActionCommand () { return actionCommand; }
+
+ public int getModifiers () { return modifiers; }
+}
diff --git a/libjava/java/awt/event/ActionListener.java b/libjava/java/awt/event/ActionListener.java
new file mode 100644
index 0000000..5a3700a
--- /dev/null
+++ b/libjava/java/awt/event/ActionListener.java
@@ -0,0 +1,21 @@
+/* Copyright (C) 1999 Cygnus Solutions
+
+ 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;
+
+/**
+ * @author Per Bothner <bothner@cygnus.com>
+ * @date Fenruary, 1999.
+ */
+
+/* Status: Believed complete and correct. */
+
+public interface ActionListener extends java.util.EventListener
+{
+ public void actionPerformed (ActionEvent e);
+}
diff --git a/libjava/java/awt/event/ComponentEvent.java b/libjava/java/awt/event/ComponentEvent.java
new file mode 100644
index 0000000..c44ddf6
--- /dev/null
+++ b/libjava/java/awt/event/ComponentEvent.java
@@ -0,0 +1,20 @@
+/* Copyright (C) 1999 Cygnus Solutions
+
+ 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.*;
+
+/* A very incomplete placeholder. */
+
+public class ComponentEvent extends AWTEvent
+{
+ public ComponentEvent (Object source, int id)
+ {
+ super(source, id);
+ }
+}
diff --git a/libjava/java/awt/event/InputEvent.java b/libjava/java/awt/event/InputEvent.java
new file mode 100644
index 0000000..bc98e7e
--- /dev/null
+++ b/libjava/java/awt/event/InputEvent.java
@@ -0,0 +1,22 @@
+/* Copyright (C) 1999 Cygnus Solutions
+
+ 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;
+
+/* A very incomplete placeholder. */
+
+public class InputEvent extends ComponentEvent
+{
+ InputEvent (Object source, int id) // Not public
+ {
+ super(source, id);
+ }
+
+ public void consume ()
+ { /* FIXME */ }
+}
diff --git a/libjava/java/awt/event/KeyEvent.java b/libjava/java/awt/event/KeyEvent.java
new file mode 100644
index 0000000..1fcb974
--- /dev/null
+++ b/libjava/java/awt/event/KeyEvent.java
@@ -0,0 +1,38 @@
+/* Copyright (C) 1999 Cygnus Solutions
+
+ 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.*;
+
+/* A very incomplete placeholder. */
+
+public class KeyEvent extends InputEvent
+{
+ int keyCode;
+ char keyChar;
+ int modifiers;
+
+ public KeyEvent (Component source, int id, long when,
+ int modifiers, int keyCode, char keyChar)
+ {
+ super(source, id);
+ this.keyCode = keyCode;
+ this.keyChar = keyChar;
+ this.modifiers = modifiers;
+ }
+
+ public int getKeyCode () { return keyCode; }
+
+ public char getKeyChar () { return keyChar; }
+
+ public void setKeyCode (int keyCode) { this.keyCode = keyCode; }
+
+ public void setKeyChar (char keyChar) { this.keyChar = keyChar; }
+
+ public void setModifiers (int modifiers) { this.modifiers = modifiers; }
+}
diff --git a/libjava/java/awt/event/KeyListener.java b/libjava/java/awt/event/KeyListener.java
new file mode 100644
index 0000000..126cc45
--- /dev/null
+++ b/libjava/java/awt/event/KeyListener.java
@@ -0,0 +1,23 @@
+/* Copyright (C) 1999 Cygnus Solutions
+
+ 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;
+
+/**
+ * @author Per Bothner <bothner@cygnus.com>
+ * @date Fenruary, 1999.
+ */
+
+/* Status: Believed complete and correct. */
+
+public interface KeyListener extends java.util.EventListener
+{
+ public void keyPressed (KeyEvent w);
+ public void keyReleased (KeyEvent w);
+ public void keyTyped (KeyEvent w);
+}
diff --git a/libjava/java/awt/event/TextEvent.java b/libjava/java/awt/event/TextEvent.java
new file mode 100644
index 0000000..b3725f9
--- /dev/null
+++ b/libjava/java/awt/event/TextEvent.java
@@ -0,0 +1,20 @@
+/* Copyright (C) 1999 Cygnus Solutions
+
+ 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.*;
+
+/* A very incomplete placeholder. */
+
+public class TextEvent extends AWTEvent
+{
+ public TextEvent (Object source, int id)
+ {
+ super(source, id);
+ }
+}
diff --git a/libjava/java/awt/event/TextListener.java b/libjava/java/awt/event/TextListener.java
new file mode 100644
index 0000000..b4863ff
--- /dev/null
+++ b/libjava/java/awt/event/TextListener.java
@@ -0,0 +1,22 @@
+/* Copyright (C) 1999 Cygnus Solutions
+
+ 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;
+
+/**
+ * @author Per Bothner <bothner@cygnus.com>
+ * @date Fenruary, 1999.
+ */
+
+/* Status: Believed complete and correct. */
+
+public interface TextListener extends java.util.EventListener
+{
+ public void textValueChanged (TextEvent w);
+}
+
diff --git a/libjava/java/awt/event/WindowAdapter.java b/libjava/java/awt/event/WindowAdapter.java
new file mode 100644
index 0000000..f2675a3
--- /dev/null
+++ b/libjava/java/awt/event/WindowAdapter.java
@@ -0,0 +1,27 @@
+/* Copyright (C) 1999 Cygnus Solutions
+
+ 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;
+
+/**
+ * @author Per Bothner <bothner@cygnus.com>
+ * @date Fenruary, 1999.
+ */
+
+/* Status: Believed complete and correct. */
+
+public class WindowAdapter implements WindowListener
+{
+ public void windowActivated (WindowEvent w) { }
+ public void windowClosed (WindowEvent w) { }
+ public void windowClosing (WindowEvent w) { }
+ public void windowDeactivated (WindowEvent w) { }
+ public void windowDeiconified (WindowEvent w) { }
+ public void windowIconified (WindowEvent w) { }
+ public void windowOpened (WindowEvent w) { }
+}
diff --git a/libjava/java/awt/event/WindowEvent.java b/libjava/java/awt/event/WindowEvent.java
new file mode 100644
index 0000000..4b347dd
--- /dev/null
+++ b/libjava/java/awt/event/WindowEvent.java
@@ -0,0 +1,19 @@
+/* Copyright (C) 1999 Cygnus Solutions
+
+ 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;
+
+/* A very incomplete placeholder. */
+
+public class WindowEvent extends ComponentEvent
+{
+ public WindowEvent (Object source, int id)
+ {
+ super(source, id);
+ }
+}
diff --git a/libjava/java/awt/event/WindowListener.java b/libjava/java/awt/event/WindowListener.java
new file mode 100644
index 0000000..ff8ae94
--- /dev/null
+++ b/libjava/java/awt/event/WindowListener.java
@@ -0,0 +1,27 @@
+/* Copyright (C) 1999 Cygnus Solutions
+
+ 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;
+
+/**
+ * @author Per Bothner <bothner@cygnus.com>
+ * @date Fenruary, 1999.
+ */
+
+/* Status: Believed complete and correct. */
+
+public interface WindowListener extends java.util.EventListener
+{
+ public void windowActivated (WindowEvent w);
+ public void windowClosed (WindowEvent w);
+ public void windowClosing (WindowEvent w);
+ public void windowDeactivated (WindowEvent w);
+ public void windowDeiconified (WindowEvent w);
+ public void windowIconified (WindowEvent w);
+ public void windowOpened (WindowEvent w);
+}