Add AWT stubs and incomplete classes.
From-SVN: r26778
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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 */ }
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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) { }
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user