]> source.dussan.org Git - vaadin-framework.git/commitdiff
test case
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 7 Jan 2009 10:01:57 +0000 (10:01 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 7 Jan 2009 10:01:57 +0000 (10:01 +0000)
svn changeset:6426/svn branch:trunk

src/com/itmill/toolkit/tests/tickets/Ticket2420.java [new file with mode: 0644]

diff --git a/src/com/itmill/toolkit/tests/tickets/Ticket2420.java b/src/com/itmill/toolkit/tests/tickets/Ticket2420.java
new file mode 100644 (file)
index 0000000..01302a8
--- /dev/null
@@ -0,0 +1,54 @@
+package com.itmill.toolkit.tests.tickets;
+
+import com.itmill.toolkit.Application;
+import com.itmill.toolkit.ui.ProgressIndicator;
+import com.itmill.toolkit.ui.Window;
+
+public class Ticket2420 extends Application {
+
+    @Override
+    public void init() {
+        final Window main = new Window("Hello window");
+        setMainWindow(main);
+
+        main.setTheme("tests-tickets");
+
+        ProgressIndicator pi = new ProgressIndicator();
+        pi.setCaption("Visible");
+        pi.setIndeterminate(false);
+        pi.setValue(new Float(0.5));
+        main.addComponent(pi);
+
+        pi = new ProgressIndicator();
+        pi.setCaption("Visible (indeterminate)");
+        pi.setIndeterminate(true);
+
+        main.addComponent(pi);
+
+        main.addComponent(pi);
+
+        pi = new ProgressIndicator();
+        pi.setCaption("Visible (indeterminate, with .redborder css)");
+        pi.addStyleName("redborder");
+        pi.setIndeterminate(true);
+
+        main.addComponent(pi);
+
+        pi = new ProgressIndicator();
+        pi.setCaption("Disabled ");
+        pi.setEnabled(false);
+        pi.setIndeterminate(true);
+
+        main.addComponent(pi);
+
+        pi = new ProgressIndicator();
+
+        pi.setCaption("Hidden (via css)");
+
+        pi.addStyleName("dispnone");
+
+        main.addComponent(pi);
+
+    }
+
+}