1 19 package org.netbeans.modules.j2ee.sun.ide.runtime.nodes; 20 21 22 import org.netbeans.modules.j2ee.sun.bridge.apis.AppserverMgmtLeafNode; 23 import org.netbeans.modules.j2ee.sun.util.NodeTypes; 24 import org.netbeans.modules.j2ee.sun.ide.controllers.WebModuleController; 25 26 28 public class ServletNode extends AppserverMgmtLeafNode { 29 30 private static final String NODE_TYPE = NodeTypes.SERVLET; 31 private WebModuleController controller; 32 private String servletName; 33 34 35 36 42 public ServletNode(WebModuleController controller, String servletName) { 43 super(NODE_TYPE); 44 this.servletName = servletName; 45 this.controller = controller; 46 setDisplayName(servletName); 47 } 48 49 public ServletNode(String name) { 50 super(NODE_TYPE); 51 this.servletName = name; 52 setDisplayName(name); 53 } 54 55 60 protected java.util.Map getSheetProperties() { 61 return controller.getServletProperties(servletName, 62 getPropertiesToIgnore()); 63 } 64 65 66 77 public javax.management.Attribute setSheetProperty(String attrName, Object value) { 78 return controller.setServletProperties(getName(), attrName, value); 79 } 80 81 } 82 | Popular Tags |