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 14... Line 14...
14
 package org.openconcerto.ui.light;
14
 package org.openconcerto.ui.light;
15
 
15
 
16
import net.minidev.json.JSONObject;
16
import net.minidev.json.JSONObject;
17
 
17
 
18
public class LightUIButtonUnmanaged extends LightUIElement {
18
public class LightUIButtonUnmanaged extends LightUIElement {
-
 
19
 
-
 
20
    public LightUIButtonUnmanaged() {
-
 
21
        // Serialization
-
 
22
    }
-
 
23
 
19
    public LightUIButtonUnmanaged(final JSONObject json) {
24
    public LightUIButtonUnmanaged(final JSONObject json) {
20
        super(json);
25
        super(json);
21
    }
26
    }
22
 
27
 
23
    public LightUIButtonUnmanaged(final String id, final String label) {
28
    public LightUIButtonUnmanaged(final String id, final String label) {
Line 35... Line 40...
35
 
40
 
36
    public LightUIButtonUnmanaged(final LightUIButtonUnmanaged button) {
41
    public LightUIButtonUnmanaged(final LightUIButtonUnmanaged button) {
37
        super(button);
42
        super(button);
38
    }
43
    }
39
 
44
 
40
    @Override
-
 
41
    public JSONToLightUIConvertor getConvertor() {
-
 
42
        return new JSONToLightUIConvertor() {
-
 
43
            @Override
-
 
44
            public LightUIElement convert(final JSONObject json) {
-
 
45
                return new LightUIButtonUnmanaged(json);
-
 
46
            }
-
 
47
        };
-
 
48
    }
-
 
49
 
-
 
50
}
45
}