OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 144 Rev 156
Line 42... Line 42...
42
    public int getNbLine() {
42
    public int getNbLine() {
43
        return this.nbLine;
43
        return this.nbLine;
44
    }
44
    }
45
 
45
 
46
    @Override
46
    @Override
47
    public JSONToLightUIConvertor getConvertor() {
-
 
48
        return new JSONToLightUIConvertor() {
-
 
49
            @Override
-
 
50
            public LightUIElement convert(final JSONObject json) {
-
 
51
                return new LightUITextArea(json);
-
 
52
            }
-
 
53
        };
-
 
54
    }
-
 
55
 
-
 
56
    @Override
-
 
57
    protected void copy(final LightUIElement element) {
47
    protected void copy(final LightUIElement element) {
58
        super.copy(element);
48
        super.copy(element);
59
        if (!(element instanceof LightUITextArea)) {
49
        if (!(element instanceof LightUITextArea)) {
60
            throw new InvalidClassException(this.getClassName(), element.getClassName(), element.getId());
50
            throw new InvalidClassException(this.getClassName(), element.getClassName(), element.getId());
61
        }
51
        }