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 JonasGridValueTitleTag extends JonasGridValueTag { 33 34 36 private boolean mb_ForceStyleClass = false; 37 38 40 45 public int doStartTag() 46 throws JspException { 47 mb_ForceStyleClass = false; 49 if (getStyleClass() == null) { 50 Tag oTag = findAncestorWithClass(this, JonasGridRowTitleTag.class); 52 if (oTag == null) { 53 setStyleClass(JonasGridRowTitleTag.CLASS_TITLE); 54 } 55 else { 56 setStyleClass(((JonasGridRowTitleTag) oTag).getStyleClass()); 57 } 58 mb_ForceStyleClass = true; 59 } 60 if (getHeight() == null) { 61 setHeight("20"); 62 } 63 return super.doStartTag(); 64 } 65 66 71 public int doEndTag() 72 throws JspException { 73 int iRet = super.doEndTag(); 74 if (mb_ForceStyleClass == true) { 75 mb_ForceStyleClass = false; 76 setStyleClass(null); 77 } 78 return iRet; 79 } 80 } | Popular Tags |