if(root != null) init(root);
}
private void init(RootPanel root) {
FlowPanel panel = new FlowPanel();
StyleListBox styles = new StyleListBox();
styles.setWidth("80px");
for(int i = 0; i < 10; ++i) {
styles.addItem("item " + (i + 1));
styles.addStyleName(i, i % 2 == 0 ? "gwtlib-StyleListBox-even" : "gwtlib-StyleListBox-odd");
}
ColorListBox colors = new ColorListBox();
colors.setWidth("80px");
String[] cols = { "red", "green", "blue", "red", "green", "blue" };
colors.setColors(cols);