diff options
author | Pekka Hyvönen <pekka@vaadin.com> | 2016-12-19 15:16:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-19 15:16:55 +0200 |
commit | 8be5b7e8e73b64726f250e13a499cc8ec1286312 (patch) | |
tree | 15dbc02575cfaec010679e712764d5eb4dbb4ff4 /documentation/advanced | |
parent | 2844b57e0b847f8deb5dab75cb4b2ffece82c4f9 (diff) | |
download | vaadin-framework-8be5b7e8e73b64726f250e13a499cc8ec1286312.tar.gz vaadin-framework-8be5b7e8e73b64726f250e13a499cc8ec1286312.zip |
Fix broken docs in advanded-shortcuts (#8042)
* Fix broken docs in advanded-shortcuts
Diffstat (limited to 'documentation/advanced')
-rw-r--r-- | documentation/advanced/advanced-shortcuts.asciidoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/documentation/advanced/advanced-shortcuts.asciidoc b/documentation/advanced/advanced-shortcuts.asciidoc index 0a999c936d..fa3c92fdae 100644 --- a/documentation/advanced/advanced-shortcuts.asciidoc +++ b/documentation/advanced/advanced-shortcuts.asciidoc @@ -154,8 +154,8 @@ public class DefaultButtonExample extends CustomComponent HorizontalLayout buttons = new HorizontalLayout(); // Create buttons and define their listener methods. - Button ok = new Button("OK", this, "okHandler"); - Button cancel = new Button("Cancel", this, "cancelHandler"); + Button ok = new Button("OK", event -> okHandler()); + Button cancel = new Button("Cancel", event -> cancelHandler()); // Have the unmodified Enter key cause an event Action action_ok = new ShortcutAction("Default key", |