blob: 5bf7f6c0bc9bfd764463c3c175a89e134ba4f2d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
package com.vaadin.tests.tickets;
import com.vaadin.LegacyApplication;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.ProgressIndicator;
public class Ticket2420 extends 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);
}
}
|