panel(new PanelBuilder() {{
childLayoutHorizontal();
control(builders.createLabel("Append:"));
control(new ControlBuilder("addDropDownItemText", "textfield"));
panel(builders.hspacer("9px"));
control(new ButtonBuilder("addDropDownItemButton", "Append"));
}});
// the changed event and the remove item button
panel(builders.vspacer());
panel(new PanelBuilder() {{
childLayoutHorizontal();
control(builders.createLabel("Changed Event:"));
control(new LabelBuilder("selectedItem") {{
width("*");
alignLeft();
textVAlignCenter();
textHAlignLeft();
}});
panel(builders.hspacer("9px"));
control(new ButtonBuilder("removeDropDownItemButton", "Remove"));
}});
// and additionally the index of the selected item
panel(builders.vspacer());
panel(new PanelBuilder() {{