| 1 | |
package org.jtheque.films.view.impl.actions.cover; |
| 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.view.impl.actions.JThequeAction; |
| 22 | |
import org.jtheque.films.services.able.ICoverService; |
| 23 | |
import org.jtheque.films.view.able.ICoverView; |
| 24 | |
|
| 25 | |
import java.awt.event.ActionEvent; |
| 26 | |
|
| 27 | |
|
| 28 | |
|
| 29 | |
|
| 30 | |
|
| 31 | |
|
| 32 | |
public final class AcUpdateCover extends JThequeAction { |
| 33 | |
|
| 34 | |
|
| 35 | |
|
| 36 | |
public AcUpdateCover() { |
| 37 | 0 | super("cover.view.actions.update"); |
| 38 | 0 | } |
| 39 | |
|
| 40 | |
@Override |
| 41 | |
public void actionPerformed(ActionEvent e) { |
| 42 | 0 | ICoverService coverService = Managers.getManager(IBeansManager.class).getBean("coverService"); |
| 43 | 0 | ICoverView coverView = Managers.getManager(IBeansManager.class).getBean("coverView"); |
| 44 | |
|
| 45 | 0 | coverView.display(coverService.getReportImage(coverView.getSelectedFilm(), coverView.getSelectedFormat())); |
| 46 | 0 | } |
| 47 | |
} |