1 21 22 package org.opensubsystems.patterns.scrollabletable.www; 23 24 import javax.servlet.jsp.JspException ; 25 26 import org.opensubsystems.core.www.BlockElementTag; 27 import org.opensubsystems.core.www.TagUtils; 28 29 39 public class ScrollableTableFooterRightTag extends BlockElementTag 40 { 41 43 46 private static final long serialVersionUID = -513133382333515096L; 47 48 50 53 public ScrollableTableFooterRightTag() 54 { 55 super("clsScrollableTable", BlockElementTag.DIV_BLOCK_ELEMENT); 56 } 57 58 60 63 public int doStartTag( 64 ) throws JspException 65 { 66 StringBuffer sbHtml = null; 67 Object objTemp; 68 String strScrollableTableId; 69 70 objTemp = getCachedContent(ScrollableTableTag.ACTIVE_SCROLLABLE_TABLE_ID, 71 false).trim(); 72 if (objTemp == null) 73 { 74 throw new JspException ("Cannot find scrollable table id on the page. Probable" + 75 " cause is that the scrollable table open tag is missing."); 76 } 77 strScrollableTableId = (String )objTemp; 78 79 sbHtml = new StringBuffer (); 80 81 85 86 sbHtml.append("<div id=\""); 88 sbHtml.append(strScrollableTableId); 89 sbHtml.append("footerright\""); 90 if ((m_strCssclass != null) && (m_strCssclass.length() > 0)) 91 { 92 sbHtml.append(" class=\""); 93 sbHtml.append(m_strCssclass); 94 sbHtml.append("FooterRight"); 95 sbHtml.append("\""); 96 } 97 sbHtml.append(">"); 98 99 TagUtils.write(pageContext, sbHtml.toString()); 100 101 return (EVAL_BODY_INCLUDE); 102 } 103 104 107 public int doEndTag( 108 ) throws JspException 109 { 110 TagUtils.write(pageContext, "</div>"); 112 113 return (EVAL_PAGE); 114 } 115 } 116 | Popular Tags |