use of org.gwtbootstrap3.client.ui.RadioButton in project ovirt-engine by oVirt.
the class ViewRadioGroup method getRadioGroupPanel.
private Widget getRadioGroupPanel() {
ButtonGroup buttonGroup = new ButtonGroup();
buttonGroup.setDataToggle(Toggle.BUTTONS);
for (ViewFilter<K> item : items) {
RadioButton radioButton = new RadioButton(GROUP_NAME);
radioButton.setText(item.getText());
radioButton.addClickHandler(event -> fireChangeHandlers(item.getValue()));
buttons.put(item.getValue(), radioButton);
buttonGroup.add(radioButton);
}
setSelectedValue(items.get(0).getValue());
return buttonGroup;
}
Aggregations