Coverage Report - org.jtheque.core.managers.view.impl.components.ViewContainer
 
Classes in this File Line Coverage Branch Coverage Complexity
ViewContainer
0 %
0/5
N/A
1
 
 1  
 package org.jtheque.core.managers.view.impl.components;
 2  
 
 3  
 import org.jtheque.core.managers.view.ViewComponent;
 4  
 
 5  
 /*
 6  
  * This file is part of JTheque.
 7  
  *            
 8  
  * JTheque is free software: you can redistribute it and/or modify
 9  
  * it under the terms of the GNU General Public License as published by
 10  
  * the Free Software Foundation, either version 3 of the License. 
 11  
  *
 12  
  * JTheque is distributed in the hope that it will be useful,
 13  
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 14  
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 15  
  * GNU General Public License for more details.
 16  
  *
 17  
  * You should have received a copy of the GNU General Public License
 18  
  * along with JTheque.  If not, see <http://www.gnu.org/licenses/>.
 19  
  */
 20  
 
 21  
 /**
 22  
  * A view container.
 23  
  *
 24  
  * @author Baptiste Wicht
 25  
  */
 26  
 public final class ViewContainer implements ViewComponent {
 27  
     private final Object viewComponent;
 28  
 
 29  
     /**
 30  
      * Construct a new <code>ViewContainer</code>.
 31  
      *
 32  
      * @param viewComponent The view component to contain.
 33  
      */
 34  
     public ViewContainer(Object viewComponent) {
 35  0
         super();
 36  
 
 37  0
         this.viewComponent = viewComponent;
 38  0
     }
 39  
 
 40  
     /**
 41  
      * Return the view component.
 42  
      *
 43  
      * @return The view component.
 44  
      */
 45  
     public Object getViewComponent() {
 46  0
         return viewComponent;
 47  
     }
 48  
 
 49  
     @Override
 50  
     public Object getImpl() {
 51  0
         return viewComponent;
 52  
     }
 53  
 }