Project

General

Profile

Revision 2b266c5e

ID2b266c5e96fd4c31b17b07eb1311f7d77c3c32f0
Parent 931fe3c9
Child 2fbc5869

Added by Andreas Kohlbecker about 2 years ago

ref #7182 fixing bug in setDeepReadOnly()

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/component/common/TeamOrPersonField.java
111 111

  
112 112
        teamOrPersonSelect.addValueChangeListener(e -> {
113 113
            selectConfirmButton.setEnabled(teamOrPersonSelect.getValue() != null);
114
            selectConfirmButton.addStyleName(ValoTheme.BUTTON_PRIMARY);
114 115
        });
115 116
        teamOrPersonSelect.setWidthUndefined();
116 117

  
src/main/java/eu/etaxonomy/vaadin/component/CompositeCustomField.java
221 221

  
222 222
        component.setReadOnly(readOnly);
223 223
        if(Button.class.isAssignableFrom(component.getClass())){
224
            component.setEnabled(false);
224
            component.setEnabled(!readOnly);
225 225
        }
226 226
        if(Layout.class.isAssignableFrom(component.getClass())){
227 227
            for(Component nestedComponent : ((Layout)component)){

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)