mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-14 10:54:51 +08:00
2ba5f77454
* All files: Updated copyright information. * COPYING: New file. * COPYING.LIB: Removed. * LIBGCJ_LICENSE: We now use GPL + special exception. From-SVN: r32387
39 lines
934 B
Java
39 lines
934 B
Java
/* Copyright (C) 1999 Free Software Foundation
|
|
|
|
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; }
|
|
}
|