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 174
Line 18... Line 18...
18
 
18
 
19
import net.minidev.json.JSONObject;
19
import net.minidev.json.JSONObject;
20
 
20
 
21
public class LightUIHTMLStrippedPanel extends LightUIPanel implements Transferable, HTMLable {
21
public class LightUIHTMLStrippedPanel extends LightUIPanel implements Transferable, HTMLable {
22
 
22
 
-
 
23
    public LightUIHTMLStrippedPanel() {
-
 
24
    }
-
 
25
 
23
    public LightUIHTMLStrippedPanel(String id) {
26
    public LightUIHTMLStrippedPanel(String id) {
24
        super(id);
27
        super(id);
25
        this.setType(LightUIElement.TYPE_RAW_HTML);
28
        this.setType(LightUIElement.TYPE_RAW_HTML);
26
    }
29
    }
27
 
30
 
Line 32... Line 35...
32
    public LightUIHTMLStrippedPanel(final LightUIHTMLStrippedPanel panel) {
35
    public LightUIHTMLStrippedPanel(final LightUIHTMLStrippedPanel panel) {
33
        super(panel);
36
        super(panel);
34
    }
37
    }
35
 
38
 
36
    @Override
39
    @Override
37
    public LightUIElement clone() {
-
 
38
        return new LightUIHTMLStrippedPanel(this);
-
 
39
    }
-
 
40
 
-
 
41
    @Override
-
 
42
    public String getHTML() {
40
    public String getHTML() {
43
        final StringBuilder b = new StringBuilder();
41
        final StringBuilder b = new StringBuilder();
44
        for (int i = 0; i < this.getChildrenCount(); i++) {
42
        for (int i = 0; i < this.getChildrenCount(); i++) {
45
            final LightUILine l = this.getChild(i, LightUILine.class);
43
            final LightUILine l = this.getChild(i, LightUILine.class);
46
            if (l instanceof HTMLable) {
44
            if (l instanceof HTMLable) {