Coverage Report - org.apache.tapestry.components.RenderBody
 
Classes in this File Line Coverage Branch Coverage Complexity
RenderBody
0%
0/6
N/A
1
 
 1  
 // Copyright 2004, 2005 The Apache Software Foundation
 2  
 //
 3  
 // Licensed under the Apache License, Version 2.0 (the "License");
 4  
 // you may not use this file except in compliance with the License.
 5  
 // You may obtain a copy of the License at
 6  
 //
 7  
 //     http://www.apache.org/licenses/LICENSE-2.0
 8  
 //
 9  
 // Unless required by applicable law or agreed to in writing, software
 10  
 // distributed under the License is distributed on an "AS IS" BASIS,
 11  
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12  
 // See the License for the specific language governing permissions and
 13  
 // limitations under the License.
 14  
 
 15  
 package org.apache.tapestry.components;
 16  
 
 17  
 import org.apache.tapestry.*;
 18  
 import org.apache.tapestry.internal.Component;
 19  
 
 20  
 /**
 21  
  * Renders the text and components wrapped by a component. [<a
 22  
  * href="../../../../../components/general/renderbody.html">Component Reference</a>]
 23  
  * 
 24  
  * @author Howard Lewis Ship
 25  
  */
 26  
 
 27  0
 public abstract class RenderBody extends AbstractComponent
 28  
 {
 29  
 
 30  
     /**
 31  
      * Finds this <code>RenderBody</code>'s container, and invokes
 32  
      * {@link IComponent#renderBody(IMarkupWriter, IRequestCycle)} on it.
 33  
      */
 34  
 
 35  
     protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle)
 36  
     {
 37  0
         IComponent container = getContainer();
 38  
 
 39  0
         container.renderBody(writer, cycle);
 40  0
     }
 41  
 
 42  
     public IRender[] getContainedRenderers()
 43  
     {
 44  0
         Component container = (Component) getContainer();
 45  
 
 46  0
         return container.getInnerRenderers();
 47  
     }
 48  
 }