Coverage Report - org.apache.myfaces.shared_impl.taglib.html.HtmlDataTableELTagBase
 
Classes in this File Line Coverage Branch Coverage Complexity
HtmlDataTableELTagBase
0%
0/83
0%
0/2
1.045
 
 1  
 /*
 2  
  *  Licensed to the Apache Software Foundation (ASF) under one
 3  
  *  or more contributor license agreements.  See the NOTICE file
 4  
  *  distributed with this work for additional information
 5  
  *  regarding copyright ownership.  The ASF licenses this file
 6  
  *  to you under the Apache License, Version 2.0 (the
 7  
  *  "License"); you may not use this file except in compliance
 8  
  *  with the License.  You may obtain a copy of the License at
 9  
  * 
 10  
  *  http://www.apache.org/licenses/LICENSE-2.0
 11  
  * 
 12  
  *  Unless required by applicable law or agreed to in writing,
 13  
  *  software distributed under the License is distributed on an
 14  
  *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 15  
  *  KIND, either express or implied.  See the License for the
 16  
  *  specific language governing permissions and limitations
 17  
  *  under the License.
 18  
  */
 19  
 package org.apache.myfaces.shared_impl.taglib.html;
 20  
 
 21  
 import org.apache.myfaces.shared_impl.renderkit.JSFAttr;
 22  
 import org.apache.myfaces.shared_impl.renderkit.html.HTML;
 23  
 
 24  
 import javax.el.ValueExpression;
 25  
 import javax.faces.component.UIComponent;
 26  
 
 27  
 /**
 28  
  * @author Thomas Spiegl (latest modification by $Author: skitching $)
 29  
  * @version $Revision: 673827 $ $Date: 2008-07-03 16:46:23 -0500 (Thu, 03 Jul 2008) $
 30  
  */
 31  0
 public abstract class HtmlDataTableELTagBase
 32  
         extends org.apache.myfaces.shared_impl.taglib.html.HtmlComponentBodyELTagBase
 33  
 {
 34  
     //private static final Log log = LogFactory.getLog(MyfacesHtmlDataTableTag.class);
 35  
 
 36  
     // UIComponent attributes --> already implemented in UIComponentTagBase
 37  
 
 38  
     // user role attributes --> already implemented in UIComponentTagBase
 39  
 
 40  
     // HTML universal attributes --> already implemented in HtmlComponentTagBase
 41  
 
 42  
     // HTML event handler attributes --> already implemented in HtmlComponentTagBase
 43  
 
 44  
     // HTML table attributes relevant for Table
 45  
     private ValueExpression _align;
 46  
     private ValueExpression _border;
 47  
     private ValueExpression _bgcolor;
 48  
     private ValueExpression _cellpadding;
 49  
     private ValueExpression _cellspacing;
 50  
     private ValueExpression _datafld;
 51  
     private ValueExpression _datasrc;
 52  
     private ValueExpression _dataformatas;
 53  
     private ValueExpression _frame;
 54  
     private ValueExpression _rules;
 55  
     private ValueExpression _summary;
 56  
     private ValueExpression _width;
 57  
 
 58  
     // UIPanel attributes
 59  
     // value and converterId --> already implemented in UIComponentTagBase
 60  
 
 61  
     // HtmlPanelGrid attributes
 62  
     private ValueExpression _columnClasses;
 63  
     private ValueExpression _columns;
 64  
     private ValueExpression _footerClass;
 65  
     private ValueExpression _headerClass;
 66  
     private ValueExpression _rowClasses;
 67  
 
 68  
     // UIData attributes
 69  
     private ValueExpression _rows;
 70  
     private String _var;
 71  
     private ValueExpression _first;
 72  
 
 73  
     public void release() {
 74  0
         super.release();
 75  0
         _align=null;
 76  0
         _border=null;
 77  0
         _bgcolor=null;
 78  0
         _cellpadding=null;
 79  0
         _cellspacing=null;
 80  0
         _datafld=null;
 81  0
         _datasrc=null;
 82  0
         _dataformatas=null;
 83  0
         _frame=null;
 84  0
         _rules=null;
 85  0
         _summary=null;
 86  0
         _width=null;
 87  0
         _columnClasses=null;
 88  0
         _columns=null;
 89  0
         _footerClass=null;
 90  0
         _headerClass=null;
 91  0
         _rowClasses=null;
 92  0
         _rows=null;
 93  0
         _var=null;
 94  0
         _first=null;
 95  0
     }
 96  
 
 97  
     protected void setProperties(UIComponent component)
 98  
     {
 99  0
         super.setProperties(component);
 100  
 
 101  0
         setStringProperty(component, HTML.ALIGN_ATTR, _align);
 102  0
         setIntegerProperty(component, HTML.BORDER_ATTR, _border);
 103  0
         setStringProperty(component, HTML.BGCOLOR_ATTR, _bgcolor);
 104  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.CELLPADDING_ATTR, _cellpadding);
 105  0
         setStringProperty(component, HTML.CELLSPACING_ATTR, _cellspacing);
 106  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.FRAME_ATTR, _frame);
 107  0
         setStringProperty(component, HTML.RULES_ATTR, _rules);
 108  0
         setStringProperty(component, HTML.SUMMARY_ATTR, _summary);
 109  0
         setStringProperty(component, HTML.WIDTH_ATTR, _width);
 110  
 
 111  0
         setStringProperty(component, JSFAttr.COLUMN_CLASSES_ATTR, _columnClasses);
 112  0
         setIntegerProperty(component, JSFAttr.COLUMNS_ATTR, _columns);
 113  0
         setStringProperty(component, JSFAttr.FOOTER_CLASS_ATTR, _footerClass);
 114  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.JSFAttr.HEADER_CLASS_ATTR, _headerClass);
 115  0
         setStringProperty(component, JSFAttr.ROW_CLASSES_ATTR, _rowClasses);
 116  
 
 117  0
         setIntegerProperty(component, JSFAttr.ROWS_ATTR, _rows);
 118  0
         setIntegerProperty(component, JSFAttr.FIRST_ATTR, _first);
 119  
         
 120  0
         if(_var != null)
 121  0
             component.getAttributes().put(JSFAttr.VAR_ATTR, _var);
 122  0
     }
 123  
 
 124  
     public void setAlign(ValueExpression align)
 125  
     {
 126  0
         _align = align;
 127  0
     }
 128  
 
 129  
     public void setBorder(ValueExpression border)
 130  
     {
 131  0
         _border = border;
 132  0
     }
 133  
 
 134  
     public void setBgcolor(ValueExpression bgcolor)
 135  
     {
 136  0
         _bgcolor = bgcolor;
 137  0
     }
 138  
 
 139  
     public void setCellpadding(ValueExpression cellpadding)
 140  
     {
 141  0
         _cellpadding = cellpadding;
 142  0
     }
 143  
 
 144  
     public void setCellspacing(ValueExpression cellspacing)
 145  
     {
 146  0
         _cellspacing = cellspacing;
 147  0
     }
 148  
 
 149  
     public void setDatafld(ValueExpression datafld)
 150  
     {
 151  0
         _datafld = datafld;
 152  0
     }
 153  
 
 154  
     public void setDatasrc(ValueExpression datasrc)
 155  
     {
 156  0
         _datasrc = datasrc;
 157  0
     }
 158  
 
 159  
     public void setDataformatas(ValueExpression dataformatas)
 160  
     {
 161  0
         _dataformatas = dataformatas;
 162  0
     }
 163  
 
 164  
     public void setFrame(ValueExpression frame)
 165  
     {
 166  0
         _frame = frame;
 167  0
     }
 168  
 
 169  
     public void setRules(ValueExpression rules)
 170  
     {
 171  0
         _rules = rules;
 172  0
     }
 173  
 
 174  
     public void setSummary(ValueExpression summary)
 175  
     {
 176  0
         _summary = summary;
 177  0
     }
 178  
 
 179  
     public void setWidth(ValueExpression width)
 180  
     {
 181  0
         _width = width;
 182  0
     }
 183  
 
 184  
     public void setColumnClasses(ValueExpression columnClasses)
 185  
     {
 186  0
         _columnClasses = columnClasses;
 187  0
     }
 188  
 
 189  
     public void setColumns(ValueExpression columns)
 190  
     {
 191  0
         _columns = columns;
 192  0
     }
 193  
 
 194  
     public void setFooterClass(ValueExpression footerClass)
 195  
     {
 196  0
         _footerClass = footerClass;
 197  0
     }
 198  
 
 199  
     public void setHeaderClass(ValueExpression headerClass)
 200  
     {
 201  0
         _headerClass = headerClass;
 202  0
     }
 203  
 
 204  
     public void setRowClasses(ValueExpression rowClasses)
 205  
     {
 206  0
         _rowClasses = rowClasses;
 207  0
     }
 208  
 
 209  
     public void setRows(ValueExpression rows)
 210  
     {
 211  0
         _rows = rows;
 212  0
     }
 213  
 
 214  
     public void setVar(String var)
 215  
     {
 216  0
         _var = var;
 217  0
     }
 218  
 
 219  
     public void setFirst(ValueExpression first)
 220  
     {
 221  0
         _first = first;
 222  0
     }
 223  
 }