sizeGroup.getGroupListeners().add(new Button.GroupListener() {
public void selectionChanged(Button.Group buttonGroup, Button previousSelection) {
final Button selection = buttonGroup.getSelection();
int selectedIndex = selection == null ? -1 : selection.getParent().indexOf(selection);
cardPane.getCardPaneListeners().add(new CardPaneListener() {
public void orientationChanged(CardPane cardPane, Orientation previousOrientation) {
}
public Vote previewSelectedIndexChange(CardPane cardPane, int selectedIndex) {