Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
IAutoImportView |
|
| 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.utils.Constants; | |
21 | import org.jtheque.films.view.impl.models.able.IAutoImportFilm; | |
22 | ||
23 | import javax.swing.DefaultListModel; | |
24 | ||
25 | /** | |
26 | * @author Baptiste Wicht | |
27 | */ | |
28 | public interface IAutoImportView extends IWindowView { | |
29 | int PHASE_1 = 1; | |
30 | int PHASE_2 = 2; | |
31 | ||
32 | /** | |
33 | * Return the path to the folder. | |
34 | * | |
35 | * @return The path to the choose folder. | |
36 | */ | |
37 | String getFolderPath(); | |
38 | ||
39 | /** | |
40 | * Return the selected title. | |
41 | * | |
42 | * @return The selected title. | |
43 | */ | |
44 | String getSelectedTitle(); | |
45 | ||
46 | /** | |
47 | * Return the model of the list titles. | |
48 | * | |
49 | * @return The title's list model. | |
50 | */ | |
51 | DefaultListModel getModelTitles(); | |
52 | ||
53 | /** | |
54 | * Indicate if the mode is file. | |
55 | * | |
56 | * @return true if the mode is file else false if the mode is folder. | |
57 | */ | |
58 | boolean isFileMode(); | |
59 | ||
60 | /** | |
61 | * Indicate if the mode is web. | |
62 | * | |
63 | * @return true if the mode is web else false if the mode is default. | |
64 | */ | |
65 | boolean isWebMode(); | |
66 | ||
67 | /** | |
68 | * Return the selected site enum value. | |
69 | * | |
70 | * @return The selected site enum value. | |
71 | */ | |
72 | Constants.Site getSelectedSite(); | |
73 | ||
74 | /** | |
75 | * Validate the content of the view. | |
76 | * | |
77 | * @param phase The current process phase. | |
78 | * @return The result of the validation. | |
79 | */ | |
80 | boolean validateContent(int phase); | |
81 | ||
82 | @Override | |
83 | IAutoImportFilm getModel(); | |
84 | ||
85 | /** | |
86 | * Stop the wait animation. | |
87 | */ | |
88 | void stopWait(); | |
89 | ||
90 | /** | |
91 | * Start the wait animation. | |
92 | */ | |
93 | void startWait(); | |
94 | } |