From 98461c58558374f3ffaef5e4b231dff2c8b39131 Mon Sep 17 00:00:00 2001 From: Michael Koch Date: Sun, 2 Mar 2003 19:24:49 +0000 Subject: [PATCH] 2003-03-02 Michael Koch * java/awt/List.java (setMultipleSelections): Deprecated. (delItem): Deprecated. * java/awt/MenuComponent.java (getPeer): Deprecated. * java/awt/ScrollPane.java (addNotify): getPeer() is deprecated. Use isDisplayable() instead. * java/awt/dnd/MouseDragGestureRecognizer.java (mouseClicked): Added comment. (mousePressed): Added comment. (mouseReleased): Added comment. (mouseEntered): Added comment. (mouseExited): Added comment. (mouseDragged): Added comment. (mouseMoved): Added comment. * java/awt/event/KeyEvent.java (KeyEvent): Deprecated. (setModifiers): Deprecated. From-SVN: r63672 --- libjava/ChangeLog | 21 +++++++++++++++++++ libjava/java/awt/List.java | 4 ++++ libjava/java/awt/MenuComponent.java | 2 ++ libjava/java/awt/ScrollPane.java | 2 +- .../awt/dnd/MouseDragGestureRecognizer.java | 14 ++++++------- libjava/java/awt/event/KeyEvent.java | 4 ++++ 6 files changed, 39 insertions(+), 8 deletions(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 7d8c17bf9d1..8318acb51a8 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,24 @@ +2003-03-02 Michael Koch + + * java/awt/List.java + (setMultipleSelections): Deprecated. + (delItem): Deprecated. + * java/awt/MenuComponent.java + (getPeer): Deprecated. + * java/awt/ScrollPane.java + (addNotify): getPeer() is deprecated. Use isDisplayable() instead. + * java/awt/dnd/MouseDragGestureRecognizer.java + (mouseClicked): Added comment. + (mousePressed): Added comment. + (mouseReleased): Added comment. + (mouseEntered): Added comment. + (mouseExited): Added comment. + (mouseDragged): Added comment. + (mouseMoved): Added comment. + * java/awt/event/KeyEvent.java + (KeyEvent): Deprecated. + (setModifiers): Deprecated. + 2003-03-02 Michael Koch * gnu/java/nio/FileChannelImpl.java diff --git a/libjava/java/awt/List.java b/libjava/java/awt/List.java index 9e59041f781..b57cc89f555 100644 --- a/libjava/java/awt/List.java +++ b/libjava/java/awt/List.java @@ -299,6 +299,8 @@ setMultipleMode(boolean multipleMode) * * @param multipleMode true to enable multiple mode, * false otherwise. + * + * @deprecated */ public void setMultipleSelections(boolean multipleMode) @@ -523,6 +525,8 @@ addItem(String item, int index) * @param index The index of the item to delete. * * @exception IllegalArgumentException If the index is not valid + * + * @deprecated */ public void delItem(int index) throws IllegalArgumentException diff --git a/libjava/java/awt/MenuComponent.java b/libjava/java/awt/MenuComponent.java index 09c25c9d1af..7cd85325747 100644 --- a/libjava/java/awt/MenuComponent.java +++ b/libjava/java/awt/MenuComponent.java @@ -186,6 +186,8 @@ setParent(MenuContainer parent) * Returns the native windowing system peer for this component. * * @return The peer for this component. + * + * @deprecated */ public MenuComponentPeer getPeer() diff --git a/libjava/java/awt/ScrollPane.java b/libjava/java/awt/ScrollPane.java index 176c46c61dc..4ca8e703114 100644 --- a/libjava/java/awt/ScrollPane.java +++ b/libjava/java/awt/ScrollPane.java @@ -343,7 +343,7 @@ setScrollPosition(int x, int y) public void addNotify() { - if (getPeer() == null) + if (!isDisplayable ()) return; setPeer((ComponentPeer)getToolkit().createScrollPane(this)); diff --git a/libjava/java/awt/dnd/MouseDragGestureRecognizer.java b/libjava/java/awt/dnd/MouseDragGestureRecognizer.java index a94c82525dc..6b21b43c598 100644 --- a/libjava/java/awt/dnd/MouseDragGestureRecognizer.java +++ b/libjava/java/awt/dnd/MouseDragGestureRecognizer.java @@ -96,36 +96,36 @@ public abstract class MouseDragGestureRecognizer public void mouseClicked (MouseEvent e) { - // FIXME: implement this + // Do nothing in here by default. } public void mousePressed (MouseEvent e) { - // FIXME: implement this + // Do nothing in here by default. } public void mouseReleased (MouseEvent e) { - // FIXME: implement this + // Do nothing in here by default. } public void mouseEntered (MouseEvent e) { - // FIXME: implement this + // Do nothing in here by default. } public void mouseExited (MouseEvent e) { - // FIXME: implement this + // Do nothing in here by default. } public void mouseDragged (MouseEvent e) { - // FIXME: implement this + // Do nothing in here by default. } public void mouseMoved (MouseEvent e) { - // FIXME: implement this + // Do nothing in here by default. } } // class MouseDragGestureRecognizer diff --git a/libjava/java/awt/event/KeyEvent.java b/libjava/java/awt/event/KeyEvent.java index 35cac3f1c66..f93bab1dc78 100644 --- a/libjava/java/awt/event/KeyEvent.java +++ b/libjava/java/awt/event/KeyEvent.java @@ -1142,6 +1142,8 @@ public class KeyEvent extends InputEvent * @param keyCode the integer constant for the virtual key type * @throws IllegalArgumentException if source is null, or if * id == KEY_TYPED but keyCode != VK_UNDEFINED + * + * @deprecated */ public KeyEvent(Component source, int id, long when, int modifiers, int keyCode) @@ -1202,6 +1204,8 @@ public class KeyEvent extends InputEvent * * @param modifiers the new modifier value, in either old or new style * @see InputEvent + * + * @deprecated */ public void setModifiers(int modifiers) {