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.able.IViewManager; |
23 | |
import org.jtheque.core.managers.view.impl.actions.JThequeAction; |
24 | |
import org.jtheque.films.utils.Constants; |
25 | |
import org.jtheque.primary.view.able.PrincipalDataView; |
26 | |
|
27 | |
import java.awt.event.ActionEvent; |
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
public final class AcRefreshList extends JThequeAction { |
35 | |
private static final long serialVersionUID = -6059011169838015671L; |
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
public AcRefreshList() { |
41 | 0 | super("jtheque.actions.refresh"); |
42 | |
|
43 | 0 | setIcon(Managers.getManager(IResourceManager.class).getIcon(Constants.IMAGE_BASE_NAME, "refresh", ImageType.PNG)); |
44 | 0 | } |
45 | |
|
46 | |
@Override |
47 | |
public void actionPerformed(ActionEvent e) { |
48 | 0 | PrincipalDataView view = (PrincipalDataView) Managers.getManager(IViewManager.class).getViews().getSelectedView().getComponent(); |
49 | |
|
50 | 0 | view.resort(); |
51 | 0 | } |
52 | |
} |