diff options
Diffstat (limited to 'libjava/java/awt/event')
38 files changed, 0 insertions, 1887 deletions
diff --git a/libjava/java/awt/event/AWTEventListener.java b/libjava/java/awt/event/AWTEventListener.java deleted file mode 100644 index ec9e4ffa27d..00000000000 --- a/libjava/java/awt/event/AWTEventListener.java +++ /dev/null @@ -1,22 +0,0 @@ -/* Copyright (C) 2000 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.*; - -/** - * @author Tom Tromey <tromey@cygnus.com> - * @date April 8, 2000 - */ - -/* Status: Believed complete and correct to JDK 1.2. */ - -public interface AWTEventListener extends java.util.EventListener -{ - public void eventDispatched (AWTEvent e); -} diff --git a/libjava/java/awt/event/ActionEvent.java b/libjava/java/awt/event/ActionEvent.java deleted file mode 100644 index 891b6bd4e51..00000000000 --- a/libjava/java/awt/event/ActionEvent.java +++ /dev/null @@ -1,66 +0,0 @@ -/* Copyright (C) 1999, 2000 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.*; - -/* Status: Believed complete and correct to JDK 1.2. */ - -public class ActionEvent extends AWTEvent -{ - public static final int ACTION_FIRST = 1001; - public static final int ACTION_LAST = 1001; - public static final int ACTION_PERFORMED = 1001; - public static final int ALT_MASK = 8; - public static final int CTRL_MASK = 2; - public static final int META_MASK = 4; - public static final int SHIFT_MASK = 1; - - String cmd; - int modifiers; - - public ActionEvent (Object source, int id, String command) - { - super(source, id); - cmd = command; - } - - public ActionEvent (Object source, int id, String command, int modifiers) - { - super(source, id); - cmd = command; - this.modifiers = modifiers; - } - - public String getActionCommand () - { - return cmd; - } - - public int getModifiers () - { - return modifiers; - } - - public String paramString () - { - String r; - switch (id) - { - case ACTION_PERFORMED: - r = "ACTION_PERFORMED"; - break; - default: - r = "unknown type"; - break; - } - - r += ",cmd=" + cmd; - return r; - } -} diff --git a/libjava/java/awt/event/ActionListener.java b/libjava/java/awt/event/ActionListener.java deleted file mode 100644 index 7fb359ff076..00000000000 --- a/libjava/java/awt/event/ActionListener.java +++ /dev/null @@ -1,21 +0,0 @@ -/* 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; - -/** - * @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/AdjustmentEvent.java b/libjava/java/awt/event/AdjustmentEvent.java deleted file mode 100644 index 9da9993a794..00000000000 --- a/libjava/java/awt/event/AdjustmentEvent.java +++ /dev/null @@ -1,95 +0,0 @@ -/* Copyright (C) 2000 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.*; - -/** - * @author Tom Tromey <tromey@cygnus.com> - * @date April 8, 2000 - */ - -/* Status: Believed complete and correct to JDK 1.2. */ - -public class AdjustmentEvent extends AWTEvent -{ - public static final int ADJUSTMENT_FIRST = 601; - public static final int ADJUSTMENT_LAST = 601; - public static final int ADJUSTMENT_VALUE_CHANGED = 601; - public static final int BLOCK_DECREMENT = 3; - public static final int BLOCK_INCREMENT = 4; - public static final int TRACK = 5; - public static final int UNIT_DECREMENT = 2; - public static final int UNIT_INCREMENT = 1; - - public AdjustmentEvent (Adjustable source, int id, int type, int value) - { - super (source, id); - this.adjType = type; - this.value = value; - } - - public Adjustable getAdjustable () - { - return (Adjustable) source; - } - - public int getAdjustmentType () - { - return adjType; - } - - public int getValue () - { - return value; - } - - public String paramString () - { - String r; - switch (id) - { - case ADJUSTMENT_VALUE_CHANGED: - r = "ADJUSTMENT_VALUE_CHANGED"; - break; - default: - r = "unknown id"; - break; - } - - r += ",adjType="; - - switch (adjType) - { - case BLOCK_DECREMENT: - r += "BLOCK_DECREMENT"; - break; - case BLOCK_INCREMENT: - r += "BLOCK_INCREMENT"; - break; - case TRACK: - r += "TRACK"; - break; - case UNIT_DECREMENT: - r += "UNIT_DECREMENT"; - break; - case UNIT_INCREMENT: - r += "UNIT_INCREMENT"; - break; - default: - r += "unknown type"; - break; - } - - r += ",value=" + value; - return r; - } - - private int adjType; - private int value; -} diff --git a/libjava/java/awt/event/AdjustmentListener.java b/libjava/java/awt/event/AdjustmentListener.java deleted file mode 100644 index 1d103328c63..00000000000 --- a/libjava/java/awt/event/AdjustmentListener.java +++ /dev/null @@ -1,21 +0,0 @@ -/* Copyright (C) 2000 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; - -/** - * @author Tom Tromey <tromey@cygnus.com> - * @date April 8, 2000 - */ - -/* Status: Believed complete and correct to JDK 1.2. */ - -public interface AdjustmentListener extends java.util.EventListener -{ - public void adjustmentValueChanged (AdjustmentEvent e); -} diff --git a/libjava/java/awt/event/ComponentAdapter.java b/libjava/java/awt/event/ComponentAdapter.java deleted file mode 100644 index 0faba3d6eff..00000000000 --- a/libjava/java/awt/event/ComponentAdapter.java +++ /dev/null @@ -1,35 +0,0 @@ -/* Copyright (C) 2000 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; - -/** - * @author Tom Tromey <tromey@cygnus.com> - * @date April 8, 2000 - */ - -/* Status: Believed complete and correct to JDK 1.2. */ - -public abstract class ComponentAdapter implements ComponentListener -{ - public void componentHidden (ComponentEvent e) - { - } - - public void componentMoved (ComponentEvent e) - { - } - - public void componentResized (ComponentEvent e) - { - } - - public void componentShown (ComponentEvent e) - { - } -} diff --git a/libjava/java/awt/event/ComponentEvent.java b/libjava/java/awt/event/ComponentEvent.java deleted file mode 100644 index bdf80ce2f35..00000000000 --- a/libjava/java/awt/event/ComponentEvent.java +++ /dev/null @@ -1,61 +0,0 @@ -/* Copyright (C) 1999, 2000 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.*; - -/** - * @author Tom Tromey <tromey@cygnus.com> - * @date April 8, 2000 - */ - -/* Status: Believed complete and correct to JDK 1.2. */ - -public class ComponentEvent extends AWTEvent -{ - public static final int COMPONENT_FIRST = 100; - public static final int COMPONENT_HIDDEN = 103; - public static final int COMPONENT_LAST = 103; - public static final int COMPONENT_MOVED = 100; - public static final int COMPONENT_RESIZED = 101; - public static final int COMPONENT_SHOWN = 102; - - public ComponentEvent (Component source, int id) - { - super(source, id); - } - - public Component getComponent () - { - return (Component) source; - } - - public String paramString () - { - String r; - switch (id) - { - case COMPONENT_HIDDEN: - r = "COMPONENT_HIDDEN"; - break; - case COMPONENT_MOVED: - r = "COMPONENT_MOVED"; - break; - case COMPONENT_RESIZED: - r = "COMPONENT_RESIZED"; - break; - case COMPONENT_SHOWN: - r = "COMPONENT_SHOWN"; - break; - default: - r = "unknown id"; - break; - } - return r; - } -} diff --git a/libjava/java/awt/event/ComponentListener.java b/libjava/java/awt/event/ComponentListener.java deleted file mode 100644 index 3302cf2a713..00000000000 --- a/libjava/java/awt/event/ComponentListener.java +++ /dev/null @@ -1,24 +0,0 @@ -/* Copyright (C) 2000 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; - -/** - * @author Tom Tromey <tromey@cygnus.com> - * @date April 8, 2000 - */ - -/* Status: Believed complete and correct to JDK 1.2. */ - -public interface ComponentListener extends java.util.EventListener -{ - public void componentHidden (ComponentEvent e); - public void componentMoved (ComponentEvent e); - public void componentResized (ComponentEvent e); - public void componentShown (ComponentEvent e); -} diff --git a/libjava/java/awt/event/ContainerAdapter.java b/libjava/java/awt/event/ContainerAdapter.java deleted file mode 100644 index 18c12a5f19b..00000000000 --- a/libjava/java/awt/event/ContainerAdapter.java +++ /dev/null @@ -1,27 +0,0 @@ -/* Copyright (C) 2000 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; - -/** - * @author Tom Tromey <tromey@cygnus.com> - * @date April 8, 2000 - */ - -/* Status: Believed complete and correct to JDK 1.2. */ - -public abstract class ContainerAdapter implements ContainerListener -{ - public void componentAdded (ContainerEvent e) - { - } - - public void componentRemoved (ContainerEvent e) - { - } -} diff --git a/libjava/java/awt/event/ContainerEvent.java b/libjava/java/awt/event/ContainerEvent.java deleted file mode 100644 index fc68d1403bd..00000000000 --- a/libjava/java/awt/event/ContainerEvent.java +++ /dev/null @@ -1,64 +0,0 @@ -/* Copyright (C) 2000 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.*; - -/** - * @author Tom Tromey <tromey@cygnus.com> - * @date April 8, 2000 - */ - -/* Status: Believed complete and correct to JDK 1.2. */ - -public class ContainerEvent extends ComponentEvent -{ - public static final int COMPONENT_ADDED = 300; - public static final int COMPONENT_REMOVED = 301; - public static final int CONTAINER_FIRST = 300; - public static final int CONTAINER_LAST = 301; - - /** @specnote In JDK1.2 and 1.3, source is a Component. */ - public ContainerEvent (Component source, int id, Component child) - { - super (source, id); - this.child = child; - } - - public Component getChild () - { - return child; - } - - public Component getComponent () - { - return (Component) source; - } - - public String paramString () - { - String r; - switch (id) - { - case COMPONENT_ADDED: - r = "COMPONENT_ADDED"; - break; - case COMPONENT_REMOVED: - r = "COMPONENT_REMOVED"; - break; - default: - r = "unknown id"; - break; - - } - r += ",child=" + child; - return r; - } - - private Component child; -} diff --git a/libjava/java/awt/event/ContainerListener.java b/libjava/java/awt/event/ContainerListener.java deleted file mode 100644 index 65acba4a756..00000000000 --- a/libjava/java/awt/event/ContainerListener.java +++ /dev/null @@ -1,22 +0,0 @@ -/* Copyright (C) 2000 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; - -/** - * @author Tom Tromey <tromey@cygnus.com> - * @date April 8, 2000 - */ - -/* Status: Believed complete and correct to JDK 1.2. */ - -public interface ContainerListener extends java.util.EventListener -{ - public void componentAdded (ContainerEvent e); - public void componentRemoved (ContainerEvent e); -} diff --git a/libjava/java/awt/event/FocusAdapter.java b/libjava/java/awt/event/FocusAdapter.java deleted file mode 100644 index f8419d92efa..00000000000 --- a/libjava/java/awt/event/FocusAdapter.java +++ /dev/null @@ -1,27 +0,0 @@ -/* Copyright (C) 2000 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; - -/** - * @author Tom Tromey <tromey@cygnus.com> - * @date April 8, 2000 - */ - -/* Status: Believed complete and correct to JDK 1.2. */ - -public abstract class FocusAdapter implements FocusListener -{ - public void focusGained (FocusEvent e) - { - } - - public void focusLost (FocusEvent e) - { - } -} diff --git a/libjava/java/awt/event/FocusEvent.java b/libjava/java/awt/event/FocusEvent.java deleted file mode 100644 index ab125f55cab..00000000000 --- a/libjava/java/awt/event/FocusEvent.java +++ /dev/null @@ -1,63 +0,0 @@ -/* Copyright (C) 2000 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.*; - -/** - * @author Tom Tromey <tromey@cygnus.com> - * @date April 8, 2000 - */ - -/* Status: Believed complete and correct to JDK 1.2. */ - -public class FocusEvent extends AWTEvent -{ - public static final int FOCUS_FIRST = 1004; - public static final int FOCUS_GAINED = 1004; - public static final int FOCUS_LAST = 1005; - public static final int FOCUS_LOST = 1005; - - public FocusEvent (Component source, int id) - { - super (source, id); - this.temporary = false; - } - - public FocusEvent (Component source, int id, boolean temporary) - { - super (source, id); - this.temporary = temporary; - } - - public boolean isTemporary () - { - return temporary; - } - - public String paramString () - { - String r = ""; - switch (id) - { - case FOCUS_GAINED: - r += "FOCUS_GAINED"; - break; - case FOCUS_LOST: - r += "FOCUS_LOST"; - break; - default: - r += "unknown id"; - break; - } - r += (temporary ? "temporary" : "permanent"); - return r; - } - - private boolean temporary; -} diff --git a/libjava/java/awt/event/FocusListener.java b/libjava/java/awt/event/FocusListener.java deleted file mode 100644 index f4167de6c01..00000000000 --- a/libjava/java/awt/event/FocusListener.java +++ /dev/null @@ -1,22 +0,0 @@ -/* Copyright (C) 2000 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; - -/** - * @author Tom Tromey <tromey@cygnus.com> - * @date April 8, 2000 - */ - -/* Status: Believed complete and correct to JDK 1.2. */ - -public interface FocusListener extends java.util.EventListener -{ - public void focusGained (FocusEvent e); - public void focusLost (FocusEvent e); -} diff --git a/libjava/java/awt/event/HierarchyBoundsAdapter.java b/libjava/java/awt/event/HierarchyBoundsAdapter.java deleted file mode 100644 index 39ce1ab1592..00000000000 --- a/libjava/java/awt/event/HierarchyBoundsAdapter.java +++ /dev/null @@ -1,27 +0,0 @@ -/* Copyright (C) 2000 Free Software Foundation - - This file is part of libgcj. - -This software is copyrighted work licensed under the terms of the -Libjava License. Please consult the file "LIBGCJ_LICENSE" for -details. */ - -package java.awt.event; - -/** - * @since 1.3 - * @author Bryce McKinlay - */ - -/* Status: Believed complete and correct. */ - -public abstract class HierarchyBoundsAdapter implements HierarchyBoundsListener -{ - public void ancestorMoved(HierarchyEvent e) - { - } - - public void ancestorResized(HierarchyEvent e) - { - } -} diff --git a/libjava/java/awt/event/HierarchyBoundsListener.java b/libjava/java/awt/event/HierarchyBoundsListener.java deleted file mode 100644 index aa853a0c27d..00000000000 --- a/libjava/java/awt/event/HierarchyBoundsListener.java +++ /dev/null @@ -1,22 +0,0 @@ -/* Copyright (C) 2000 Free Software Foundation - - This file is part of libgcj. - -This software is copyrighted work licensed under the terms of the -Libjava License. Please consult the file "LIBGCJ_LICENSE" for -details. */ - -package java.awt.event; - -/** - * @since 1.3 - * @author Bryce McKinlay - */ - -/* Status: Believed complete and correct. */ - -public interface HierarchyBoundsListener extends java.util.EventListener -{ - public void ancestorMoved(HierarchyEvent e); - public void ancestorResized(HierarchyEvent e); -} diff --git a/libjava/java/awt/event/HierarchyEvent.java b/libjava/java/awt/event/HierarchyEvent.java deleted file mode 100644 index 171d8b212ab..00000000000 --- a/libjava/java/awt/event/HierarchyEvent.java +++ /dev/null @@ -1,96 +0,0 @@ -/* Copyright (C) 2000 Free Software Foundation - - This file is part of libgcj. - -This software is copyrighted work licensed under the terms of the -Libjava License. Please consult the file "LIBGCJ_LICENSE" for -details. */ - -package java.awt.event; -import java.awt.*; - -/** - * @since 1.3 - * @author Bryce McKinlay - */ - -/* Status: thought to be complete and correct. */ - -public class HierarchyEvent extends AWTEvent -{ - public static final int PARENT_CHANGED = 1 << 0, - DISPLAYABILITY_CHANGED = 1 << 1, - SHOWING_CHANGED = 1 << 2, - HIERARCHY_FIRST = 1400, - HIERARCHY_CHANGED = 1400, - ANCESTOR_MOVED = 1401, - ANCESTOR_RESIZED = 1402, - HIERARCHY_LAST = 1402; - - /* Serialized fields from the serialization spec. */ - Component changed; - Container changedParent; - long changeFlags = 0; - - public HierarchyEvent(Component source, int id, Component changed, - Container changedParent) - { - super(source, id); - this.changed = changed; - this.changedParent = changedParent; - } - - public HierarchyEvent(Component source, int id, Component changed, - Container changedParent, long changeFlags) - { - super(source,id); - this.changed = changed; - this.changedParent = changedParent; - this.changeFlags = changeFlags; - } - - public Component getComponent() - { - return (Component) source; - } - - public Component getChanged() - { - return changed; - } - - public Container getChangedParent() - { - return changedParent; - } - - public long getChangeFlags() - { - return changeFlags; - } - - public String paramString() - { - String r; - switch (id) - { - case HIERARCHY_CHANGED: - r = "HIERARCHY_CHANGED"; - break; - - case ANCESTOR_MOVED: - r = "ANCESTOR_MOVED"; - break; - - case ANCESTOR_RESIZED: - r = "ANCESTOR_RESIZED"; - break; - - default: - return "unknown type"; - } - - r += "(" + changed + "," + changedParent + ")"; - return r; - } -} diff --git a/libjava/java/awt/event/HierarchyListener.java b/libjava/java/awt/event/HierarchyListener.java deleted file mode 100644 index b78e857a46e..00000000000 --- a/libjava/java/awt/event/HierarchyListener.java +++ /dev/null @@ -1,21 +0,0 @@ -/* Copyright (C) 2000 Free Software Foundation - - This file is part of libgcj. - -This software is copyrighted work licensed under the terms of the -Libjava License. Please consult the file "LIBGCJ_LICENSE" for -details. */ - -package java.awt.event; - -/** - * @since 1.3 - * @author Bryce McKinlay - */ - -/* Status: Believed complete and correct. */ - -public interface HierarchyListener extends java.util.EventListener -{ - public void hierarchyChanged(HierarchyEvent e); -} diff --git a/libjava/java/awt/event/InputEvent.java b/libjava/java/awt/event/InputEvent.java deleted file mode 100644 index 2da79226316..00000000000 --- a/libjava/java/awt/event/InputEvent.java +++ /dev/null @@ -1,73 +0,0 @@ -/* Copyright (C) 1999, 2000 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.*; - -/* Status: Believed complete and correct to JDK 1.2. */ - -public abstract class InputEvent extends ComponentEvent -{ - public static final int ALT_GRAPH_MASK = 32; - public static final int ALT_MASK = 8; - public static final int BUTTON1_MASK = 16; - public static final int BUTTON2_MASK = 8; - public static final int BUTTON3_MASK = 4; - public static final int CTRL_MASK = 2; - public static final int META_MASK = 4; - public static final int SHIFT_MASK = 1; - - InputEvent (Component source, int id) // Not public - { - super(source, id); - } - - public boolean isShiftDown () - { - return (modifiers & SHIFT_MASK) != 0; - } - - public boolean isControlDown () - { - return (modifiers & CTRL_MASK) != 0; - } - - public boolean isMetaDown () - { - return (modifiers & META_MASK) != 0; - } - - public boolean isAltDown () - { - return (modifiers & ALT_MASK) != 0; - } - - public long getWhen () - { - return when; - } - - public int getModifiers () - { - return modifiers; - } - - public boolean isConsumed () - { - return consumed; - } - - public void consume () - { - /* FIXME */ - consumed = true; - } - - private long when; - private int modifiers; -} diff --git a/libjava/java/awt/event/InputMethodEvent.java b/libjava/java/awt/event/InputMethodEvent.java deleted file mode 100644 index 3cafd3508a3..00000000000 --- a/libjava/java/awt/event/InputMethodEvent.java +++ /dev/null @@ -1,68 +0,0 @@ -/* Copyright (C) 1999, 2000 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 InputMethodEvent extends AWTEvent -{ - public static final int CARET_POSITION_CHANGED = 1101; - public static final int INPUT_METHOD_FIRST = 1100; - public static final int INPUT_METHOD_LAST = 1101; - public static final int INPUT_METHOD_TEXT_CHANGED = 1100; - - /* - public InputMethodEvent (Component source, int id, - AttributedCharacterIterator text, - int committedCharacterCount, TextHitInfo caret, - TextHitInfo visiblePosition) - { - if (id < INPUT_METHOD_FIRST - || id > INPUT_METHOD_LAST - || (id == CARET_POSITION_CHANGED && text != null) - || committedCharacterCount < 0 - || (committedCharacterCount - > text.getEndIndex () - text.getBeginIndex ())) - throw new IllegalArgumentException (); - } - - public InputMethodEvent (Component source, int id, TextHitInfo caret, - TextHitInfo visiblePosition); - - public void consume (); - public TextHitInfo getCaret (); - public int getCommittedCharacterCount (); - public AttributedCharacterIterator getText (); - public TextHitInfo getVisiblePosition (); - public boolean isConsumed (); - - public String paramString () - { - String r; - switch (id) - { - case CARET_POSITION_CHANGED: - r = "CARET_POSITION_CHANGED"; - break; - case INPUT_METHOD_TEXT_CHANGED: - r = "INPUT_METHOD_TEXT_CHANGED"; - break; - } - r += ""; // FIXME - return r; - } - */ - - // FIXME: this is just to let it compile. - private InputMethodEvent () - { - super (null, -1); - } -} diff --git a/libjava/java/awt/event/InputMethodListener.java b/libjava/java/awt/event/InputMethodListener.java deleted file mode 100644 index 0712404af39..00000000000 --- a/libjava/java/awt/event/InputMethodListener.java +++ /dev/null @@ -1,22 +0,0 @@ -/* Copyright (C) 2000 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; - -/** - * @author Tom Tromey <tromey@cygnus.com> - * @date April 8, 2000 - */ - -/* Status: Believed complete and correct to JDK 1.2. */ - -public interface InputMethodListener extends java.util.EventListener -{ - public void caretPositionChanged (InputMethodEvent e); - public void inputMethodTextChanged (InputMethodEvent e); -} diff --git a/libjava/java/awt/event/InvocationEvent.java b/libjava/java/awt/event/InvocationEvent.java deleted file mode 100644 index 6ee6300e7fc..00000000000 --- a/libjava/java/awt/event/InvocationEvent.java +++ /dev/null @@ -1,96 +0,0 @@ -/* Copyright (C) 2000 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.*; - -/** - * @author Tom Tromey <tromey@cygnus.com> - * @date April 8, 2000 - */ - -/* Status: Believed to be complete and correct. */ - -public class InvocationEvent extends AWTEvent implements ActiveEvent -{ - public static final int INVOCATION_DEFAULT = 1200; - public static final int INVOCATION_FIRST = 1200; - public static final int INVOCATION_LAST = 1200; - - protected InvocationEvent (Object source, int id, Runnable runnable, - Object notifier, boolean catchExceptions) - { - super (source, id); - this.runnable = runnable; - this.notifier = notifier; - this.catchExceptions = catchExceptions; - } - - public InvocationEvent (Object source, Runnable runnable) - { - super (source, INVOCATION_DEFAULT); - this.runnable = runnable; - } - - public InvocationEvent(Object source, Runnable runnable, Object notifier, - boolean catchExceptions) - { - super (source, INVOCATION_DEFAULT); - this.runnable = runnable; - this.notifier = notifier; - this.catchExceptions = catchExceptions; - } - - public void dispatch () - { - Exception e = null; - if (catchExceptions) - try - { - runnable.run (); - } - catch (Exception x) - { - exception = x; - } - else - runnable.run (); - - if (notifier != null) - { - synchronized (notifier) - { - notifier.notifyAll (); - } - } - } - - public Exception getException () - { - return exception; - } - - public String paramString () - { - String r; - if (id == INVOCATION_DEFAULT) - r = "INVOCATION_DEFAULT"; - else - r = "unknown type"; - - r += ",runnable=" + runnable + ",notifier=" + notifier + - ",catchExceptions=" + catchExceptions; - return r; - } - - protected boolean catchExceptions; - protected Object notifier; - protected Runnable runnable; - - private Exception exception; -} diff --git a/libjava/java/awt/event/ItemEvent.java b/libjava/java/awt/event/ItemEvent.java deleted file mode 100644 index 3d2e502655a..00000000000 --- a/libjava/java/awt/event/ItemEvent.java +++ /dev/null @@ -1,81 +0,0 @@ -/* Copyright (C) 2000 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.*; - -/** - * @author Tom Tromey <tromey@cygnus.com> - * @date April 8, 2000 - */ - -/* Status: Believed complete and correct to JDK 1.2. */ - -public class ItemEvent extends AWTEvent -{ - public static final int DESELECTED = 2; - public static final int ITEM_FIRST = 701; - public static final int ITEM_LAST = 701; - public static final int ITEM_STATE_CHANGED = 701; - public static final int SELECTED = 1; - - public ItemEvent (ItemSelectable source, int id, Object item, int sc) - { - super (source, id); - this.item = item; - this.stateChange = sc; - } - - public Object getItem () - { - return item; - } - - public ItemSelectable getItemSelectable () - { - return (ItemSelectable) source; - } - - public int getStateChange () - { - return stateChange; - } - - public String paramString () - { - String r; - switch (id) - { - case ITEM_STATE_CHANGED: - r = "ITEM_STATE_CHANGED"; - break; - default: - r = "unknown id"; - break; - } - - r += ",item=" + item + ",stateChange="; - switch (stateChange) - { - case SELECTED: - r += "SELECTED"; - break; - case DESELECTED: - r += "DESELECTED"; - break; - default: - r += "unknown"; - break; - } - - return r; - } - - private Object item; - private int stateChange; -} diff --git a/libjava/java/awt/event/ItemListener.java b/libjava/java/awt/event/ItemListener.java deleted file mode 100644 index 30bfcac3cab..00000000000 --- a/libjava/java/awt/event/ItemListener.java +++ /dev/null @@ -1,21 +0,0 @@ -/* Copyright (C) 2000 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; - -/** - * @author Tom Tromey <tromey@cygnus.com> - * @date April 8, 2000 - */ - -/* Status: Believed complete and correct to JDK 1.2. */ - -public interface ItemListener extends java.util.EventListener -{ - public void itemStateChanged (ItemEvent e); -} diff --git a/libjava/java/awt/event/KeyAdapter.java b/libjava/java/awt/event/KeyAdapter.java deleted file mode 100644 index 0e1297eb80d..00000000000 --- a/libjava/java/awt/event/KeyAdapter.java +++ /dev/null @@ -1,31 +0,0 @@ -/* Copyright (C) 2000 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; - -/** - * @author Tom Tromey <tromey@cygnus.com> - * @date April 8, 2000 - */ - -/* Status: Believed complete and correct to JDK 1.2. */ - -public abstract class KeyAdapter implements KeyListener -{ - public void keyPressed (KeyEvent w) - { - } - - public void keyReleased (KeyEvent w) - { - } - - public void keyTyped (KeyEvent w) - { - } -} diff --git a/libjava/java/awt/event/KeyEvent.java b/libjava/java/awt/event/KeyEvent.java deleted file mode 100644 index 36e116f4748..00000000000 --- a/libjava/java/awt/event/KeyEvent.java +++ /dev/null @@ -1,275 +0,0 @@ -/* Copyright (C) 1999, 2000 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.*; - -/* Status: still incomplete. */ - -public class KeyEvent extends InputEvent -{ - public static char CHAR_UNDEFINED = 0;; - public static final int KEY_FIRST = 400; - public static final int KEY_LAST = 402; - public static final int KEY_PRESSED = 401; - public static final int KEY_RELEASED = 402; - public static final int KEY_TYPED = 400; - public static final int VK_0 = 48; - public static final int VK_1 = 49; - public static final int VK_2 = 50; - public static final int VK_3 = 51; - public static final int VK_4 = 52; - public static final int VK_5 = 53; - public static final int VK_6 = 54; - public static final int VK_7 = 55; - public static final int VK_8 = 56; - public static final int VK_9 = 57; - public static final int VK_A = 65; - public static final int VK_ACCEPT = 30; - public static final int VK_ADD = 107; - public static final int VK_AGAIN = 65481; - public static final int VK_ALL_CANDIDATES = 256; - public static final int VK_ALPHANUMERIC = 240; - public static final int VK_ALT = 18; - public static final int VK_ALT_GRAPH = 65406; - public static final int VK_AMPERSAND = 150; - public static final int VK_ASTERISK = 151; - public static final int VK_AT = 512; - public static final int VK_B = 66; - public static final int VK_BACK_QUOTE = 192; - public static final int VK_BACK_SLASH = 92; - public static final int VK_BACK_SPACE = 8; - public static final int VK_BRACELEFT = 161; - public static final int VK_BRACERIGHT = 162; - public static final int VK_C = 67; - public static final int VK_CANCEL = 3; - public static final int VK_CAPS_LOCK = 20; - public static final int VK_CIRCUMFLEX = 514; - public static final int VK_CLEAR = 12; - public static final int VK_CLOSE_BRACKET = 93; - public static final int VK_CODE_INPUT = 258; - public static final int VK_COLON = 513; - public static final int VK_COMMA = 44; - public static final int VK_COMPOSE = 65312; - public static final int VK_CONTROL = 17; - public static final int VK_CONVERT = 28; - public static final int VK_COPY = 65485; - public static final int VK_CUT = 65489; - public static final int VK_D = 68; - public static final int VK_DEAD_ABOVEDOT = 134; - public static final int VK_DEAD_ABOVERING = 136; - public static final int VK_DEAD_ACUTE = 129; - public static final int VK_DEAD_BREVE = 133; - public static final int VK_DEAD_CARON = 138; - public static final int VK_DEAD_CEDILLA = 139; - public static final int VK_DEAD_CIRCUMFLEX = 130; - public static final int VK_DEAD_DIAERESIS = 135; - public static final int VK_DEAD_DOUBLEACUTE = 137; - public static final int VK_DEAD_GRAVE = 128; - public static final int VK_DEAD_IOTA = 141; - public static final int VK_DEAD_MACRON = 132; - public static final int VK_DEAD_OGONEK = 140; - public static final int VK_DEAD_SEMIVOICED_SOUND = 143; - public static final int VK_DEAD_TILDE = 131; - public static final int VK_DEAD_VOICED_SOUND = 142; - public static final int VK_DECIMAL = 110; - public static final int VK_DELETE = 127; - public static final int VK_DIVIDE = 111; - public static final int VK_DOLLAR = 515; - public static final int VK_DOWN = 40; - public static final int VK_E = 69; - public static final int VK_END = 35; - public static final int VK_ENTER = 10; - public static final int VK_EQUALS = 61; - public static final int VK_ESCAPE = 27; - public static final int VK_EURO_SIGN = 516; - public static final int VK_EXCLAMATION_MARK = 517; - public static final int VK_F = 70; - public static final int VK_F1 = 112; - public static final int VK_F10 = 121; - public static final int VK_F11 = 122; - public static final int VK_F12 = 123; - public static final int VK_F13 = 61440; - public static final int VK_F14 = 61441; - public static final int VK_F15 = 61442; - public static final int VK_F16 = 61443; - public static final int VK_F17 = 61444; - public static final int VK_F18 = 61445; - public static final int VK_F19 = 61446; - public static final int VK_F2 = 113; - public static final int VK_F20 = 61447; - public static final int VK_F21 = 61448; - public static final int VK_F22 = 61449; - public static final int VK_F23 = 61450; - public static final int VK_F24 = 61451; - public static final int VK_F3 = 114; - public static final int VK_F4 = 115; - public static final int VK_F5 = 116; - public static final int VK_F6 = 117; - public static final int VK_F7 = 118; - public static final int VK_F8 = 119; - public static final int VK_F9 = 120; - public static final int VK_FINAL = 24; - public static final int VK_FIND = 65488; - public static final int VK_FULL_WIDTH = 243; - public static final int VK_G = 71; - public static final int VK_GREATER = 160; - public static final int VK_H = 72; - public static final int VK_HALF_WIDTH = 244; - public static final int VK_HELP = 156; - public static final int VK_HIRAGANA = 242; - public static final int VK_HOME = 36; - public static final int VK_I = 73; - public static final int VK_INSERT = 155; - public static final int VK_INVERTED_EXCLAMATION_MARK = 518; - public static final int VK_J = 74; - public static final int VK_JAPANESE_HIRAGANA = 260; - public static final int VK_JAPANESE_KATAKANA = 259; - public static final int VK_JAPANESE_ROMAN = 261; - public static final int VK_K = 75; - public static final int VK_KANA = 21; - public static final int VK_KANJI = 25; - public static final int VK_KATAKANA = 241; - public static final int VK_KP_DOWN = 225; - public static final int VK_KP_LEFT = 226; - public static final int VK_KP_RIGHT = 227; - public static final int VK_KP_UP = 224; - public static final int VK_L = 76; - public static final int VK_LEFT = 37; - public static final int VK_LEFT_PARENTHESIS = 519; - public static final int VK_LESS = 153; - public static final int VK_M = 77; - public static final int VK_META = 157; - public static final int VK_MINUS = 45; - public static final int VK_MODECHANGE = 31; - public static final int VK_MULTIPLY = 106; - public static final int VK_N = 78; - public static final int VK_NONCONVERT = 29; - public static final int VK_NUM_LOCK = 144; - public static final int VK_NUMBER_SIGN = 520; - public static final int VK_NUMPAD0 = 96; - public static final int VK_NUMPAD1 = 97; - public static final int VK_NUMPAD2 = 98; - public static final int VK_NUMPAD3 = 99; - public static final int VK_NUMPAD4 = 100; - public static final int VK_NUMPAD5 = 101; - public static final int VK_NUMPAD6 = 102; - public static final int VK_NUMPAD7 = 103; - public static final int VK_NUMPAD8 = 104; - public static final int VK_NUMPAD9 = 105; - public static final int VK_O = 79; - public static final int VK_OPEN_BRACKET = 91; - public static final int VK_P = 80; - public static final int VK_PAGE_DOWN = 34; - public static final int VK_PAGE_UP = 33; - public static final int VK_PASTE = 65487; - public static final int VK_PAUSE = 19; - public static final int VK_PERIOD = 46; - public static final int VK_PLUS = 521; - public static final int VK_PREVIOUS_CANDIDATE = 257; - public static final int VK_PRINTSCREEN = 154; - public static final int VK_PROPS = 65482; - public static final int VK_Q = 81; - public static final int VK_QUOTE = 222; - public static final int VK_QUOTEDBL = 152; - public static final int VK_R = 82; - public static final int VK_RIGHT = 39; - public static final int VK_RIGHT_PARENTHESIS = 522; - public static final int VK_ROMAN_CHARACTERS = 245; - public static final int VK_S = 83; - public static final int VK_SCROLL_LOCK = 145; - public static final int VK_SEMICOLON = 59; - public static final int VK_SEPARATER = 108; - public static final int VK_SHIFT = 16; - public static final int VK_SLASH = 47; - public static final int VK_SPACE = 32; - public static final int VK_STOP = 65480; - public static final int VK_SUBTRACT = 109; - public static final int VK_T = 84; - public static final int VK_TAB = 9; - public static final int VK_U = 85; - public static final int VK_UNDEFINED = 0; - public static final int VK_UNDERSCORE = 523; - public static final int VK_UNDO = 65483; - public static final int VK_UP = 38; - public static final int VK_V = 86; - public static final int VK_W = 87; - public static final int VK_X = 88; - public static final int VK_Y = 89; - public static final int VK_Z = 90; - - 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 KeyEvent (Component source, int id, long when, - int modifiers, int keyCode) - { - super (source, id); - this.keyCode = keyCode; - this.keyChar = CHAR_UNDEFINED; // FIXME? - 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; } - - public static String getKeyText (int keyCode) - { - // FIXME - throw new InternalError ("unimplemented"); - } - - public static String getKeyModifiersText (int modifiers) - { - // FIXME - throw new InternalError ("unimplemented"); - } - - public boolean isActionKey () - { - // FIXME - return false; - } - - public String paramString () - { - String r = ""; - switch (id) - { - case KEY_PRESSED: - r = "KEY_PRESSED"; - break; - case KEY_RELEASED: - r = "KEY_RELEASED"; - break; - case KEY_TYPED: - r = "KEY_TYPED"; - break; - } - r += ",keyCode=" + keyCode + "," + getKeyText(keyCode) + ",modifiers=" + - getKeyModifiersText(modifiers); - return r; - } - - private int keyCode; - private char keyChar; - private int modifiers; -} diff --git a/libjava/java/awt/event/KeyListener.java b/libjava/java/awt/event/KeyListener.java deleted file mode 100644 index e08d67e214e..00000000000 --- a/libjava/java/awt/event/KeyListener.java +++ /dev/null @@ -1,23 +0,0 @@ -/* 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; - -/** - * @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/MouseAdapter.java b/libjava/java/awt/event/MouseAdapter.java deleted file mode 100644 index 65189385738..00000000000 --- a/libjava/java/awt/event/MouseAdapter.java +++ /dev/null @@ -1,39 +0,0 @@ -/* Copyright (C) 2000 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; - -/** - * @author Tom Tromey <tromey@cygnus.com> - * @date April 8, 2000 - */ - -/* Status: Believed complete and correct to JDK 1.2. */ - -public abstract class MouseAdapter implements MouseListener -{ - public void mouseClicked (MouseEvent e) - { - } - - public void mouseEntered (MouseEvent e) - { - } - - public void mouseExited (MouseEvent e) - { - } - - public void mousePressed (MouseEvent e) - { - } - - public void mouseReleased (MouseEvent e) - { - } -} diff --git a/libjava/java/awt/event/MouseEvent.java b/libjava/java/awt/event/MouseEvent.java deleted file mode 100644 index bb9602cd17b..00000000000 --- a/libjava/java/awt/event/MouseEvent.java +++ /dev/null @@ -1,115 +0,0 @@ -/* Copyright (C) 2000 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.*; - -/** - * @author Tom Tromey <tromey@cygnus.com> - * @date April 8, 2000 - */ - -/* Status: Believed complete and correct to JDK 1.2. */ - -public class MouseEvent extends InputEvent -{ - public static final int MOUSE_CLICKED = 500; - public static final int MOUSE_DRAGGED = 506; - public static final int MOUSE_ENTERED = 504; - public static final int MOUSE_EXITED = 505; - public static final int MOUSE_FIRST = 500; - public static final int MOUSE_LAST = 506; - public static final int MOUSE_MOVED = 503; - public static final int MOUSE_PRESSED = 501; - public static final int MOUSE_RELEASED = 502; - - public MouseEvent (Component source, int id, long when, int modifiers, - int x, int y, int clickCount, boolean popupTrigger) - { - super (source, id); - this.when = when; - this.modifiers = modifiers; - this.x = x; - this.y = y; - this.clickCount = clickCount; - this.popupTrigger = popupTrigger; - } - - public int getClickCount () - { - return clickCount; - } - - public Point getPoint () - { - return new Point (x, y); - } - - public int getX () - { - return x; - } - - public int getY () - { - return y; - } - - public boolean isPopupTrigger () - { - return popupTrigger; - } - - public String paramString () - { - String r; - switch (id) - { - case MOUSE_CLICKED: - r = "MOUSE_CLICKED"; - break; - case MOUSE_DRAGGED: - r = "MOUSE_DRAGGED"; - break; - case MOUSE_ENTERED: - r = "MOUSE_ENTERED"; - break; - case MOUSE_EXITED: - r = "MOUSE_EXITED"; - break; - case MOUSE_MOVED: - r = "MOUSE_MOVED"; - break; - case MOUSE_PRESSED: - r = "MOUSE_PRESSED"; - break; - case MOUSE_RELEASED: - r = "MOUSE_RELEASED"; - break; - default: - r = "unknown id"; - break; - } - r += ",(" + x + "," + y + "),modifiers=" + modifiers + ",clickCount=" + - clickCount; - return r; - } - - public void translatePoint (int x, int y) - { - this.x += x; - this.y += y; - } - - private long when; - private int modifiers; - private int x; - private int y; - private int clickCount; - private boolean popupTrigger; -} diff --git a/libjava/java/awt/event/MouseListener.java b/libjava/java/awt/event/MouseListener.java deleted file mode 100644 index 0f1b8243d8c..00000000000 --- a/libjava/java/awt/event/MouseListener.java +++ /dev/null @@ -1,25 +0,0 @@ -/* Copyright (C) 2000 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; - -/** - * @author Tom Tromey <tromey@cygnus.com> - * @date April 8, 2000 - */ - -/* Status: Believed complete and correct to JDK 1.2. */ - -public interface MouseListener extends java.util.EventListener -{ - public void mouseClicked (MouseEvent e); - public void mouseEntered (MouseEvent e); - public void mouseExited (MouseEvent e); - public void mousePressed (MouseEvent e); - public void mouseReleased (MouseEvent e); -} diff --git a/libjava/java/awt/event/MouseMotionAdapter.java b/libjava/java/awt/event/MouseMotionAdapter.java deleted file mode 100644 index ce30d2eb5c3..00000000000 --- a/libjava/java/awt/event/MouseMotionAdapter.java +++ /dev/null @@ -1,27 +0,0 @@ -/* Copyright (C) 2000 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; - -/** - * @author Tom Tromey <tromey@cygnus.com> - * @date April 8, 2000 - */ - -/* Status: Believed complete and correct to JDK 1.2. */ - -public abstract class MouseMotionAdapter implements MouseMotionListener -{ - public void mouseDragged (MouseEvent e) - { - } - - public void mouseMoved (MouseEvent e) - { - } -} diff --git a/libjava/java/awt/event/MouseMotionListener.java b/libjava/java/awt/event/MouseMotionListener.java deleted file mode 100644 index 6b12da5da3e..00000000000 --- a/libjava/java/awt/event/MouseMotionListener.java +++ /dev/null @@ -1,22 +0,0 @@ -/* Copyright (C) 2000 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; - -/** - * @author Tom Tromey <tromey@cygnus.com> - * @date April 8, 2000 - */ - -/* Status: Believed complete and correct to JDK 1.2. */ - -public interface MouseMotionListener extends java.util.EventListener -{ - public void mouseDragged (MouseEvent e); - public void mouseMoved (MouseEvent e); -} diff --git a/libjava/java/awt/event/PaintEvent.java b/libjava/java/awt/event/PaintEvent.java deleted file mode 100644 index 21c42e49a7c..00000000000 --- a/libjava/java/awt/event/PaintEvent.java +++ /dev/null @@ -1,63 +0,0 @@ -/* Copyright (C) 2000 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.*; - -/** - * @author Tom Tromey <tromey@cygnus.com> - * @date April 8, 2000 - */ - -/* Status: Believed complete and correct to JDK 1.2. */ - -public class PaintEvent extends ComponentEvent -{ - public static final int PAINT = 800; - public static final int PAINT_FIRST = 800; - public static final int PAINT_LAST = 801; - public static final int UPDATE = 801; - - public PaintEvent (Component source, int id, Rectangle updateRect) - { - super (source, id); - this.updateRect = updateRect; - } - - public Rectangle getUpdateRect () - { - return updateRect; - } - - public String paramString () - { - String r; - switch (id) - { - case UPDATE: - r = "UPDATE"; - break; - case PAINT: - r = "PAINT"; - break; - default: - r = "unknown id"; - break; - } - - r += ",updateRect=" + updateRect; - return r; - } - - public void setUpdateRect (Rectangle updateRect) - { - this.updateRect = updateRect; - } - - private Rectangle updateRect; -} diff --git a/libjava/java/awt/event/TextEvent.java b/libjava/java/awt/event/TextEvent.java deleted file mode 100644 index 85c5d85a4eb..00000000000 --- a/libjava/java/awt/event/TextEvent.java +++ /dev/null @@ -1,29 +0,0 @@ -/* Copyright (C) 1999, 2000 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.*; - -/* Status: Believed complete and correct to JDK 1.2. */ - -public class TextEvent extends AWTEvent -{ - public static final int TEXT_FIRST = 900; - public static final int TEXT_LAST = 900; - public static final int TEXT_VALUE_CHANGED = 900; - - public TextEvent (Object source, int id) - { - super (source, id); - } - - public String paramString () - { - return "TEXT_VALUE_CHANGED"; - } -} diff --git a/libjava/java/awt/event/TextListener.java b/libjava/java/awt/event/TextListener.java deleted file mode 100644 index 45c4da898ee..00000000000 --- a/libjava/java/awt/event/TextListener.java +++ /dev/null @@ -1,22 +0,0 @@ -/* 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; - -/** - * @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 deleted file mode 100644 index caf2b18b48f..00000000000 --- a/libjava/java/awt/event/WindowAdapter.java +++ /dev/null @@ -1,27 +0,0 @@ -/* 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; - -/** - * @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 deleted file mode 100644 index 28108f8e4a8..00000000000 --- a/libjava/java/awt/event/WindowEvent.java +++ /dev/null @@ -1,65 +0,0 @@ -/* Copyright (C) 1999, 2000 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.*; - -/* Status: Believed complete and correct to JDK 1.2. */ - -public class WindowEvent extends ComponentEvent -{ - public static final int WINDOW_ACTIVATED = 205; - public static final int WINDOW_CLOSED = 202; - public static final int WINDOW_CLOSING = 201; - public static final int WINDOW_DEACTIVATED = 206; - public static final int WINDOW_DEICONIFIED = 204; - public static final int WINDOW_FIRST = 200; - public static final int WINDOW_ICONIFIED = 203; - public static final int WINDOW_LAST = 206; - public static final int WINDOW_OPENED = 200; - - public WindowEvent (Window source, int id) - { - super (source, id); - } - - public Window getWindow () - { - return (Window) source; - } - - public String paramString () - { - String r = ""; - switch (id) - { - case WINDOW_ACTIVATED: - r = "WINDOW_ACTIVATED"; - break; - case WINDOW_CLOSED: - r = "WINDOW_CLOSED"; - break; - case WINDOW_CLOSING: - r = "WINDOW_CLOSING"; - break; - case WINDOW_DEACTIVATED: - r = "WINDOW_DEACTIVATED"; - break; - case WINDOW_DEICONIFIED: - r = "WINDOW_DEICONIFIED"; - break; - case WINDOW_ICONIFIED: - r = "WINDOW_ICONIFIED"; - break; - case WINDOW_OPENED: - r = "WINDOW_OPENED"; - break; - } - return r; - } -} diff --git a/libjava/java/awt/event/WindowListener.java b/libjava/java/awt/event/WindowListener.java deleted file mode 100644 index e939ce7dcf6..00000000000 --- a/libjava/java/awt/event/WindowListener.java +++ /dev/null @@ -1,27 +0,0 @@ -/* 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; - -/** - * @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); -} |