diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-09-25 13:00:23 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-09-25 13:00:23 +0200 |
commit | 23501be1977298298642260e2e4d527ad7650605 (patch) | |
tree | 858188ddbb180715e6dc2af9be9e0d0740cd1ba6 /vaadin-app | |
parent | ceb7dbb7837778212330906d905d7350e7ea1a7a (diff) | |
download | skeletons-23501be1977298298642260e2e4d527ad7650605.zip skeletons-23501be1977298298642260e2e4d527ad7650605.tar.gz |
use Application.setLogoutURL and Application.close
Diffstat (limited to 'vaadin-app')
-rw-r--r-- | vaadin-app/src/ch/asynk/helloworld/HelloWorldApp.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vaadin-app/src/ch/asynk/helloworld/HelloWorldApp.java b/vaadin-app/src/ch/asynk/helloworld/HelloWorldApp.java index 5c35f6c..c0923f6 100644 --- a/vaadin-app/src/ch/asynk/helloworld/HelloWorldApp.java +++ b/vaadin-app/src/ch/asynk/helloworld/HelloWorldApp.java @@ -28,6 +28,16 @@ public class HelloWorldApp extends Application { } })); // + Button closeButton = new Button("close the application"); + mainWindow.addComponent(closeButton ); + closeButton.addListener( new Button.ClickListener() { + @Override + public void buttonClick(ClickEvent event) { + getMainWindow().getApplication().close(); + } + }); + // setMainWindow(mainWindow); + setLogoutURL("http://asynk.ch"); } } |