Coverage Report - javax.faces.component.UIColumn
 
Classes in this File Line Coverage Branch Coverage Complexity
UIColumn
100%
11/11
N/A
1
 
 1  
 /*
 2  
  * Copyright 2004-2011 the Seasar Foundation and the Others.
 3  
  *
 4  
  * Licensed under the Apache License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  *     http://www.apache.org/licenses/LICENSE-2.0
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 13  
  * either express or implied. See the License for the specific language
 14  
  * governing permissions and limitations under the License.
 15  
  */
 16  
 package javax.faces.component;
 17  
 
 18  
 import org.seasar.framework.util.AssertionUtil;
 19  
 
 20  
 /**
 21  
  * @author shot
 22  
  */
 23  
 public class UIColumn extends UIComponentBase {
 24  
 
 25  
     public static final String COMPONENT_FAMILY = "javax.faces.Column";
 26  
 
 27  
     public static final String COMPONENT_TYPE = "javax.faces.Column";
 28  
 
 29  
     private static final String FOOTER_FACET_NAME = "footer";
 30  
 
 31  
     private static final String HEADER_FACET_NAME = "header";
 32  
 
 33  143
     public UIColumn() {
 34  143
     }
 35  
 
 36  
     public String getFamily() {
 37  5
         return COMPONENT_FAMILY;
 38  
     }
 39  
 
 40  
     public UIComponent getFooter() {
 41  33
         return getFacet(FOOTER_FACET_NAME);
 42  
     }
 43  
 
 44  
     public void setFooter(UIComponent footer) {
 45  15
         AssertionUtil.assertNotNull("footer", footer);
 46  14
         getFacets().put(FOOTER_FACET_NAME, footer);
 47  14
     }
 48  
 
 49  
     public UIComponent getHeader() {
 50  33
         return getFacet(HEADER_FACET_NAME);
 51  
     }
 52  
 
 53  
     public void setHeader(UIComponent header) {
 54  15
         AssertionUtil.assertNotNull("header", header);
 55  14
         getFacets().put(HEADER_FACET_NAME, header);
 56  14
     }
 57  
 
 58  
 }