|
|
|
@ -2,6 +2,7 @@ package com.fr.design.write.submit;
|
|
|
|
|
|
|
|
|
|
import com.fine.theme.utils.FineUIScale; |
|
|
|
|
import com.fine.theme.utils.FineUIUtils; |
|
|
|
|
import com.formdev.flatlaf.util.ScaledEmptyBorder; |
|
|
|
|
import com.fr.base.GraphHelper; |
|
|
|
|
import com.fr.data.AbstractClassJob; |
|
|
|
|
import com.fr.design.data.tabledata.tabledatapane.ClassNameSelectPane; |
|
|
|
@ -43,17 +44,10 @@ public abstract class CustomJobPane extends BasicBeanPane {
|
|
|
|
|
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
|
JPanel reportletNamePane = FRGUIPaneFactory.createBoxFlowInnerContainer_S_Pane(); |
|
|
|
|
classNameTextField = new UITextField(); |
|
|
|
|
classNameTextField.setPreferredSize(FineUIScale.scale(new Dimension(0, 24))); |
|
|
|
|
|
|
|
|
|
UIButton browserButton = new UIButton(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Select")); |
|
|
|
|
browserButton.setPreferredSize(new Dimension( |
|
|
|
|
GraphHelper.getWidth(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Select")) + 40, |
|
|
|
|
FineUIScale.scale(24))); |
|
|
|
|
|
|
|
|
|
UIButton editButton = new UIButton(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Edit")); |
|
|
|
|
editButton.setPreferredSize(new Dimension( |
|
|
|
|
GraphHelper.getWidth(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Select")) + 40, |
|
|
|
|
FineUIScale.scale(24))); |
|
|
|
|
|
|
|
|
|
UITextArea area = new UITextArea(2, 1); |
|
|
|
|
|
|
|
|
@ -95,16 +89,16 @@ public abstract class CustomJobPane extends BasicBeanPane {
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
reportletNamePane.setLayout(new BorderLayout()); |
|
|
|
|
reportletNamePane.setBorder(BorderFactory.createEmptyBorder(10, 0, 0, 0)); |
|
|
|
|
reportletNamePane.setBorder(new ScaledEmptyBorder(10, 0, 0, 0)); |
|
|
|
|
reportletNamePane.add(row(4, |
|
|
|
|
cell(classNameTextField).weight(1.0), |
|
|
|
|
cell(classNameTextField).weight(1), |
|
|
|
|
cell(browserButton), |
|
|
|
|
cell(editButton) |
|
|
|
|
).getComponent(), BorderLayout.CENTER); |
|
|
|
|
|
|
|
|
|
objectProperiesPane = new ObjectProperiesPane(); |
|
|
|
|
JPanel dsPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|
dsPane.setBorder(BorderFactory.createEmptyBorder(10, 0, 0, 0)); |
|
|
|
|
dsPane.setBorder(new ScaledEmptyBorder(10, 0, 0, 0)); |
|
|
|
|
dsPane.add(area); |
|
|
|
|
this.add(column(20, |
|
|
|
|
cell(FineUIUtils.wrapComponentWithTitle(reportletNamePane, com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Class_Name"))), |
|
|
|
|