1 13 package info.magnolia.cms.gui.control; 14 15 import info.magnolia.cms.core.Content; 16 17 18 23 public class Hidden extends ControlSuper { 24 25 public Hidden() { 26 } 27 28 public Hidden(String name, String value) { 29 super(name, value); 30 } 31 32 public Hidden(String name, String value, boolean saveInfo) { 33 super(name, value); 34 this.setSaveInfo(saveInfo); 35 } 36 37 public Hidden(String name, Content websiteNode) { 38 super(name, websiteNode); 39 } 40 41 public String getHtml() { 42 StringBuffer html = new StringBuffer (); 43 html.append("<input type=\"hidden\""); html.append(" name=\"" + this.getName() + "\""); html.append(" id=\"" + this.getName() + "\""); html.append(" value=\"" + this.getValue() + "\""); html.append(" />"); html.append(this.getHtmlSaveInfo()); 49 return html.toString(); 50 } 51 } 52 | Popular Tags |