]> 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/DistParentElem.java
09dede9e820049ddc5a2df9dae85cb91636319cd
[gpl/argeo-slc.git] / plugins / org.argeo.slc.client.ui.dist / src / main / java / org / argeo / slc / client / ui / dist / model / DistParentElem.java
1 package org.argeo.slc.client.ui.dist.model;
2
3 /** Common super class for all tree elements of the Distributions View*/
4 public abstract class DistParentElem {
5 public final static Character VERSION_SEP = '-';
6
7 private boolean inHome = false;
8 private boolean isReadOnly = false;
9
10 public DistParentElem(boolean inHome, boolean isReadOnly) {
11 this.inHome = inHome;
12 this.isReadOnly = isReadOnly;
13 }
14
15 public DistParentElem() {
16 }
17
18 public abstract String getLabel();
19
20 public abstract Object[] getChildren();
21
22 public boolean hasChildren() {
23 return true;
24 }
25
26 public void dispose() {
27 }
28
29 public void setInHome(boolean inHome) {
30 this.inHome = inHome;
31 }
32
33 public void setReadOnly(boolean isReadOnly) {
34 this.isReadOnly = isReadOnly;
35 }
36
37 public boolean inHome() {
38 return inHome;
39 }
40
41 public boolean isReadOnly() {
42 return isReadOnly;
43 }
44 }