| 1 21 22 package org.opensubsystems.patterns.scrollabletable.www; 23 24 import java.util.Properties ; 25 26 import javax.servlet.jsp.JspException ; 27 28 import org.opensubsystems.core.util.Config; 29 import org.opensubsystems.core.www.PageElementCacheTag; 30 31 44 public class ScrollableTableCheckTag extends PageElementCacheTag 45 { 46 48 51 private static final long serialVersionUID = 426490036326966192L; 52 53 58 protected String m_strCheck; 59 60 62 65 public ScrollableTableCheckTag() 66 { 67 Properties prpSettings; 71 72 prpSettings = Config.getInstance().getPropertiesSafely(); 73 m_strCheck = Config.getBooleanPropertyAsString( 74 prpSettings, 75 ScrollableTableTag.WEBUI_LIST_CHECK, 76 ScrollableTableTag.WEBUI_LIST_CHECK_DEFAULT, 77 "Flag allowing for scrollable tables to have checkbox" 78 + " in each line"); 79 } 80 81 83 86 public int doStartTag( 87 ) throws JspException 88 { 89 super.doStartTag(); 90 91 cache(ScrollableTableTag.SCROLLABLE_TABLE_CHECK, m_strCheck); 95 96 return (EVAL_BODY_INCLUDE); 97 } 98 99 102 public int doEndTag( 103 ) throws JspException 104 { 105 super.doEndTag(); 106 107 return (EVAL_PAGE); 108 } 109 110 114 public String getCheck( 115 ) 116 { 117 return m_strCheck; 118 } 119 120 124 public void setCheck( 125 String strCheck 126 ) 127 { 128 m_strCheck = strCheck; 129 } 130 131 135 public void setCheck( 136 boolean bCheck 137 ) 138 { 139 m_strCheck = Boolean.toString(bCheck); 140 } 141 } 142 | Popular Tags |