1 package org.catacomb.druid.blocks;
2
3 import org.catacomb.druid.build.Context;
4 import org.catacomb.druid.build.GUIPath;
5 import org.catacomb.druid.gui.base.DruPanel;
6 import org.catacomb.druid.gui.edit.DruCheckboxTreePanel;
7
8
9 public class CheckboxTree extends Panel {
10
11 public String action;
12 public String flavor;
13
14
15
16
17 public DruPanel instantiatePanel() {
18 return new DruCheckboxTreePanel();
19 }
20
21
22 public void populatePanel(DruPanel dp, Context ctx, GUIPath gpath) {
23 DruCheckboxTreePanel drup = (DruCheckboxTreePanel)dp;
24
25 if (action != null) {
26 drup.setAction(action);
27 }
28
29 if (flavor != null) {
30 ctx.getMarketplace().addConsumer("CheckboxTree", drup, flavor);
31 ctx.getMarketplace().addVisible("TreeSelection", drup, flavor);
32 }
33
34 }
35
36 }