List of usage examples for com.google.gwt.user.client.ui RadioButton isEnabled
@Override
public boolean isEnabled()
From source file:com.vaadin.client.ui.VRadioButtonGroup.java
License:Apache License
@Override public void onClick(ClickEvent event) { if (event.getSource() instanceof RadioButton) { RadioButton source = (RadioButton) event.getSource(); if (!source.isEnabled()) { // Click events on the text are received even though the // radiobutton is disabled return; }/*from ww w . j a v a 2 s. c o m*/ if (BrowserInfo.get().isWebkit() || BrowserInfo.get().isIE11()) { // Webkit does not focus non-text input elements on click // (#11854) source.setFocus(true); } JsonObject item = optionsToItems.get(source); assert item != null; new ArrayList<>(selectionChangeListeners).forEach(listener -> listener.accept(item)); } }