1 | |
package org.jtheque.films.view.impl.actions.film; |
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
import org.jtheque.core.managers.Managers; |
20 | |
import org.jtheque.core.managers.beans.IBeansManager; |
21 | |
import org.jtheque.core.managers.resource.IResourceManager; |
22 | |
import org.jtheque.core.managers.resource.ImageType; |
23 | |
import org.jtheque.core.managers.view.impl.actions.JThequeAction; |
24 | |
import org.jtheque.films.controllers.able.IFilmController; |
25 | |
import org.jtheque.films.controllers.able.ISearchController; |
26 | |
import org.jtheque.films.utils.Constants; |
27 | |
|
28 | |
import java.awt.event.ActionEvent; |
29 | |
|
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
public final class AcSearchFilm extends JThequeAction { |
36 | |
|
37 | |
|
38 | |
|
39 | |
public AcSearchFilm() { |
40 | 0 | super("jtheque.actions.search.film"); |
41 | |
|
42 | 0 | setIcon(Managers.getManager(IResourceManager.class).getIcon(Constants.IMAGE_BASE_NAME, "search", ImageType.PNG)); |
43 | 0 | } |
44 | |
|
45 | |
@Override |
46 | |
public void actionPerformed(ActionEvent e) { |
47 | 0 | ISearchController searchController = Managers.getManager(IBeansManager.class).getBean("filmSearchController"); |
48 | |
|
49 | 0 | searchController.setResearchController(Managers.getManager(IBeansManager.class).<IFilmController>getBean("filmController")); |
50 | 0 | searchController.displayView(); |
51 | 0 | } |
52 | |
} |