1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package io.wcm.wcm.ui.granite.components.pathfield;
21
22 import java.util.ArrayList;
23 import java.util.Collections;
24 import java.util.List;
25
26 import org.osgi.annotation.versioning.ProviderType;
27
28
29
30
31 @ProviderType
32 public final class Column {
33
34 private String columnId;
35 private boolean hasMore;
36 private boolean lazy;
37 private boolean isCurrentResource;
38 private String activeId;
39 private boolean metaElement;
40 private final List<ColumnItem> items = new ArrayList<>();
41
42 Column() {
43
44 }
45
46
47
48
49
50 public String getColumnId() {
51 return this.columnId;
52 }
53
54 Column columnId(String value) {
55 this.columnId = value;
56 return this;
57 }
58
59
60
61
62
63 public boolean isHasMore() {
64 return this.hasMore;
65 }
66
67 Column hasMore(boolean value) {
68 this.hasMore = value;
69 return this;
70 }
71
72
73
74
75
76 public boolean isLazy() {
77 return this.lazy;
78 }
79
80 Column lazy(boolean value) {
81 this.lazy = value;
82 return this;
83 }
84
85
86
87
88
89 public boolean isCurrentResource() {
90 return this.isCurrentResource;
91 }
92
93 Column isCurrentResource(boolean value) {
94 this.isCurrentResource = value;
95 return this;
96 }
97
98
99
100
101
102 public String getActiveId() {
103 return this.activeId;
104 }
105
106 Column activeId(String value) {
107 this.activeId = value;
108 return this;
109 }
110
111
112
113
114
115 public boolean isMetaElement() {
116 return this.metaElement;
117 }
118
119 Column metaElement(boolean value) {
120 this.metaElement = value;
121 return this;
122 }
123
124 void addItem(ColumnItem item) {
125 this.items.add(item);
126 }
127
128
129
130
131
132 public List<ColumnItem> getItems() {
133 return Collections.unmodifiableList(this.items);
134 }
135
136 }