summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/ui/Button.java
diff options
context:
space:
mode:
authorMarc Englund <marc.englund@itmill.com>2010-03-23 15:40:24 +0000
committerMarc Englund <marc.englund@itmill.com>2010-03-23 15:40:24 +0000
commit6c663d40425234642afecd7f1d36c7e62ac308ab (patch)
tree256d814f322ab4ef85ca6e8089a957d9e8ae4446 /src/com/vaadin/ui/Button.java
parent30684aae91c5f82c242d6f8daa584373dcb01fdc (diff)
downloadvaadin-framework-6c663d40425234642afecd7f1d36c7e62ac308ab.tar.gz
vaadin-framework-6c663d40425234642afecd7f1d36c7e62ac308ab.zip
Some API changes for #875 as discussed at length.
svn changeset:12048/svn branch:6.3
Diffstat (limited to 'src/com/vaadin/ui/Button.java')
-rw-r--r--src/com/vaadin/ui/Button.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/vaadin/ui/Button.java b/src/com/vaadin/ui/Button.java
index 08fab9772a..004bf43a8f 100644
--- a/src/com/vaadin/ui/Button.java
+++ b/src/com/vaadin/ui/Button.java
@@ -357,16 +357,16 @@ public class Button extends AbstractField {
public ClickShortcut setClickShortcut(int keyCode, int... modifiers) {
ClickShortcut old = clickShortcut;
if (old != null) {
- removeAction(old);
+ removeShortcutListener(old);
}
clickShortcut = new ClickShortcut(this, keyCode, modifiers);
- addAction(clickShortcut);
+ addShortcutListener(clickShortcut);
return old;
}
public void removeClickShortcut() {
if (clickShortcut != null) {
- removeAction(clickShortcut);
+ removeShortcutListener(clickShortcut);
clickShortcut = null;
}
}