diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-09-25 12:59:29 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-09-25 12:59:29 +0200 |
commit | ceb7dbb7837778212330906d905d7350e7ea1a7a (patch) | |
tree | f6569b747eab5ac3c5aba3b4241e1f60c7445123 /vaadin-app/src/ch/asynk | |
parent | d122c0a5ed60763242f8f560bc92747db03db88a (diff) | |
download | skeletons-ceb7dbb7837778212330906d905d7350e7ea1a7a.zip skeletons-ceb7dbb7837778212330906d905d7350e7ea1a7a.tar.gz |
use UserError
Diffstat (limited to 'vaadin-app/src/ch/asynk')
-rw-r--r-- | vaadin-app/src/ch/asynk/helloworld/HelloWorldApp.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vaadin-app/src/ch/asynk/helloworld/HelloWorldApp.java b/vaadin-app/src/ch/asynk/helloworld/HelloWorldApp.java index 455cbfb..5c35f6c 100644 --- a/vaadin-app/src/ch/asynk/helloworld/HelloWorldApp.java +++ b/vaadin-app/src/ch/asynk/helloworld/HelloWorldApp.java @@ -3,6 +3,7 @@ package ch.asynk.helloworld; import java.util.Date; import com.vaadin.Application; +import com.vaadin.terminal.UserError; import com.vaadin.ui.Window; import com.vaadin.ui.Label; import com.vaadin.ui.Button; @@ -23,6 +24,7 @@ public class HelloWorldApp extends Application { @Override public void buttonClick(ClickEvent event) { mainWindow.showNotification("The time is " + new Date()); + event.getButton().setComponentError( new UserError("Stop pressing this button !!") ); } })); // |