1 26 27 package org.objectweb.jonas.webapp.taglib; 28 29 import javax.servlet.jsp.JspException ; 30 import javax.servlet.jsp.tagext.Tag ; 31 32 public class JonasGridColTitleTag extends GridColTag { 33 34 private boolean mb_ForceStyleClass = false; 36 37 39 44 public int doStartTag() 45 throws JspException { 46 mb_ForceStyleClass = false; 48 if (getStyleClass() == null) { 49 Tag oTag = findAncestorWithClass(this, JonasGridRowTitleTag.class); 51 if (oTag == null) { 52 setStyleClass(JonasGridRowTitleTag.CLASS_TITLE); 53 } 54 else { 55 setStyleClass(((JonasGridRowTitleTag) oTag).getStyleClass()); 56 } 57 mb_ForceStyleClass = true; 58 } 59 if (getHeight() == null) { 60 setHeight("20"); 61 } 62 return super.doStartTag(); 63 } 64 65 70 public int doEndTag() 71 throws JspException { 72 int iRet = super.doEndTag(); 73 if (mb_ForceStyleClass == true) { 74 mb_ForceStyleClass = false; 75 setStyleClass(null); 76 } 77 return iRet; 78 } 79 80 } | Popular Tags |