blob: aaa7496616182b92c3150a2877680dba7b784d5e (
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
|
package com.vaadin.tests.components.treetable;
import com.vaadin.server.ExternalResource;
import com.vaadin.tests.components.AbstractTestCase;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.Link;
import com.vaadin.ui.TreeTable;
public class DisappearingComponents extends AbstractTestCase {
@Override
public void init() {
LegacyWindow mainWindow = new LegacyWindow("Application");
final TreeTable tt = new TreeTable();
tt.setSizeUndefined();
tt.setWidth("100%");
tt.setImmediate(true);
tt.setPageLength(0);
tt.addContainerProperty("i", Integer.class, null);
tt.addContainerProperty("link", Link.class, null);
Object[] items = new Object[3];
for (int i = 0; i < items.length; i++) {
items[i] = tt
.addItem(
new Object[] {
i + 1,
new Link(String.valueOf(i + 1),
new ExternalResource(
"http://www.google.fi")) },
null);
}
tt.setChildrenAllowed(items[0], false);
tt.setChildrenAllowed(items[2], false);
tt.setParent(items[2], items[1]);
mainWindow.addComponent(tt);
setMainWindow(mainWindow);
}
@Override
protected String getDescription() {
return "TreeTable column component empty after expand+collapse when pageLength is set to zero";
}
@Override
protected Integer getTicketNumber() {
return 7808;
}
}
|