1 | |
package org.jtheque.films.stats.view.impl.actions; |
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.stats.controller.able.IStatsController; |
25 | |
|
26 | |
import javax.annotation.Resource; |
27 | |
import java.awt.event.ActionEvent; |
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
public final class AcCloseStatsView extends JThequeAction { |
35 | |
|
36 | |
|
37 | |
|
38 | |
public AcCloseStatsView() { |
39 | 0 | super("stats.actions.close"); |
40 | |
|
41 | 0 | setIcon(Managers.getManager(IResourceManager.class).getIcon(Managers.getCore().getImagesBaseName(), "exit", ImageType.PNG)); |
42 | 0 | } |
43 | |
|
44 | |
@Override |
45 | |
public void actionPerformed(ActionEvent event) { |
46 | 0 | Managers.getManager(IBeansManager.class).<IStatsController>getBean("statsController").closeView(); |
47 | 0 | } |
48 | |
} |