blob: 3e8b0678a798d71210613e5b1bf5f05ffd83cfc4 (
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
|
package com.vaadin.tests.components.datefield;
import java.util.LinkedHashMap;
import com.vaadin.ui.PopupDateField;
public class PopupDateFieldTest extends DateFieldTest<PopupDateField> {
@Override
protected Class<PopupDateField> getTestClass() {
return PopupDateField.class;
}
@Override
protected void createActions() {
super.createActions();
createInputPromptSelectAction(CATEGORY_FEATURES);
}
private void createInputPromptSelectAction(String category) {
LinkedHashMap<String, String> options = new LinkedHashMap<String, String>();
options.put("<none>", null);
options.put("Please enter date", "Please enter date");
options.put("åäöÅÄÖ", "åäöÅÄÖ");
createSelectAction("Input prompt", category, options, "<none>",
new Command<PopupDateField, String>() {
@Override
public void execute(PopupDateField c, String value,
Object data) {
c.setInputPrompt(value);
}
});
}
}
|