1 16 package org.apache.myfaces.taglib.html; 17 18 import org.apache.myfaces.renderkit.JSFAttr; 19 import org.apache.myfaces.renderkit.html.HTML; 20 21 import javax.faces.component.UIComponent; 22 23 40 public abstract class HtmlDataTableTagBase 41 extends HtmlComponentBodyTagBase 42 { 43 45 47 49 51 53 private String _align; 55 private String _border; 56 private String _bgcolor; 57 private String _cellpadding; 58 private String _cellspacing; 59 private String _datafld; 60 private String _datasrc; 61 private String _dataformatas; 62 private String _frame; 63 private String _rules; 64 private String _summary; 65 private String _width; 66 67 70 private String _columnClasses; 72 private String _columns; 73 private String _footerClass; 74 private String _headerClass; 75 private String _rowClasses; 76 77 private String _rows; 79 private String _var; 80 private String _first; 81 82 public void release() { 83 super.release(); 84 _align=null; 85 _border=null; 86 _bgcolor=null; 87 _cellpadding=null; 88 _cellspacing=null; 89 _datafld=null; 90 _datasrc=null; 91 _dataformatas=null; 92 _frame=null; 93 _rules=null; 94 _summary=null; 95 _width=null; 96 _columnClasses=null; 97 _columns=null; 98 _footerClass=null; 99 _headerClass=null; 100 _rowClasses=null; 101 _rows=null; 102 _var=null; 103 _first=null; 104 } 105 106 protected void setProperties(UIComponent component) 107 { 108 super.setProperties(component); 109 110 setStringProperty(component, HTML.ALIGN_ATTR, _align); 111 setIntegerProperty(component, HTML.BORDER_ATTR, _border); 112 setStringProperty(component, HTML.BGCOLOR_ATTR, _bgcolor); 113 setStringProperty(component, HTML.CELLPADDING_ATTR, _cellpadding); 114 setStringProperty(component, HTML.CELLSPACING_ATTR, _cellspacing); 115 setStringProperty(component, HTML.DATAFLD_ATTR, _datafld); 116 setStringProperty(component, HTML.DATASRC_ATTR, _datasrc); 117 setStringProperty(component, HTML.DATAFORMATAS_ATTR, _dataformatas); 118 setStringProperty(component, HTML.FRAME_ATTR, _frame); 119 setStringProperty(component, HTML.RULES_ATTR, _rules); 120 setStringProperty(component, HTML.SUMMARY_ATTR, _summary); 121 setStringProperty(component, HTML.WIDTH_ATTR, _width); 122 123 setStringProperty(component, JSFAttr.COLUMN_CLASSES_ATTR, _columnClasses); 124 setIntegerProperty(component, JSFAttr.COLUMNS_ATTR, _columns); 125 setStringProperty(component, JSFAttr.FOOTER_CLASS_ATTR, _footerClass); 126 setStringProperty(component, JSFAttr.HEADER_CLASS_ATTR, _headerClass); 127 setStringProperty(component, JSFAttr.ROW_CLASSES_ATTR, _rowClasses); 128 129 setIntegerProperty(component, JSFAttr.ROWS_ATTR, _rows); 130 setStringProperty(component, JSFAttr.VAR_ATTR, _var); 131 setIntegerProperty(component, JSFAttr.FIRST_ATTR, _first); 132 } 133 134 135 136 public void setAlign(String align) 137 { 138 _align = align; 139 } 140 141 public void setBorder(String border) 142 { 143 _border = border; 144 } 145 146 public void setBgcolor(String bgcolor) 147 { 148 _bgcolor = bgcolor; 149 } 150 151 public void setCellpadding(String cellpadding) 152 { 153 _cellpadding = cellpadding; 154 } 155 156 public void setCellspacing(String cellspacing) 157 { 158 _cellspacing = cellspacing; 159 } 160 161 public void setDatafld(String datafld) 162 { 163 _datafld = datafld; 164 } 165 166 public void setDatasrc(String datasrc) 167 { 168 _datasrc = datasrc; 169 } 170 171 public void setDataformatas(String dataformatas) 172 { 173 _dataformatas = dataformatas; 174 } 175 176 public void setFrame(String frame) 177 { 178 _frame = frame; 179 } 180 181 public void setRules(String rules) 182 { 183 _rules = rules; 184 } 185 186 public void setSummary(String summary) 187 { 188 _summary = summary; 189 } 190 191 public void setWidth(String width) 192 { 193 _width = width; 194 } 195 196 public void setColumnClasses(String columnClasses) 197 { 198 _columnClasses = columnClasses; 199 } 200 201 public void setColumns(String columns) 202 { 203 _columns = columns; 204 } 205 206 public void setFooterClass(String footerClass) 207 { 208 _footerClass = footerClass; 209 } 210 211 public void setHeaderClass(String headerClass) 212 { 213 _headerClass = headerClass; 214 } 215 216 public void setRowClasses(String rowClasses) 217 { 218 _rowClasses = rowClasses; 219 } 220 221 public void setRows(String rows) 222 { 223 _rows = rows; 224 } 225 226 public void setVar(String var) 227 { 228 _var = var; 229 } 230 231 public void setFirst(String first) 232 { 233 _first = first; 234 } 235 } 236 | Popular Tags |