118119120121122123124125126127128
if( b.isSelected() != selected ) { b.setSelected(selected); } } else if( getWidget() instanceof ToggleButton ) { RadioButton b = (RadioButton) getWidget(); if( b.isSelected() != selected ) { b.setSelected(selected); } } }
165166167168169170171172173174175
return b; } else { return new Button("Push Button"); } case RADIO: return new RadioButton("RadioButton"); default: break; } return null; }