protected void handleRadioGroups() { clearGroups(); for (int i = 0; i < getItemCount(); i++) { Object obj = getItem(i); if (obj instanceof CheckMenuItem) { CheckMenuItem check = (CheckMenuItem) obj; if (check.getGroup() != null) { El g = getGroup(check.getGroup()); Accessibility.setState( g.dom, "aria-owns", g.dom.getAttribute("aria-owns") + " " + check.getId()); if (check.getAriaGroupTitle() != null) { g.dom.setTitle(check.getAriaGroupTitle()); } } } } }