/** * Change the group name of this radio button. * * Radio buttons are grouped by their name attribute, so changing their name * using the setName() method will also change their associated group. * * If changing this group name results in a new radio group with multiple * radio buttons selected, this radio button will remain selected and the * other radio buttons will be unselected. * * @param name * name the group with which to associate the radio button */ @Override public void setName(String name) { super.setName(name); }
/** * Change the group name of this radio button. * * Radio buttons are grouped by their name attribute, so changing their name * using the setName() method will also change their associated group. * * If changing this group name results in a new radio group with multiple * radio buttons selected, this radio button will remain selected and the * other radio buttons will be unselected. * * @param name * name the group with which to associate the radio button */ @Override public void setName(String name) { super.setName(name); }
protected void initCheckBoxs(VerticalPanel popupContent) { for (final ColumnMeta<T> columnMeta : columnMetaList) { if (addThisColumnToPopup(columnMeta)) { final CheckBox checkBox = GWT.create(CheckBox.class); checkBox.setText((String) columnMeta.getHeader().getValue()); checkBox.setName((String)columnMeta.getHeader().getValue()); checkBox.setValue(columnMeta.isVisible()); checkBox.addValueChangeHandler(handler -> addColumnOnDataGrid(handler.getValue(), columnMeta)); popupContent.add(checkBox); } } }
protected void initCheckBoxs(VerticalPanel popupContent) { for (final ColumnMeta<T> columnMeta : columnMetaList) { if (addThisColumnToPopup(columnMeta)) { final CheckBox checkBox = GWT.create(CheckBox.class); checkBox.setText((String) columnMeta.getHeader().getValue()); checkBox.setName((String)columnMeta.getHeader().getValue()); checkBox.setValue(columnMeta.isVisible()); checkBox.addValueChangeHandler(handler -> addColumnOnDataGrid(handler.getValue(), columnMeta)); popupContent.add(checkBox); } } }