1 package org.catacomb.druid.blocks;
2
3
4 import org.catacomb.druid.build.Context;
5 import org.catacomb.druid.build.GUIPath;
6 import org.catacomb.druid.gui.base.DruPanel;
7 import org.catacomb.druid.gui.edit.DruDropBox;
8
9
10
11 public class DropBox extends Panel {
12
13
14 public String action;
15
16 public DruPanel instantiatePanel() {
17 prefHeight = 30;
18 if (prefWidth <= 10) {
19 prefWidth = 100;
20 }
21
22 return new DruDropBox();
23 }
24
25
26 public void populatePanel(DruPanel dp, Context ctx, GUIPath gpath) {
27
28 DruDropBox dhp = (DruDropBox)dp;
29
30 if (action != null) {
31 dhp.setAction(action);
32 }
33
34
35 dhp.setEtchedBorder(ctx.getBg());
36
37 }
38
39
40 }