OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 156 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 156 Rev 177
Line 226... Line 226...
226
        }
226
        }
227
    }
227
    }
228
 
228
 
229
    @Override
229
    @Override
230
    public JSONObject toJSON() {
230
    public JSONObject toJSON() {
-
 
231
        if (isDestroyed()) {
-
 
232
            throw new IllegalStateException(this + " already destroyed");
-
 
233
        }
231
        final JSONObject result = super.toJSON();
234
        final JSONObject result = super.toJSON();
232
        if (this.title != null) {
235
        if (this.title != null) {
233
            result.put("title", this.title);
236
            result.put("title", this.title);
234
        }
237
        }
235
        if (this.titleColor != null) {
238
        if (this.titleColor != null) {