From: Marc Englund Date: Fri, 17 Aug 2007 08:26:03 +0000 (+0000) Subject: undo bad commit X-Git-Tag: 6.7.0.beta1~6089 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b400cb93aa98870059aafd879de9e0b93492d231;p=vaadin-framework.git undo bad commit svn changeset:2045/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/demo/HelloWorld.java b/src/com/itmill/toolkit/demo/HelloWorld.java index e2001a73cd..d4ab04e486 100644 --- a/src/com/itmill/toolkit/demo/HelloWorld.java +++ b/src/com/itmill/toolkit/demo/HelloWorld.java @@ -1,13 +1,6 @@ package com.itmill.toolkit.demo; -import java.util.Date; - -import com.itmill.toolkit.ui.Button; -import com.itmill.toolkit.ui.CalendarField; -import com.itmill.toolkit.ui.DateField; -import com.itmill.toolkit.ui.Label; -import com.itmill.toolkit.ui.OrderedLayout; -import com.itmill.toolkit.ui.Window; +import com.itmill.toolkit.ui.*; /** * The classic "hello, world!" example for IT Mill Toolkit. The class simply @@ -26,10 +19,8 @@ public class HelloWorld extends com.itmill.toolkit.Application { * com.itmill.toolkit.service.Application class. It will be automatically * called by the framework when a user accesses the application. */ - OrderedLayout l; public void init() { - setTheme("demo"); /* * - Create new window for the application - Give the window a visible * title - Set the window to be the main window of the application @@ -37,44 +28,15 @@ public class HelloWorld extends com.itmill.toolkit.Application { Window main = new Window("Hello window"); setMainWindow(main); - main.addComponent(new DateField()); - main.addComponent(new CalendarField()); - /* * - Create a label with the classic text - Add the label to the main * window */ - main.addComponent(new Label("Hello4 World!")); - - l = new OrderedLayout(); - main.addComponent(l); - l.addComponent(new Button("foo",this,"foo")); - l.addComponent(new Button("asd",this,"asd")); + main.addComponent(new Label("Hello World!")); /* * And that's it! The framework will display the main window and its * contents when the application is accessed with the terminal. */ } - - public void foo() { - long s = new Date().getTime(); - System.out.println("> foo: " + s); - try { - Thread.currentThread().sleep(5000); - } catch (Exception e) { - - } - System.out.println("< foo: " + s); - } - public void asd() { - long s = new Date().getTime(); - System.out.println("> asd: " + s); - try { - Thread.currentThread().sleep(5000); - } catch (Exception e) { - - } - System.out.println("< asd: " + s); - } }