Search in sources :

Example 6 with RadioButton

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;
}
Also used : ButtonGroup(org.gwtbootstrap3.client.ui.ButtonGroup) RadioButton(org.gwtbootstrap3.client.ui.RadioButton)

Aggregations

RadioButton (org.gwtbootstrap3.client.ui.RadioButton)4 ButtonGroup (org.gwtbootstrap3.client.ui.ButtonGroup)3 Element (com.google.gwt.dom.client.Element)1 RadioButton (com.google.gwt.user.client.ui.RadioButton)1 Column (org.gwtbootstrap3.client.ui.Column)1 Radio (org.gwtbootstrap3.client.ui.Radio)1 Row (org.gwtbootstrap3.client.ui.Row)1 DiskContentType (org.ovirt.engine.core.common.businessentities.storage.DiskContentType)1 EntityModel (org.ovirt.engine.ui.uicommonweb.models.EntityModel)1