田源
2024-03-07 4b4083fd73dc27ece42f4835483565eef0e4f608
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package com.vci.client.auth2.action;
 
import javax.swing.JCheckBox;
 
import com.vci.client.auth2.view.OrdinaryOpPanel;
import com.vci.client.auth2.view.RelationAndLifeCycleOpPanel;
 
public class OpsAllSelectAction extends Action {
 
    /**
     * 
     */
    private static final long serialVersionUID = -8836541568871528167L;
 
 
    /**
     * 
     */
 
    public OpsAllSelectAction(String name) {
        super(name);
    }
    
 
    @Override
    public void execute() {
        // 一般操作控件
        JCheckBox[] checkBoxs = ((OrdinaryOpPanel) getFunclet().getRightMainPanel()
                .getOrdinaryOpPanel()).getOpCheckBoxs();
        for (JCheckBox cb : checkBoxs) {
            cb.setSelected(true);
        }
        // 关系和跃迁
        JCheckBox[] rlcheckBoxs = ((RelationAndLifeCycleOpPanel) getFunclet().getRightMainPanel()
                .getRelationAndLifeCycleOpPanel()).getOpCheckBoxs();
        for (JCheckBox cb : rlcheckBoxs) {
            cb.setSelected(true);
        }
    }
 
}