1 | |
package org.jtheque.films.view.impl.actions.config; |
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.view.able.IConfigView; |
21 | |
import org.jtheque.core.managers.view.able.IViewManager; |
22 | |
import org.jtheque.core.managers.view.impl.actions.JThequeSimpleAction; |
23 | |
import org.jtheque.films.view.impl.panels.config.JPanelConfigLendings; |
24 | |
|
25 | |
import javax.annotation.Resource; |
26 | |
import java.awt.event.ActionEvent; |
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
|
33 | 0 | public final class AcCheckLendings extends JThequeSimpleAction { |
34 | |
@Resource |
35 | |
private IConfigView configView; |
36 | |
|
37 | |
@Override |
38 | |
public void actionPerformed(ActionEvent e) { |
39 | 0 | JPanelConfigLendings config = |
40 | |
(JPanelConfigLendings) Managers.getManager(IViewManager.class).getViews().getConfigView().getSelectedPanelConfig(); |
41 | |
|
42 | 0 | boolean selected = config.getBoxControlLendings().isSelected(); |
43 | 0 | config.setLendingsConfigurationEnabled(selected); |
44 | 0 | } |
45 | |
} |