1 26 27 package org.objectweb.jonas.webapp.taglib; 28 29 import javax.servlet.jsp.JspException ; 30 31 public class GridTableBaseTag extends GridBaseTag { 32 33 35 private String align = null; 36 private String valign = null; 37 private String width = null; 38 private String height = null; 39 40 43 public String getAlign() { 44 return (this.align); 45 } 46 47 52 public void setAlign(String align) { 53 this.align = align; 54 } 55 56 59 public String getValign() { 60 return (this.valign); 61 } 62 63 68 69 public void setValign(String valign) { 70 this.valign = valign; 71 } 72 73 public String getWidth() { 74 return width; 75 } 76 77 public void setWidth(String width) { 78 this.width = width; 79 } 80 81 public String getHeight() { 82 return height; 83 } 84 85 public void setHeight(String height) { 86 this.height = height; 87 } 88 89 91 94 protected String getHtmlElement() { 95 return "table"; 96 } 97 98 101 protected String prepareAttributes() throws JspException { 102 StringBuffer sb = new StringBuffer (); 103 104 sb.append(prepareAttribute("width", width)); 106 sb.append(prepareAttribute("height", height)); 108 sb.append(prepareAttribute("align", align)); 110 sb.append(prepareAttribute("valign", valign)); 112 113 sb.append(super.prepareAttributes()); 115 116 return sb.toString(); 117 118 } 119 120 122 125 public void release() { 126 super.release(); 127 align = null; 128 valign = null; 129 width = null; 130 height = null; 131 } 132 } | Popular Tags |