1 13 package info.magnolia.module.admininterface.dialogs; 14 15 import info.magnolia.cms.core.Content; 16 import info.magnolia.cms.gui.dialog.DialogStatic; 17 18 import javax.jcr.RepositoryException; 19 import javax.servlet.http.HttpServletRequest ; 20 import javax.servlet.http.HttpServletResponse ; 21 22 23 27 public class NodeNameControl extends DialogStatic { 28 29 32 public String getLabel() { 33 return "<strong>" + this.getMessage(super.getLabel()) + "</strong>"; 34 } 35 36 39 public void init(HttpServletRequest request, HttpServletResponse response, Content storageNode, Content configNode) 40 throws RepositoryException { 41 super.init(request, response, storageNode, configNode); 42 if (storageNode != null) { 43 this.setValue(storageNode.getName()); 44 } 45 } 46 } 47 | Popular Tags |