You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by gb...@apache.org on 2009/09/25 17:05:19 UTC

svn commit: r818869 - in /incubator/pivot/trunk: tutorials/src/org/apache/pivot/tutorials/tables.wtkx wtk/src/org/apache/pivot/wtk/skin/ComponentSkin.java

Author: gbrown
Date: Fri Sep 25 15:05:18 2009
New Revision: 818869

URL: http://svn.apache.org/viewvc?rev=818869&view=rev
Log:
Add a tooltip to the multi-sort table in the Kitchen Sink demo; cancel any pending tooltip callback in ComponentSkin when the user presses a mouse button.

Modified:
    incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/tables.wtkx
    incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ComponentSkin.java

Modified: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/tables.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/tables.wtkx?rev=818869&r1=818868&r2=818869&view=diff
==============================================================================
Binary files - no diff available.

Modified: incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ComponentSkin.java
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ComponentSkin.java?rev=818869&r1=818868&r2=818869&view=diff
==============================================================================
--- incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ComponentSkin.java (original)
+++ incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ComponentSkin.java Fri Sep 25 15:05:18 2009
@@ -255,6 +255,11 @@
     // Component mouse button events
     @Override
     public boolean mouseDown(Component component, Mouse.Button button, int x, int y) {
+        if (scheduledShowTooltipCallback != null) {
+            scheduledShowTooltipCallback.cancel();
+            scheduledShowTooltipCallback = null;
+        }
+
         return false;
     }