Coverage Report - org.jtheque.films.view.impl.actions.jtheque.AcPrintList
 
Classes in this File Line Coverage Branch Coverage Complexity
AcPrintList
0 %
0/5
N/A
1
 
 1  
 package org.jtheque.films.view.impl.actions.jtheque;
 2  
 
 3  
 /*
 4  
  * This file is part of JTheque.
 5  
  *
 6  
  * JTheque is free software: you can redistribute it and/or modify
 7  
  * it under the terms of the GNU General Public License as published by
 8  
  * the Free Software Foundation, either version 3 of the License.
 9  
  *
 10  
  * JTheque is distributed in the hope that it will be useful,
 11  
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 12  
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 13  
  * GNU General Public License for more details.
 14  
  *
 15  
  * You should have received a copy of the GNU General Public License
 16  
  * along with JTheque.  If not, see <http://www.gnu.org/licenses/>.
 17  
  */
 18  
 
 19  
 import org.jtheque.core.managers.Managers;
 20  
 import org.jtheque.core.managers.resource.IResourceManager;
 21  
 import org.jtheque.core.managers.resource.ImageType;
 22  
 import org.jtheque.core.managers.view.impl.actions.JThequeAction;
 23  
 import org.jtheque.films.services.able.IFilmsService;
 24  
 import org.jtheque.films.utils.Constants;
 25  
 
 26  
 import javax.annotation.Resource;
 27  
 import java.awt.event.ActionEvent;
 28  
 
 29  
 /**
 30  
  * Action to print the list.
 31  
  *
 32  
  * @author Baptiste Wicht
 33  
  */
 34  
 public final class AcPrintList extends JThequeAction {
 35  
     private static final long serialVersionUID = 858318520274595532L;
 36  
 
 37  
     @Resource
 38  
     private IFilmsService filmsService;
 39  
 
 40  
     /**
 41  
      * Construct a new AcPrintList.
 42  
      */
 43  
     public AcPrintList() {
 44  0
         super("generic.view.actions.print");
 45  
 
 46  0
         setIcon(Managers.getManager(IResourceManager.class).getIcon(Constants.IMAGE_BASE_NAME, "print", ImageType.PNG));
 47  0
     }
 48  
 
 49  
     @Override
 50  
     public void actionPerformed(ActionEvent e) {
 51  0
         filmsService.printListOfFilms();
 52  0
     }
 53  
 }