]> git.argeo.org Git - gpl/argeo-slc.git/blob - DistParentElem.java
8b1f045d3dc6809e9bc0fff5fc1127d8d0cdba21
[gpl/argeo-slc.git] / DistParentElem.java
1 package org.argeo.slc.client.ui.dist.model;
2
3 /** Common super class for all dist tree elements */
4 public abstract class DistParentElem {
5 private boolean inHome = false;
6 private boolean isReadOnly = false;
7
8 public DistParentElem(boolean inHome, boolean isReadOnly) {
9 this.inHome = inHome;
10 this.isReadOnly = isReadOnly;
11 }
12
13 public DistParentElem() {
14 }
15
16 public abstract String getLabel();
17
18 public abstract Object[] getChildren();
19
20 public boolean hasChildren() {
21 return true;
22 }
23
24 public void dispose() {
25 }
26
27 public void setInHome(boolean inHome) {
28 this.inHome = inHome;
29 }
30
31 public void setReadOnly(boolean isReadOnly) {
32 this.isReadOnly = isReadOnly;
33 }
34
35 public boolean inHome() {
36 return inHome;
37 }
38
39 public boolean isReadOnly() {
40 return isReadOnly;
41 }
42 }