1 13 package info.magnolia.cms.gui.dialog; 14 15 import info.magnolia.cms.gui.control.Button; 16 17 import java.io.IOException ; 18 import java.io.Writer ; 19 20 21 25 public class DialogButton extends DialogBox { 26 27 30 protected DialogButton() { 31 } 32 33 36 public void drawHtml(Writer out) throws IOException { 37 Button control = new Button(); 38 String label = getConfigValue("buttonLabel"); label = this.getMessage(label); 40 control.setSaveInfo(false); 41 control.setLabel(label); 42 control.setOnclick(this.getConfigValue("onclick")); if (this.getConfigValue("small").equals("true")) { control.setSmall(true); 45 } 46 this.drawHtmlPre(out); 47 out.write(control.getHtml()); 48 this.drawHtmlPost(out); 49 } 50 } 51 | Popular Tags |