You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by cb...@apache.org on 2010/09/16 18:53:44 UTC
svn commit: r997843 - in /pivot/trunk:
wtk-terra/src/org/apache/pivot/wtk/skin/terra/
wtk/src/org/apache/pivot/wtk/skin/
Author: cbartlett
Date: Thu Sep 16 16:53:44 2010
New Revision: 997843
URL: http://svn.apache.org/viewvc?rev=997843&view=rev
Log:
PIVOT-637 - Javadoc comments for ComponentKeyListener#keyPressed() methods (ButtonSkin sub-classes)
Modified:
pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraCalendarSkin.java
pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/CalendarButtonSkin.java
pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ColorChooserButtonSkin.java
pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ListButtonSkin.java
pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/MenuButtonSkin.java
pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/PushButtonSkin.java
Modified: pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraCalendarSkin.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraCalendarSkin.java?rev=997843&r1=997842&r2=997843&view=diff
==============================================================================
--- pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraCalendarSkin.java (original)
+++ pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraCalendarSkin.java Thu Sep 16 16:53:44 2010
@@ -220,6 +220,12 @@ public class TerraCalendarSkin extends C
return consumed;
}
+ /**
+ * {@link Keyboard.KeyCode#ENTER} 'presses' the button.<br>
+ * {@link Keyboard.KeyCode#UP}, {@link Keyboard.KeyCode#DOWN},
+ * {@link Keyboard.KeyCode#LEFT} & {@link Keyboard.KeyCode#RIGHT}
+ * navigate around the date grid.
+ */
@Override
public boolean keyPressed(Component component, int keyCode, Keyboard.KeyLocation keyLocation) {
boolean consumed = false;
Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/CalendarButtonSkin.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/CalendarButtonSkin.java?rev=997843&r1=997842&r2=997843&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/CalendarButtonSkin.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/CalendarButtonSkin.java Thu Sep 16 16:53:44 2010
@@ -245,6 +245,13 @@ public abstract class CalendarButtonSkin
return consumed;
}
+ /**
+ * {@link Keyboard.KeyCode#SPACE} repaints the component to reflect the
+ * pressed state.
+ *
+ * @see #keyReleased(Component, int,
+ * org.apache.pivot.wtk.Keyboard.KeyLocation)
+ */
@Override
public boolean keyPressed(Component component, int keyCode, Keyboard.KeyLocation keyLocation) {
boolean consumed = false;
Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ColorChooserButtonSkin.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ColorChooserButtonSkin.java?rev=997843&r1=997842&r2=997843&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ColorChooserButtonSkin.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ColorChooserButtonSkin.java Thu Sep 16 16:53:44 2010
@@ -262,6 +262,13 @@ public abstract class ColorChooserButton
// ComponentKeyListener methods
+ /**
+ * {@link Keyboard.KeyCode#SPACE} repaints the component to reflect the
+ * pressed state.
+ *
+ * @see #keyReleased(Component, int,
+ * org.apache.pivot.wtk.Keyboard.KeyLocation)
+ */
@Override
public boolean keyPressed(Component component, int keyCode, Keyboard.KeyLocation keyLocation) {
boolean consumed = false;
Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ListButtonSkin.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ListButtonSkin.java?rev=997843&r1=997842&r2=997843&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ListButtonSkin.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ListButtonSkin.java Thu Sep 16 16:53:44 2010
@@ -242,6 +242,15 @@ public abstract class ListButtonSkin ext
return consumed;
}
+ /**
+ * {@link Keyboard.KeyCode#SPACE} repaints the component to reflect the
+ * pressed state.<br>
+ * {@link Keyboard.KeyCode#UP} selects the previous enabled list item.<br>
+ * {@link Keyboard.KeyCode#DOWN} selects the next enabled list item.
+ *
+ * @see #keyReleased(Component, int,
+ * org.apache.pivot.wtk.Keyboard.KeyLocation)
+ */
@Override
public boolean keyPressed(Component component, int keyCode, Keyboard.KeyLocation keyLocation) {
boolean consumed = false;
Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/MenuButtonSkin.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/MenuButtonSkin.java?rev=997843&r1=997842&r2=997843&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/MenuButtonSkin.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/MenuButtonSkin.java Thu Sep 16 16:53:44 2010
@@ -152,6 +152,13 @@ public abstract class MenuButtonSkin ext
return true;
}
+ /**
+ * {@link Keyboard.KeyCode#SPACE} repaints the component to reflect the
+ * pressed state.
+ *
+ * @see #keyReleased(Component, int,
+ * org.apache.pivot.wtk.Keyboard.KeyLocation)
+ */
@Override
public boolean keyPressed(Component component, int keyCode, Keyboard.KeyLocation keyLocation) {
boolean consumed = false;
Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/PushButtonSkin.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/PushButtonSkin.java?rev=997843&r1=997842&r2=997843&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/PushButtonSkin.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/PushButtonSkin.java Thu Sep 16 16:53:44 2010
@@ -78,6 +78,13 @@ public abstract class PushButtonSkin ext
return consumed;
}
+ /**
+ * {@link Keyboard.KeyCode#SPACE} repaints the component to reflect the
+ * pressed state.
+ *
+ * @see #keyReleased(Component, int,
+ * org.apache.pivot.wtk.Keyboard.KeyLocation)
+ */
@Override
public boolean keyPressed(Component component, int keyCode, Keyboard.KeyLocation keyLocation) {
boolean consumed = false;