[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commit-cp] classpath ChangeLog java/awt/Component.java jav...
From: |
Lillian Angel |
Subject: |
[commit-cp] classpath ChangeLog java/awt/Component.java jav... |
Date: |
Wed, 14 Jun 2006 16:26:08 +0000 |
CVSROOT: /cvsroot/classpath
Module name: classpath
Changes by: Lillian Angel <langel> 06/06/14 16:26:08
Modified files:
. : ChangeLog
java/awt : Component.java TextComponent.java
Log message:
2006-06-14 Lillian Angel <address@hidden>
* java/awt/Component.java
(ignoreOldMouseEvents): New helper function.
(translateEvent): Changed to be non-static and use new helper.
* java/awt/TextComponent.java
(ignoreOldMouseEvents): New helper function.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.7815&r2=1.7816
http://cvs.savannah.gnu.org/viewcvs/classpath/java/awt/Component.java?cvsroot=classpath&r1=1.122&r2=1.123
http://cvs.savannah.gnu.org/viewcvs/classpath/java/awt/TextComponent.java?cvsroot=classpath&r1=1.21&r2=1.22
Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/classpath/classpath/ChangeLog,v
retrieving revision 1.7815
retrieving revision 1.7816
diff -u -b -r1.7815 -r1.7816
--- ChangeLog 14 Jun 2006 16:11:57 -0000 1.7815
+++ ChangeLog 14 Jun 2006 16:26:07 -0000 1.7816
@@ -1,3 +1,11 @@
+2006-06-14 Lillian Angel <address@hidden>
+
+ * java/awt/Component.java
+ (ignoreOldMouseEvents): New helper function.
+ (translateEvent): Changed to be non-static and use new helper.
+ * java/awt/TextComponent.java
+ (ignoreOldMouseEvents): New helper function.
+
2006-06-14 Roman Kennke <address@hidden>
* javax/swing/RepaintManager.java
Index: java/awt/Component.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/Component.java,v
retrieving revision 1.122
retrieving revision 1.123
diff -u -b -r1.122 -r1.123
--- java/awt/Component.java 13 Jun 2006 19:41:22 -0000 1.122
+++ java/awt/Component.java 14 Jun 2006 16:26:07 -0000 1.123
@@ -2318,6 +2318,17 @@
}
/**
+ * By default, no old mouse events should be ignored.
+ * This can be overridden by subclasses.
+ *
+ * @return false, no mouse events are ignored.
+ */
+ boolean ignoreOldMouseEvents()
+ {
+ return false;
+ }
+
+ /**
* AWT 1.0 event handler.
*
* This method simply calls handleEvent and returns the result.
@@ -4801,7 +4812,7 @@
*
* @return an AWT 1.0 event representing e
*/
- static Event translateEvent (AWTEvent e)
+ Event translateEvent (AWTEvent e)
{
Object target = e.getSource ();
Event translated = null;
@@ -4864,7 +4875,7 @@
if ((mods & InputEvent.ALT_DOWN_MASK) != 0)
oldMods |= Event.ALT_MASK;
- if (e instanceof MouseEvent)
+ if (e instanceof MouseEvent && !ignoreOldMouseEvents())
{
if (id == MouseEvent.MOUSE_PRESSED)
oldID = Event.MOUSE_DOWN;
Index: java/awt/TextComponent.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/TextComponent.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -b -r1.21 -r1.22
--- java/awt/TextComponent.java 20 Sep 2005 01:05:28 -0000 1.21
+++ java/awt/TextComponent.java 14 Jun 2006 16:26:08 -0000 1.22
@@ -734,8 +734,17 @@
return null;
}
-
-
+ /**
+ * All old mouse events for this component should
+ * be ignored.
+ *
+ * @return true to ignore all old mouse events.
+ */
+ boolean
+ ignoreOldMouseEvents()
+ {
+ return true;
+ }
} // class TextComponent
- [commit-cp] classpath ChangeLog java/awt/Component.java jav...,
Lillian Angel <=