| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| IAutoAddView |
|
| 1.0;1 |
| 1 | package org.jtheque.films.view.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.core.managers.view.able.IWindowView; | |
| 20 | import org.jtheque.films.services.impl.utils.web.FilmResult; | |
| 21 | import org.jtheque.films.utils.Constants; | |
| 22 | import org.jtheque.films.view.impl.models.able.IAutoAddModel; | |
| 23 | ||
| 24 | import javax.swing.DefaultListModel; | |
| 25 | import javax.swing.JTextField; | |
| 26 | ||
| 27 | /** | |
| 28 | * @author Baptiste Wicht | |
| 29 | */ | |
| 30 | public interface IAutoAddView extends IWindowView { | |
| 31 | int PHASE_1 = 1; | |
| 32 | int PHASE_2 = 2; | |
| 33 | ||
| 34 | /** | |
| 35 | * Return the field of title. | |
| 36 | * | |
| 37 | * @return The JTextField used to set the title of the film searched. | |
| 38 | */ | |
| 39 | JTextField getFieldTitle(); | |
| 40 | ||
| 41 | /** | |
| 42 | * Return the model of the list of the films. | |
| 43 | * | |
| 44 | * @return The ListModel used for the of the films. | |
| 45 | */ | |
| 46 | DefaultListModel getModelListFilms(); | |
| 47 | ||
| 48 | /** | |
| 49 | * Return the selected site. | |
| 50 | * | |
| 51 | * @return The selected site. | |
| 52 | */ | |
| 53 | Constants.Site getSelectedSite(); | |
| 54 | ||
| 55 | /** | |
| 56 | * Return the selected film. | |
| 57 | * | |
| 58 | * @return The selected film. | |
| 59 | */ | |
| 60 | FilmResult getSelectedFilm(); | |
| 61 | ||
| 62 | @Override | |
| 63 | IAutoAddModel getModel(); | |
| 64 | ||
| 65 | /** | |
| 66 | * Validate the content of the view. | |
| 67 | * | |
| 68 | * @param phase The current process phase. | |
| 69 | * @return The result of the validation. | |
| 70 | */ | |
| 71 | boolean validateContent(int phase); | |
| 72 | ||
| 73 | /** | |
| 74 | * Stop the wait animation. | |
| 75 | */ | |
| 76 | void stopWait(); | |
| 77 | ||
| 78 | /** | |
| 79 | * Start the wait animation. | |
| 80 | */ | |
| 81 | void startWait(); | |
| 82 | } |