|
Last change
on this file since 154 was 2, checked in by bird, 23 years ago |
|
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
|
File size:
1.3 KB
|
| Line | |
|---|
| 1 | /* Copyright (C) 1999, 2000 Free Software Foundation
|
|---|
| 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 | /**
|
|---|
| 13 | * @author Tom Tromey <[email protected]>
|
|---|
| 14 | * @date April 8, 2000
|
|---|
| 15 | */
|
|---|
| 16 |
|
|---|
| 17 | /* Status: Believed complete and correct to JDK 1.2. */
|
|---|
| 18 |
|
|---|
| 19 | public class ComponentEvent extends AWTEvent
|
|---|
| 20 | {
|
|---|
| 21 | public static final int COMPONENT_FIRST = 100;
|
|---|
| 22 | public static final int COMPONENT_HIDDEN = 103;
|
|---|
| 23 | public static final int COMPONENT_LAST = 103;
|
|---|
| 24 | public static final int COMPONENT_MOVED = 100;
|
|---|
| 25 | public static final int COMPONENT_RESIZED = 101;
|
|---|
| 26 | public static final int COMPONENT_SHOWN = 102;
|
|---|
| 27 |
|
|---|
| 28 | public ComponentEvent (Component source, int id)
|
|---|
| 29 | {
|
|---|
| 30 | super(source, id);
|
|---|
| 31 | }
|
|---|
| 32 |
|
|---|
| 33 | public Component getComponent ()
|
|---|
| 34 | {
|
|---|
| 35 | return (Component) source;
|
|---|
| 36 | }
|
|---|
| 37 |
|
|---|
| 38 | public String paramString ()
|
|---|
| 39 | {
|
|---|
| 40 | String r;
|
|---|
| 41 | switch (id)
|
|---|
| 42 | {
|
|---|
| 43 | case COMPONENT_HIDDEN:
|
|---|
| 44 | r = "COMPONENT_HIDDEN";
|
|---|
| 45 | break;
|
|---|
| 46 | case COMPONENT_MOVED:
|
|---|
| 47 | r = "COMPONENT_MOVED";
|
|---|
| 48 | break;
|
|---|
| 49 | case COMPONENT_RESIZED:
|
|---|
| 50 | r = "COMPONENT_RESIZED";
|
|---|
| 51 | break;
|
|---|
| 52 | case COMPONENT_SHOWN:
|
|---|
| 53 | r = "COMPONENT_SHOWN";
|
|---|
| 54 | break;
|
|---|
| 55 | default:
|
|---|
| 56 | r = "unknown id";
|
|---|
| 57 | break;
|
|---|
| 58 | }
|
|---|
| 59 | return r;
|
|---|
| 60 | }
|
|---|
| 61 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.