]> git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/model/GroupBaseElem.java
Adapt to changes in Argeo Commons.
[gpl/argeo-slc.git] / org.argeo.slc.client.ui.dist / src / org / argeo / slc / client / ui / dist / model / GroupBaseElem.java
1 package org.argeo.slc.client.ui.dist.model;
2
3 /**
4 * Abstract a node of type slc:groupBase that gathers a set of artifacts that
5 * have the same group ID
6 */
7 public class GroupBaseElem extends DistParentElem {
8 // private WorkspaceElem wkspElem;
9 private String groupId;
10
11 public GroupBaseElem(WorkspaceElem wkspElem, String groupId) {
12 super(groupId, wkspElem.inHome(), wkspElem.isReadOnly());
13
14 setParent(wkspElem);
15 // this.wkspElem = wkspElem;
16 this.groupId = groupId;
17 }
18
19 public Object[] getChildren() {
20 return null;
21 }
22
23 public String getLabel() {
24 return groupId;
25 }
26
27 // public String toString() {
28 // return getLabel();
29 // }
30
31 // public void dispose() {
32 // }
33
34 public WorkspaceElem getWorkspaceElem() {
35 return (WorkspaceElem) getParent();
36 }
37
38 public String getGroupId() {
39 return getName();
40 }
41 }