return ComboBox.class;
}
@Override
protected void initializeComponents() {
ComboBox s;
s = createSelect(null);
s.setWidth(null);
addTestComponent(s);
s = createSelect("Undefined wide, empty select");
s.setWidth(null);
addTestComponent(s);
s = createSelect("Undefined wide select with 5 items");
s.setWidth(null);
addItem(s, "The first item");
addItem(s, "The second item");
addItem(s, "The third item");
addItem(s, "The fourth item");
addItem(s, "The fifth item");
addTestComponent(s);
s = createSelect("Undefined wide select with 50 items");
s.setWidth(null);
populate(s, 50);
addTestComponent(s);
s = createSelect(null);
s.setWidth("100px");
addTestComponent(s);
s = createSelect("100px wide, empty select");
s.setWidth("100px");
addTestComponent(s);
s = createSelect("150px wide select with 5 items");
s.setWidth("150px");
addItem(s, "The first item");
addItem(s, "The second item");
addItem(s, "The third item");
addItem(s, "The fourth item");
addItem(s, "The fifth item");
addTestComponent(s);
s = createSelect("200px wide select with 50 items");
s.setWidth("200px");
populate(s, 50);
addTestComponent(s);
s = new PageLength0ComboBox();
s.setImmediate(true);
s.addContainerProperty(CAPTION, String.class, "");
s.setItemCaptionPropertyId(CAPTION);
s.setCaption("Pagelength 0");
populate(s, 15);
addTestComponent(s);
}