| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| IInfosActorsView |
|
| 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.error.JThequeError; | |
| 20 | import org.jtheque.films.view.impl.fb.IFilmFormBean; | |
| 21 | import org.jtheque.primary.view.impl.listeners.CurrentObjectListener; | |
| 22 | ||
| 23 | import javax.swing.DefaultListModel; | |
| 24 | import javax.swing.JComponent; | |
| 25 | import java.util.Collection; | |
| 26 | ||
| 27 | /** | |
| 28 | * @author Baptiste Wicht | |
| 29 | */ | |
| 30 | public interface IInfosActorsView extends CurrentObjectListener { | |
| 31 | ||
| 32 | /** | |
| 33 | * Return the model of the list of actors. | |
| 34 | * | |
| 35 | * @return The <code>DefaultListModel</code> associated to the list of actors. | |
| 36 | */ | |
| 37 | DefaultListModel getActorsModel(); | |
| 38 | ||
| 39 | /** | |
| 40 | * Return the actors for film model. | |
| 41 | * | |
| 42 | * @return The actors for film model. | |
| 43 | */ | |
| 44 | DefaultListModel getActorsForFilmModel(); | |
| 45 | ||
| 46 | /** | |
| 47 | * Return the indexes of the selected actors. | |
| 48 | * | |
| 49 | * @return An array containing the indexes of the selected actors. | |
| 50 | */ | |
| 51 | int[] getSelectedActorsIndexes(); | |
| 52 | ||
| 53 | /** | |
| 54 | * Return the indexes of the selected actors for film. | |
| 55 | * | |
| 56 | * @return An array containing the indexes of the selected actors for film. | |
| 57 | */ | |
| 58 | int[] getSelectedActorsForFilmIndexes(); | |
| 59 | ||
| 60 | /** | |
| 61 | * Validate the view. | |
| 62 | * | |
| 63 | * @param errors The errors list to fill. | |
| 64 | */ | |
| 65 | void validate(Collection<JThequeError> errors); | |
| 66 | ||
| 67 | /** | |
| 68 | * Fill the form bean. | |
| 69 | * | |
| 70 | * @param fb The form bean to fill. | |
| 71 | */ | |
| 72 | void fillFilm(IFilmFormBean fb); | |
| 73 | ||
| 74 | /** | |
| 75 | * Set if the view is enabled or disabled. | |
| 76 | * | |
| 77 | * @param enabled A boolean tag indicating if the view must be enabled or not. | |
| 78 | */ | |
| 79 | void setEnabled(boolean enabled); | |
| 80 | ||
| 81 | /** | |
| 82 | * Return the component implementation. | |
| 83 | * | |
| 84 | * @return The real implementation of the view. | |
| 85 | */ | |
| 86 | JComponent getImpl(); | |
| 87 | } |