blob: 3e1cf0709879875656dab81a0cb761d5b80d03cd (
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
|
package com.vaadin.tests.serialization;
import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractReindeerTestUI;
import com.vaadin.ui.Button;
public class ChangeStateWhenReattaching extends AbstractReindeerTestUI {
@Override
protected void setup(VaadinRequest request) {
Button button = new Button("Reattach and remove caption", event -> {
Button b = event.getButton();
removeComponent(b);
addComponent(b);
b.setCaption(null);
});
addComponent(button);
}
@Override
protected String getTestDescription() {
return "Clicking the button should remove its caption, even though it is also reattached.";
}
@Override
protected Integer getTicketNumber() {
return Integer.valueOf(10532);
}
}
|