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 HtmlPanelGridTagBase 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 public void release() { 78 super.release(); 79 _align=null; 80 _border=null; 81 _bgcolor=null; 82 _cellpadding=null; 83 _cellspacing=null; 84 _datafld=null; 85 _datasrc=null; 86 _dataformatas=null; 87 _frame=null; 88 _rules=null; 89 _summary=null; 90 _width=null; 91 _columnClasses=null; 92 _columns=null; 93 _footerClass=null; 94 _headerClass=null; 95 _rowClasses=null; 96 } 97 98 protected void setProperties(UIComponent component) 99 { 100 super.setProperties(component); 101 102 setStringProperty(component, HTML.ALIGN_ATTR, _align); 103 setIntegerProperty(component, HTML.BORDER_ATTR, _border); 104 setStringProperty(component, HTML.BGCOLOR_ATTR, _bgcolor); 105 setStringProperty(component, HTML.CELLPADDING_ATTR, _cellpadding); 106 setStringProperty(component, HTML.CELLSPACING_ATTR, _cellspacing); 107 setStringProperty(component, HTML.DATAFLD_ATTR, _datafld); 108 setStringProperty(component, HTML.DATASRC_ATTR, _datasrc); 109 setStringProperty(component, HTML.DATAFORMATAS_ATTR, _dataformatas); 110 setStringProperty(component, HTML.FRAME_ATTR, _frame); 111 setStringProperty(component, HTML.RULES_ATTR, _rules); 112 setStringProperty(component, HTML.SUMMARY_ATTR, _summary); 113 setStringProperty(component, HTML.WIDTH_ATTR, _width); 114 115 setStringProperty(component, JSFAttr.COLUMN_CLASSES_ATTR, _columnClasses); 116 setIntegerProperty(component, JSFAttr.COLUMNS_ATTR, _columns); 117 setStringProperty(component, JSFAttr.FOOTER_CLASS_ATTR, _footerClass); 118 setStringProperty(component, JSFAttr.HEADER_CLASS_ATTR, _headerClass); 119 setStringProperty(component, JSFAttr.ROW_CLASSES_ATTR, _rowClasses); 120 } 121 122 123 public void setAlign(String align) 124 { 125 _align = align; 126 } 127 128 public void setBorder(String border) 129 { 130 _border = border; 131 } 132 133 public void setBgcolor(String bgcolor) 134 { 135 _bgcolor = bgcolor; 136 } 137 138 public void setCellpadding(String cellpadding) 139 { 140 _cellpadding = cellpadding; 141 } 142 143 public void setCellspacing(String cellspacing) 144 { 145 _cellspacing = cellspacing; 146 } 147 148 public void setDatafld(String datafld) 149 { 150 _datafld = datafld; 151 } 152 153 public void setDatasrc(String datasrc) 154 { 155 _datasrc = datasrc; 156 } 157 158 public void setDataformatas(String dataformatas) 159 { 160 _dataformatas = dataformatas; 161 } 162 163 public void setFrame(String frame) 164 { 165 _frame = frame; 166 } 167 168 public void setRules(String rules) 169 { 170 _rules = rules; 171 } 172 173 public void setSummary(String summary) 174 { 175 _summary = summary; 176 } 177 178 public void setWidth(String width) 179 { 180 _width = width; 181 } 182 183 public void setColumnClasses(String columnClasses) 184 { 185 _columnClasses = columnClasses; 186 } 187 188 public void setColumns(String columns) 189 { 190 _columns = columns; 191 } 192 193 public void setFooterClass(String footerClass) 194 { 195 _footerClass = footerClass; 196 } 197 198 public void setHeaderClass(String headerClass) 199 { 200 _headerClass = headerClass; 201 } 202 203 public void setRowClasses(String rowClasses) 204 { 205 _rowClasses = rowClasses; 206 } 207 } 208 | Popular Tags |