Project

General

Profile

« Previous | Next » 

Revision c8cf806c

Added by Andreas Kohlbecker almost 6 years ago

ref #7366 fixing problems with readonly states while setting values

View differences:

src/main/java/eu/etaxonomy/vaadin/component/CompositeCustomField.java
213 213
        parent.removeCommitHandler(commitHandler);
214 214
    }
215 215

  
216
    /**
217
     * {@inheritDoc}
218
     */
219
    @Override
220
    public void setReadOnly(boolean readOnly) {
221
        super.setReadOnly(readOnly);
222
        // setDeepReadOnly(readOnly, getContent());
223
    }
224

  
225 216
    /**
226 217
     * @param readOnly
227 218
     */
......
248 239
                ( getValue() != null ? getValue() : "null");
249 240
    }
250 241

  
251
    protected void updateCaptionReadonlyNotice() {
252
        if(isReadOnly()){
242
    protected void updateCaptionReadonlyNotice(boolean readOnly) {
243
        if(readOnly){
253 244
            setCaption(getCaption() + READ_ONLY_CAPTION_SUFFIX);
254 245
        } else {
255 246
            setCaption(getCaption().replace(READ_ONLY_CAPTION_SUFFIX, ""));

Also available in: Unified diff