Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
IInfosKindsView |
|
| 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 | * A view for the kinds of the film specification. | |
29 | * | |
30 | * @author Baptiste Wicht | |
31 | */ | |
32 | public interface IInfosKindsView extends CurrentObjectListener { | |
33 | ||
34 | /** | |
35 | * Return the model of the list of kinds. | |
36 | * | |
37 | * @return The <code>DefaultListModel</code> associated to the list of kinds. | |
38 | */ | |
39 | DefaultListModel getKindsModel(); | |
40 | ||
41 | /** | |
42 | * Return the kinds for film model. | |
43 | * | |
44 | * @return The kinds for film model. | |
45 | */ | |
46 | DefaultListModel getKindsForFilmModel(); | |
47 | ||
48 | /** | |
49 | * Return the indexes of the selected kinds. | |
50 | * | |
51 | * @return An array containing the indexes of the selected kinds. | |
52 | */ | |
53 | int[] getSelectedKindsIndexes(); | |
54 | ||
55 | /** | |
56 | * Return the indexes of the selected kinds for film. | |
57 | * | |
58 | * @return An array containing the indexes of the selected kinds for film. | |
59 | */ | |
60 | int[] getSelectedKindsForFilmIndexes(); | |
61 | ||
62 | /** | |
63 | * Validate the view. | |
64 | * | |
65 | * @param errors The errors list to fill. | |
66 | */ | |
67 | void validate(Collection<JThequeError> errors); | |
68 | ||
69 | /** | |
70 | * Fill the form bean. | |
71 | * | |
72 | * @param fb The form bean to fill. | |
73 | */ | |
74 | void fillFilm(IFilmFormBean fb); | |
75 | ||
76 | /** | |
77 | * Set if the view is enabled or disabled. | |
78 | * | |
79 | * @param enabled A boolean tag indicating if the view must be enabled or not. | |
80 | */ | |
81 | void setEnabled(boolean enabled); | |
82 | ||
83 | /** | |
84 | * Return the view implementation. | |
85 | * | |
86 | * @return The real implementation. | |
87 | */ | |
88 | JComponent getImpl(); | |
89 | } |