| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| IFilmController |
|
| 1.0;1 |
| 1 | package org.jtheque.films.controllers.able; | |
| 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.films.persistence.od.able.Film; | |
| 20 | import org.jtheque.films.view.able.IFilmView; | |
| 21 | import org.jtheque.films.view.impl.models.able.IFilmsModel; | |
| 22 | import org.jtheque.primary.controller.able.IPrincipalController; | |
| 23 | ||
| 24 | import javax.swing.event.TreeSelectionListener; | |
| 25 | import java.awt.event.MouseListener; | |
| 26 | ||
| 27 | /** | |
| 28 | * A film controller specification. | |
| 29 | * | |
| 30 | * @author Baptiste Wicht | |
| 31 | */ | |
| 32 | public interface IFilmController extends IPrincipalController<Film>, MouseListener, TreeSelectionListener { | |
| 33 | /** | |
| 34 | * Save the current film. | |
| 35 | */ | |
| 36 | void save(); | |
| 37 | ||
| 38 | /** | |
| 39 | * Display a film in the interface. | |
| 40 | * | |
| 41 | * @param film The film to edit. | |
| 42 | */ | |
| 43 | void view(Film film); | |
| 44 | ||
| 45 | /** | |
| 46 | * Edit manually a film. | |
| 47 | */ | |
| 48 | void manualEdit(); | |
| 49 | ||
| 50 | /** | |
| 51 | * Create a new film. | |
| 52 | */ | |
| 53 | void createFilm(); | |
| 54 | ||
| 55 | /** | |
| 56 | * Delete the current film. | |
| 57 | */ | |
| 58 | void deleteCurrentFilm(); | |
| 59 | ||
| 60 | /** | |
| 61 | * Cancel the current state. | |
| 62 | */ | |
| 63 | void cancel(); | |
| 64 | ||
| 65 | /** | |
| 66 | * Send the current film by email. | |
| 67 | */ | |
| 68 | void sendCurrentFilmByMail(); | |
| 69 | ||
| 70 | /** | |
| 71 | * Print the current film. | |
| 72 | */ | |
| 73 | void printCurrentFilm(); | |
| 74 | ||
| 75 | @Override | |
| 76 | IFilmsModel getViewModel(); | |
| 77 | ||
| 78 | @Override | |
| 79 | IFilmView getView(); | |
| 80 | } |