super(8, 1);
this.parent = parent;
setSpacing(true);
setWidth(null);
Select s = new Select("Basic select");
s.setId("select" + debugIdCounter++);
addComponent(s);
s = new Select("Select with items");
s.setId("select" + debugIdCounter++);
createDummyData(s);
addComponent(s);
TwinColSelect tws = new TwinColSelect();
tws.setId("select" + debugIdCounter++);
createDummyData(tws);
addComponent(tws);
OptionGroup og = new OptionGroup();
og.setId("select" + debugIdCounter++);
createDummyData(og, 4);
addComponent(og);
og = new OptionGroup();
og.setId("select" + debugIdCounter++);
createDummyData(og, 4);
og.setItemEnabled("Foo2", false);
og.setItemEnabled("Foo3", false);
addComponent(og);
NativeSelect ns = new NativeSelect();
ns.setId("select" + debugIdCounter++);
createDummyData(ns);
addComponent(ns);
createComboBoxWith(null, null, null);
createComboBoxWith("CB Search", ChameleonTheme.COMBOBOX_SEARCH, null);
createComboBoxWith("SelectButton",
ChameleonTheme.COMBOBOX_SELECT_BUTTON, null);
ListSelect ls = new ListSelect();
ls.setId("select" + debugIdCounter++);
createDummyData(ls);
addComponent(ls);
s = new Select("Basic select");
s.setId("select" + debugIdCounter++);
s.setWidth("100px");
addComponent(s);
s = new Select("Select with items");
s.setWidth("100px");
s.setId("select" + debugIdCounter++);
createDummyData(s);
addComponent(s);
createComboBoxWith(null, null, "100px");
createComboBoxWith("CB Search", ChameleonTheme.COMBOBOX_SEARCH, "100px");