1 26 27 package org.objectweb.jonas_lib.deployment.xml; 28 29 33 public class Icon extends AbsElement { 34 35 38 private String smallIcon = null; 39 40 43 private String largeIcon = null; 44 45 46 48 52 public void setSmallIcon(String smallIcon) { 53 this.smallIcon = smallIcon; 54 } 55 56 57 61 public void setLargeIcon(String largeIcon) { 62 this.largeIcon = largeIcon; 63 } 64 65 66 67 68 70 73 public String getSmallIcon() { 74 return smallIcon; 75 } 76 77 78 81 public String getLargeIcon() { 82 return largeIcon; 83 } 84 85 86 91 public String toXML(int indent) { 92 StringBuffer sb = new StringBuffer (); 93 sb.append(indent(indent)); 94 sb.append("<icon>\n"); 95 96 indent += 2; 97 98 sb.append(xmlElement(smallIcon, "small-icon", indent)); 100 101 sb.append(xmlElement(largeIcon, "large-icon", indent)); 103 104 indent -= 2; 105 sb.append(indent(indent)); 106 sb.append("</icon>\n"); 107 108 return sb.toString(); 109 } 110 111 112 } 113 | Popular Tags |