1 | |
package org.jtheque.films.view.impl.actions.jtheque; |
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.resource.IResourceManager; |
21 | |
import org.jtheque.core.managers.resource.ImageType; |
22 | |
import org.jtheque.core.managers.view.impl.actions.JThequeAction; |
23 | |
import org.jtheque.films.services.able.IFilmsService; |
24 | |
import org.jtheque.films.utils.Constants; |
25 | |
|
26 | |
import javax.annotation.Resource; |
27 | |
import java.awt.event.ActionEvent; |
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
public final class AcPrintList extends JThequeAction { |
35 | |
private static final long serialVersionUID = 858318520274595532L; |
36 | |
|
37 | |
@Resource |
38 | |
private IFilmsService filmsService; |
39 | |
|
40 | |
|
41 | |
|
42 | |
|
43 | |
public AcPrintList() { |
44 | 0 | super("generic.view.actions.print"); |
45 | |
|
46 | 0 | setIcon(Managers.getManager(IResourceManager.class).getIcon(Constants.IMAGE_BASE_NAME, "print", ImageType.PNG)); |
47 | 0 | } |
48 | |
|
49 | |
@Override |
50 | |
public void actionPerformed(ActionEvent e) { |
51 | 0 | filmsService.printListOfFilms(); |
52 | 0 | } |
53 | |
} |