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);
|
}
|
}
|
|
}
|