Coverage Report - org.seasar.uruma.renderer.impl.ViewPartRenderer
 
Classes in this File Line Coverage Branch Coverage Complexity
ViewPartRenderer
20%
1/5
N/A
1
 
 1  
 /*
 2  
  * Copyright 2004-2008 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 org.seasar.uruma.renderer.impl;
 17  
 
 18  
 import org.eclipse.ui.part.ViewPart;
 19  
 import org.seasar.uruma.context.PartContext;
 20  
 import org.seasar.uruma.context.WidgetHandle;
 21  
 
 22  
 /**
 23  
  * {@link ViewPart} のレンダリングを行うためのクラスです。<br />
 24  
  * 
 25  
  * @author y-komori
 26  
  */
 27  4
 public class ViewPartRenderer extends AbstractRenderer {
 28  
 
 29  
     /*
 30  
      * @see org.seasar.uruma.renderer.Renderer#render(org.seasar.uruma.component.UIComponent,
 31  
      *      org.seasar.uruma.context.WidgetHandle,
 32  
      *      org.seasar.uruma.context.PartContext)
 33  
      */
 34  
     public WidgetHandle render(
 35  
             final org.seasar.uruma.component.UIComponent uiComponent,
 36  
             final WidgetHandle parent, final PartContext context) {
 37  0
         setContext(context);
 38  
 
 39  0
         WidgetHandle handle = createWidgetHandle(uiComponent, parent
 40  
                 .getWidget());
 41  
 
 42  0
         return handle;
 43  
     }
 44  
 
 45  
     /*
 46  
      * @see org.seasar.uruma.renderer.Renderer#renderAfter(org.seasar.uruma.context.WidgetHandle,
 47  
      *      org.seasar.uruma.component.UIComponent,
 48  
      *      org.seasar.uruma.context.WidgetHandle,
 49  
      *      org.seasar.uruma.context.PartContext)
 50  
      */
 51  
     public void renderAfter(final WidgetHandle widget,
 52  
             final org.seasar.uruma.component.UIComponent uiComponent,
 53  
             final WidgetHandle parent, final PartContext context) {
 54  
         // Do nothing.
 55  0
     }
 56  
 }