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.DruBrowserPanel; 7 import org.catacomb.druid.gui.base.DruPanel; 8 9 10 11 public class BrowserPanel extends Panel { 12 13 public String content; 14 15 public String show; 16 17 18 19 public DruPanel instantiatePanel() { 20 return new DruBrowserPanel(content); 21 } 22 23 24 public void populatePanel(DruPanel dp, Context ctx, GUIPath gpath) { 25 DruBrowserPanel dhp = (DruBrowserPanel)dp; 26 27 dhp.setEtchedBorder(ctx.getBg()); 28 29 if (show != null) { 30 ctx.getMarketplace().addConsumer("Page", dhp, "state"); 31 } 32 } 33 34 35 }