blob: 3aaae7e6dcb8b7a0c922881bb81da92b9f3ce0a6 (
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.combobox;
import java.util.Arrays;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.ComboBox;
import com.vaadin.ui.Component;
import com.vaadin.ui.PopupView;
import com.vaadin.ui.TextArea;
public class ComboboxInPopupViewWithItems extends TestBase {
@Override
protected void setup() {
addComponent(new TextArea("Some component"));
addComponent(new PopupView(new PopupContent()));
}
@Override
protected String getDescription() {
return "Combobox popup should be in the correct place even when it is located inside a PopupView";
}
@Override
protected Integer getTicketNumber() {
return 9768;
}
class PopupContent implements PopupView.Content {
private final ComboBox cb = new ComboBox(null, Arrays.asList("Item 1",
"Item 2", "Item 3"));
@Override
public String getMinimizedValueAsHTML() {
return "click here";
}
@Override
public Component getPopupComponent() {
return cb;
}
}
}
|