blob: db61f415f4e8c1be1bfe4d5cfc91a1dc80a4d1c1 (
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.widgetset.server;
import com.vaadin.annotations.Widgetset;
import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractReindeerTestUI;
import com.vaadin.tests.widgetset.TestingWidgetSet;
import com.vaadin.ui.TextArea;
/**
* UI for testing that @DelegateToWidget works on derived widget states.
*
* @author Vaadin Ltd
*/
@Widgetset(TestingWidgetSet.NAME)
public class OverriddenDecendants extends AbstractReindeerTestUI {
@Override
protected void setup(VaadinRequest request) {
TextArea normalTextArea = new TextArea();
normalTextArea.setRows(10);
normalTextArea.setWordWrap(true);
getLayout().addComponent(normalTextArea);
// @DelegateToWidget will not work with overridden state in connector
SuperTextArea superTextArea = new SuperTextArea();
superTextArea.setRows(10);
superTextArea.setWordWrap(true);
getLayout().addComponent(superTextArea);
// @DelegateToWidget will not work with overridden state in connector
ExtraSuperTextArea extraSuperTextArea = new ExtraSuperTextArea();
extraSuperTextArea.setRows(10);
extraSuperTextArea.setWordWrap(true);
getLayout().addComponent(extraSuperTextArea);
}
@Override
protected String getTestDescription() {
return "@DelegateToWidget does not work for widget descendants with overridden getState";
}
@Override
protected Integer getTicketNumber() {
return 14059;
}
}
|