summaryrefslogtreecommitdiffstats
path: root/vaadin-app
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-09-25 13:00:23 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-09-25 13:00:23 +0200
commit23501be1977298298642260e2e4d527ad7650605 (patch)
tree858188ddbb180715e6dc2af9be9e0d0740cd1ba6 /vaadin-app
parentceb7dbb7837778212330906d905d7350e7ea1a7a (diff)
downloadskeletons-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.java10
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");
}
}