1 21 package net.mlw.vlh.web.tag; 22 23 import javax.servlet.jsp.JspException ; 24 25 import net.mlw.vlh.web.util.JspUtils; 26 27 32 public class BaseColumnTag extends ConfigurableTag 33 { 34 35 private DefaultRowTag rowTag; 36 37 38 private String title; 39 40 private String titleKey; 41 42 46 private String toolTip; 47 48 52 private String toolTipKey; 53 54 57 public String getTitle() 58 { 59 return title; 60 } 61 62 68 public void setTitle(String title) 69 { 70 this.title = title; 71 } 72 73 76 public String getTitleKey() 77 { 78 return titleKey; 79 } 80 81 85 public void setTitleKey(String titleKey) 86 { 87 this.titleKey = titleKey; 88 } 89 90 98 public String getToolTip() 99 { 100 return toolTip; 101 } 102 103 109 public void setToolTip(String toolTip) 110 { 111 this.toolTip = toolTip; 112 } 113 114 121 public String getToolTipKey() 122 { 123 return toolTipKey; 124 } 125 126 134 public void setToolTipKey(String toolTipKey) 135 { 136 this.toolTipKey = toolTipKey; 137 } 138 139 142 public int doEndTag() throws JspException 143 { 144 int result = super.doEndTag(); 145 reset(); 146 return result; 147 } 148 149 public DefaultRowTag getRowTag() throws JspException 150 { 151 if (rowTag == null) 152 { 153 rowTag = (DefaultRowTag) JspUtils.getParent(this, DefaultRowTag.class); 154 } 155 return rowTag; 156 } 157 158 private void reset() 159 { 160 this.rowTag = null; 161 this.title = null; 162 this.titleKey = null; 163 this.toolTip = null; 164 this.toolTipKey = null; 165 } 166 167 175 public void release() 176 { 177 super.release(); 178 reset(); 179 } 180 } | Popular Tags |