@Override
public void valueChange(ValueChangeEvent event) {
if (optiongroup.isSelected(2)) {
optiongroup.setItemCaption(1, "A+");
} else if (optiongroup.isSelected(3)) {
optiongroup.removeItem(2);
optiongroup.addItem(2);
optiongroup.setItemCaption(2, "B");
}
}
});