aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/ui/Button.java
diff options
context:
space:
mode:
authorMarc Englund <marc.englund@itmill.com>2010-03-23 10:05:45 +0000
committerMarc Englund <marc.englund@itmill.com>2010-03-23 10:05:45 +0000
commit486a2310ce0f812afbdb93db3f98963ea85d74d8 (patch)
treefaf628bb068ff9c43aa6bd1f8ba89eb4520d2dbb /src/com/vaadin/ui/Button.java
parentbe1d9b2934dcc006ab84110c66d7a77f6ebeb8c6 (diff)
downloadvaadin-framework-486a2310ce0f812afbdb93db3f98963ea85d74d8.tar.gz
vaadin-framework-486a2310ce0f812afbdb93db3f98963ea85d74d8.zip
Refactored new actions api a little: removed mnemonics terminology, adding/removing stuff 'returns' void, shift shorthand in now _
svn changeset:12029/svn branch:6.3
Diffstat (limited to 'src/com/vaadin/ui/Button.java')
-rw-r--r--src/com/vaadin/ui/Button.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/com/vaadin/ui/Button.java b/src/com/vaadin/ui/Button.java
index 156c942901..08fab9772a 100644
--- a/src/com/vaadin/ui/Button.java
+++ b/src/com/vaadin/ui/Button.java
@@ -352,22 +352,22 @@ public class Button extends AbstractField {
* Actions
*/
- protected ClickShortcut clickMnemonic;
+ protected ClickShortcut clickShortcut;
- public ClickShortcut setClickMnemonic(int keyCode, int... modifiers) {
- ClickShortcut old = clickMnemonic;
+ public ClickShortcut setClickShortcut(int keyCode, int... modifiers) {
+ ClickShortcut old = clickShortcut;
if (old != null) {
removeAction(old);
}
- clickMnemonic = new ClickShortcut(this, keyCode, modifiers);
- addAction(clickMnemonic);
+ clickShortcut = new ClickShortcut(this, keyCode, modifiers);
+ addAction(clickShortcut);
return old;
}
- public void removeClickMnemonic() {
- if (clickMnemonic != null) {
- removeAction(clickMnemonic);
- clickMnemonic = null;
+ public void removeClickShortcut() {
+ if (clickShortcut != null) {
+ removeAction(clickShortcut);
+ clickShortcut = null;
}
}