OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 83 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 83 Rev 142
Line 38... Line 38...
38
        this.id = id;
38
        this.id = id;
39
        this.label = label;
39
        this.label = label;
40
    }
40
    }
41
 
41
 
42
    public final String getId() {
42
    public final String getId() {
43
        return id;
43
        return this.id;
44
    }
44
    }
45
 
45
 
46
    public final void setId(String id) {
46
    public final void setId(String id) {
47
        this.id = id;
47
        this.id = id;
48
    }
48
    }
49
 
49
 
50
    public String getLabel() {
50
    public String getLabel() {
51
        return label;
51
        return this.label;
52
    }
52
    }
53
 
53
 
54
    public void setLabel(String label) {
54
    public void setLabel(String label) {
55
        this.label = label;
55
        this.label = label;
56
    }
56
    }
57
 
57
 
58
    public TreeItem getChild(int i) {
58
    public TreeItem getChild(int i) {
59
        return children.get(i);
59
        return this.children.get(i);
60
    }
60
    }
61
 
61
 
62
    public int getChildCount() {
62
    public int getChildCount() {
63
        return children.size();
63
        return this.children.size();
64
    }
64
    }
65
 
65
 
66
    public final List<TreeItem> getChildren() {
66
    public final List<TreeItem> getChildren() {
67
        return children;
67
        return this.children;
68
    }
68
    }
69
 
69
 
70
    public final void addChild(TreeItem item) {
70
    public final void addChild(TreeItem item) {
71
        if (this.children == null) {
71
        if (this.children == null) {
72
            this.children = new ArrayList<TreeItem>();
72
            this.children = new ArrayList<TreeItem>();
Line 88... Line 88...
88
    public final boolean hasChildren() {
88
    public final boolean hasChildren() {
89
        return this.children != null && !this.children.isEmpty();
89
        return this.children != null && !this.children.isEmpty();
90
    }
90
    }
91
 
91
 
92
    public final boolean isSelected() {
92
    public final boolean isSelected() {
93
        return isSelected;
93
        return this.isSelected;
94
    }
94
    }
95
 
95
 
96
    public final void setSelected(boolean isSelected) {
96
    public final void setSelected(boolean isSelected) {
97
        this.isSelected = isSelected;
97
        this.isSelected = isSelected;
98
    }
98
    }
99
 
99
 
100
    public final Color getColor() {
100
    public final Color getColor() {
101
        return color;
101
        return this.color;
102
    }
102
    }
103
 
103
 
104
    public final void setColor(Color color) {
104
    public final void setColor(Color color) {
105
        this.color = color;
105
        this.color = color;
106
    }
106
    }
107
 
107
 
108
    public final boolean isExpanded() {
108
    public final boolean isExpanded() {
109
        return expanded;
109
        return this.expanded;
110
    }
110
    }
111
 
111
 
112
    public final void setExpanded(boolean expanded) {
112
    public final void setExpanded(boolean expanded) {
113
        this.expanded = expanded;
113
        this.expanded = expanded;
114
    }
114
    }
115
 
115
 
116
    public final String getIconId() {
116
    public final String getIconId() {
117
        return iconId;
117
        return this.iconId;
118
    }
118
    }
119
 
119
 
120
    public final void setRightIconId(String iconId) {
120
    public final void setRightIconId(String iconId) {
121
        this.iconId = iconId;
121
        this.iconId = iconId;
122
    }
122
    }