public void updateState(PropertyValue value) { customEditor.updateModel(); if (isCurrentValueANull() || value == null) { customEditor.setValue(null); } else { customEditor.setValue(value); } radioButton.setSelected(!isCurrentValueAUserCodeType()); }