2003-03-02 Michael Koch <konqueror@gmx.de>

* 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
This commit is contained in:
Michael Koch 2003-03-02 19:24:49 +00:00 committed by Michael Koch
parent b059c02a64
commit 98461c5855
6 changed files with 39 additions and 8 deletions

View File

@ -1,3 +1,24 @@
2003-03-02 Michael Koch <konqueror@gmx.de>
* 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 <konqueror@gmx.de>
* gnu/java/nio/FileChannelImpl.java

View File

@ -299,6 +299,8 @@ setMultipleMode(boolean multipleMode)
*
* @param multipleMode <code>true</code> to enable multiple mode,
* <code>false</code> 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

View File

@ -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()

View File

@ -343,7 +343,7 @@ setScrollPosition(int x, int y)
public void
addNotify()
{
if (getPeer() == null)
if (!isDisplayable ())
return;
setPeer((ComponentPeer)getToolkit().createScrollPane(this));

View File

@ -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

View File

@ -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)
{