|
|
@ -39,22 +39,18 @@ public class FormParallelSettingPane extends BasicBeanPane<FormParallelAttr> { |
|
|
|
|
|
|
|
|
|
|
|
private void initPane(){ |
|
|
|
private void initPane(){ |
|
|
|
JPanel calSettingPane = FRGUIPaneFactory.createTitledBorderPane(Toolkit.i18nText("Fine-Designer_Form_Block_Parallel_Setting")); |
|
|
|
JPanel calSettingPane = FRGUIPaneFactory.createTitledBorderPane(Toolkit.i18nText("Fine-Designer_Form_Block_Parallel_Setting")); |
|
|
|
calSettingPane.add(getCalculateSettingPane()); |
|
|
|
this.parallelCalculatePane = new ParallelSettingPane(); |
|
|
|
|
|
|
|
calSettingPane.add(parallelCalculatePane); |
|
|
|
calSettingPane.setPreferredSize(new Dimension(550,110)); |
|
|
|
calSettingPane.setPreferredSize(new Dimension(550,110)); |
|
|
|
this.add(calSettingPane); |
|
|
|
this.add(calSettingPane); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private ParallelSettingPane getCalculateSettingPane(){ |
|
|
|
|
|
|
|
if (parallelCalculatePane == null){ |
|
|
|
|
|
|
|
this.parallelCalculatePane = new ParallelSettingPane(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return parallelCalculatePane; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void populateBean(FormParallelAttr ob) { |
|
|
|
public void populateBean(FormParallelAttr ob) { |
|
|
|
getCalculateSettingPane().populateBean(ob.getParallelCalculateMark()); |
|
|
|
if (ob == null){ |
|
|
|
|
|
|
|
ob = FormParallelAttr.getDefaultParallelAttr(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
parallelCalculatePane.populateBean(ob.getParallelCalculateMark()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|