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.base.DruStatusBar; 7 import org.catacomb.interlish.structure.Marketplace; 8 9 10 public class StatusBar extends Panel { 11 12 public String text; 13 14 public DruPanel instantiatePanel() { 15 return new DruStatusBar(); 16 17 } 18 19 20 public void populatePanel(DruPanel dp, Context ctx, GUIPath gpath) { 21 22 DruStatusBar drup = (DruStatusBar)dp; 23 if (text != null) { 24 drup.showStatus(text); 25 } 26 27 28 Marketplace hub = ctx.getMarketplace(); 29 30 if (id == null || id.length() == 0) { 31 hub.addReceiver("Status", drup, "status"); 32 33 } else { 34 hub.addReceiver("Status", drup, id); 35 } 36 } 37 38 39 40 41 42 }