blob: 923446a1f791c93060c6a73be56a0af227acb08d (
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
|
package com.vaadin.tests.components.datefield;
import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractReindeerTestUI;
import com.vaadin.tests.components.TestDateField;
import com.vaadin.ui.AbstractLocalDateField;
import com.vaadin.ui.Button;
import com.vaadin.ui.VerticalLayout;
public class DisabledParentLayout extends AbstractReindeerTestUI {
@Override
protected void setup(VaadinRequest request) {
final VerticalLayout pane = new VerticalLayout();
AbstractLocalDateField dateField = new TestDateField();
pane.addComponent(dateField);
Button button = new Button("Test");
button.addClickListener(event -> pane.setEnabled(!pane.isEnabled()));
addComponents(pane, button);
}
@Override
protected String getTestDescription() {
return "Data field should be functional after enabling disabled parent.";
}
@Override
protected Integer getTicketNumber() {
return 4773;
}
}
|