1 26 27 package org.objectweb.jonas.webapp.taglib; 28 29 import javax.servlet.jsp.JspException ; 30 31 public class JonasGridRowTitleTag extends GridRowTag { 32 33 35 public static final String CLASS_TITLE = "panelTitle"; 36 37 39 private boolean mb_ForceStyleClass = false; 40 41 43 private String level = null; 44 45 public String getLevel() { 46 return level; 47 } 48 49 public void setLevel(String level) { 50 this.level = level; 51 } 52 53 55 60 public int doStartTag() 61 throws JspException { 62 mb_ForceStyleClass = false; 64 if (getStyleClass() == null) { 65 setStyleClass(getStyleClassLevel()); 66 mb_ForceStyleClass = true; 67 } 68 return super.doStartTag(); 69 } 70 71 public void release() { 72 super.release(); 73 level = null; 74 } 75 76 public String getStyleClassLevel() { 77 if (level != null) { 78 return new String ((CLASS_TITLE + level)); 79 } 80 return CLASS_TITLE; 81 } 82 83 88 public int doEndTag() 89 throws JspException { 90 int iRet = super.doEndTag(); 91 if (mb_ForceStyleClass == true) { 92 mb_ForceStyleClass = false; 93 setStyleClass(null); 94 } 95 return iRet; 96 } 97 } | Popular Tags |