return Generics2.newArrayList(createButton("Left"), createButton("Center"), createButton("Right"));
}
};
add(buttonGroup);
Toolbar toolbar = new Toolbar("toolbar");
toolbar.add(newButtonGroup("buttonGroup1", 3));
toolbar.add(newButtonGroup("buttonGroup2", 5));
toolbar.add(newButtonGroup("buttonGroup3", 1));
add(toolbar);
ButtonGroup verticalButtonGroup = new ButtonGroup("verticalButtonGroup", Buttons.Orientation.Vertical) {
@Override
protected List<AbstractLink> newButtons(String buttonMarkupId) {