1
2 package org.catacomb.dataview.build;
3
4
5 import org.catacomb.druid.build.Context;
6 import org.catacomb.druid.gui.base.DruPanel;
7 import org.catacomb.interlish.structure.AddableTo;
8 import org.catacomb.report.E;
9
10 import java.util.ArrayList;
11
12
13
14
15 public class CompoundView extends DVPanel implements AddableTo {
16
17 public String layout;
18
19
20 public ArrayList<DVPanel> panels;
21
22
23
24
25 public void add(Object obj) {
26 if (obj instanceof DVPanel) {
27 if (panels == null) {
28 panels = new ArrayList<DVPanel>();
29 }
30 panels.add((DVPanel)obj);
31
32 } else {
33 E.error("cant add " + obj + " toi compound view");
34 }
35 }
36
37
38
39 public DruPanel makePanel(Context ctxt) {
40 E.error(" CompoundView is redundant ??");
41 return null;
42
43 }
44
45 }