diff options
Diffstat (limited to 'uitest/src/com/vaadin/tests/tickets/Ticket2420.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/tickets/Ticket2420.java | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2420.java b/uitest/src/com/vaadin/tests/tickets/Ticket2420.java new file mode 100644 index 0000000000..5d15107053 --- /dev/null +++ b/uitest/src/com/vaadin/tests/tickets/Ticket2420.java @@ -0,0 +1,54 @@ +package com.vaadin.tests.tickets; + +import com.vaadin.Application; +import com.vaadin.ui.ProgressIndicator; +import com.vaadin.ui.UI.LegacyWindow; + +public class Ticket2420 extends Application.LegacyApplication { + + @Override + public void init() { + final LegacyWindow main = new LegacyWindow("Hello window"); + setMainWindow(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); + + } + +} |