blob: ed60c89c16fdb8341c31cc70b6a71dd92c92c9b0 (
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
|
package com.vaadin.tests.tickets;
import com.vaadin.ui.CheckBox;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
public class Ticket1991 extends com.vaadin.Application.LegacyApplication {
@Override
public void init() {
final LegacyWindow main = new LegacyWindow(getClass().getName()
.substring(getClass().getName().lastIndexOf(".") + 1));
setMainWindow(main);
Table t = new Table("Test table");
t.addContainerProperty(" ", CheckBox.class, "");
t.addContainerProperty("Col1", String.class, "");
t.addContainerProperty("Col2", String.class, "");
t.setPageLength(5);
t.addItem(new Object[] { new CheckBox(), "Foo", "Bar" }, "1");
t.addItem(new Object[] { new CheckBox(), "Foo", "Bar" }, "2");
main.addComponent(t);
}
}
|