]> source.dussan.org Git - vaadin-framework.git/commitdiff
undo bad commit
authorMarc Englund <marc.englund@itmill.com>
Fri, 17 Aug 2007 08:26:03 +0000 (08:26 +0000)
committerMarc Englund <marc.englund@itmill.com>
Fri, 17 Aug 2007 08:26:03 +0000 (08:26 +0000)
svn changeset:2045/svn branch:trunk

src/com/itmill/toolkit/demo/HelloWorld.java

index e2001a73cd1c8952cd9c8dc95886eb3a2e2a0ec7..d4ab04e48602afce1485053b9188e10d397c8360 100644 (file)
@@ -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);  
-       }
 }