@@ -0,0 +1,1313 @@
+package com.itmill.toolkit.tests.tickets;%0A%0Aimport com.itmill.toolkit.Application;%0Aimport com.itmill.toolkit.ui.ProgressIndicator;%0Aimport com.itmill.toolkit.ui.Window;%0A%0Apublic class Ticket2420 extends Application %7B%0A%0A    @Override%0A    public void init() %7B%0A        final Window main = new Window(%22Hello window%22);%0A        setMainWindow(main);%0A%0A        main.setTheme(%22tests-tickets%22);%0A%0A        ProgressIndicator pi = new ProgressIndicator();%0A        pi.setCaption(%22Visible%22);%0A        pi.setIndeterminate(false);%0A        pi.setValue(new Float(0.5));%0A        main.addComponent(pi);%0A%0A        pi = new ProgressIndicator();%0A        pi.setCaption(%22Visible (indeterminate)%22);%0A        pi.setIndeterminate(true);%0A%0A        main.addComponent(pi);%0A%0A        main.addComponent(pi);%0A%0A        pi = new ProgressIndicator();%0A        pi.setCaption(%22Visible (indeterminate, with .redborder css)%22);%0A        pi.addStyleName(%22redborder%22);%0A        pi.setIndeterminate(true);%0A%0A        main.addComponent(pi);%0A%0A        pi = new ProgressIndicator();%0A        pi.setCaption(%22Disabled %22);%0A        pi.setEnabled(false);%0A        pi.setIndeterminate(true);%0A%0A        main.addComponent(pi);%0A%0A        pi = new ProgressIndicator();%0A%0A        pi.setCaption(%22Hidden (via css)%22);%0A%0A        pi.addStyleName(%22dispnone%22);%0A%0A        main.addComponent(pi);%0A%0A    %7D%0A%0A%7D%0A

test case