]> git.argeo.org Git - gpl/argeo-slc.git/blob - plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/model/GroupBaseElem.java
9b6b3ff7729821ab7886d6c2018e0479733938be
[gpl/argeo-slc.git] / plugins / org.argeo.slc.client.ui.dist / src / main / java / 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(wkspElem.inHome(), wkspElem.isReadOnly());
13 this.wkspElem = wkspElem;
14 this.groupId = groupId;
15 }
16
17 public Object[] getChildren() {
18 return null;
19 }
20
21 public String getLabel() {
22 return groupId;
23 }
24
25 public String toString() {
26 return getLabel();
27 }
28
29 public void dispose() {
30 }
31
32 public WorkspaceElem getWorkspaceElem() {
33 return wkspElem;
34 }
35 }