| 1 | |
package org.jtheque.films.view.impl.actions.actor; |
| 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.controllers.able.IFilmographyController; |
| 23 | |
import org.jtheque.films.view.able.IActorView; |
| 24 | |
import org.jtheque.films.view.impl.models.able.IActorsModel; |
| 25 | |
|
| 26 | |
import java.awt.event.ActionEvent; |
| 27 | |
|
| 28 | |
|
| 29 | |
|
| 30 | |
|
| 31 | |
|
| 32 | |
|
| 33 | |
public final class AcDisplayFilmography extends JThequeAction { |
| 34 | |
|
| 35 | |
|
| 36 | |
|
| 37 | |
public AcDisplayFilmography() { |
| 38 | 0 | super("actor.view.actions.filmography"); |
| 39 | 0 | } |
| 40 | |
|
| 41 | |
@Override |
| 42 | |
public void actionPerformed(ActionEvent event) { |
| 43 | 0 | IActorsModel model = Managers.getManager(IBeansManager.class).<IActorView>getBean("actorView").getModel(); |
| 44 | |
|
| 45 | 0 | Managers.getManager(IBeansManager.class).<IFilmographyController>getBean("filmographyController").displayFilmographyForActor(model.getCurrentActor()); |
| 46 | 0 | } |
| 47 | |
} |