1 2 package org.catacomb.druid.blocks; 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.DruLoggedButton; 8 9 10 11 public class LoggedButton extends Panel { 12 13 14 public String label; 15 public String action; 16 17 18 public LoggedButton() { 19 } 20 21 22 23 public LoggedButton(String slab) { 24 label = slab; 25 action = label; 26 } 27 28 29 public DruPanel instantiatePanel() { 30 return new DruLoggedButton(label); 31 32 } 33 34 public void populatePanel(DruPanel dp, Context ctx, GUIPath gpath) { 35 DruLoggedButton drup = (DruLoggedButton)dp; 36 37 ctx.getMarketplace().addProducer("LogMessage", drup, "default"); 38 } 39 40 41 }