OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 74 Rev 181
Line 13... Line 13...
13
    public ColumnDescriptor(String id) {
13
    public ColumnDescriptor(String id) {
14
        this.id = id;
14
        this.id = id;
15
    }
15
    }
16
 
16
 
17
    public String getId() {
17
    public String getId() {
18
        return id;
18
        return this.id;
19
    }
19
    }
20
 
20
 
21
    public String getFieldsPaths() {
21
    public String getFieldsPaths() {
22
        String r = "";
22
        String r = "";
23
        final int size = fieldPaths.size();
23
        final int size = this.fieldPaths.size();
24
        for (int i = 0; i < size; i++) {
24
        for (int i = 0; i < size; i++) {
25
            String fieldPath = fieldPaths.get(i);
25
            String fieldPath = this.fieldPaths.get(i);
26
            if (i != 0) {
26
            if (i != 0) {
27
                r += ",";
27
                r += ",";
28
            }
28
            }
29
            r += fieldPath;
29
            r += fieldPath;
30
        }
30
        }
31
        return r;
31
        return r;
32
    }
32
    }
33
 
33
 
34
    public void setFieldsPaths(String paths) {
34
    public void setFieldsPaths(String paths) {
35
        final List<String> l = StringUtils.fastSplit(paths, ',');
35
        final List<String> l = StringUtils.fastSplit(paths, ',');
36
        fieldPaths.clear();
36
        this.fieldPaths.clear();
37
        for (String string : l) {
37
        for (String string : l) {
38
            fieldPaths.add(string.trim());
38
            this.fieldPaths.add(string.trim());
39
        }
39
        }
40
    }
40
    }
41
 
41
 
42
    public String getStyle() {
42
    public String getStyle() {
43
        return style;
43
        return this.style;
44
    }
44
    }
45
 
45
 
46
    public void setStyle(String style) {
46
    public void setStyle(String style) {
47
        this.style = style;
47
        this.style = style;
48
    }
48
    }