@Override public void viewToModel(Object dataSource) throws AdapterException { if (!button.isSelected()) { return; } super.viewToModel(dataSource); }