blob: 2b02e89c80bc95e7d6e4003d5df680ee41156a7e (
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
|
package com.vaadin.tests.components.table;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.Table;
public class TableRepaintWhenMadeVisibile extends TestBase {
@Override
public void setup() {
final Table table = new Table();
table.addContainerProperty("sth", String.class, null);
table.addItem(new Object[] { "something" }, 1);
addComponent(table);
Button show = new Button("show", new ClickListener() {
@Override
public void buttonClick(ClickEvent event) {
table.setVisible(true);
}
});
addComponent(show);
Button hide = new Button("hide", new ClickListener() {
@Override
public void buttonClick(ClickEvent event) {
table.setVisible(false);
}
});
addComponent(hide);
}
@Override
protected String getDescription() {
return "A Table should be rendered correctly when made visible again after being initially rendered invisible. Click 'hide', refresh the application and then click 'show'";
}
@Override
protected Integer getTicketNumber() {
return 7986;
}
}
|