|
|
@ -14,7 +14,6 @@ import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.gui.ispinner.UIBasicSpinner; |
|
|
|
import com.fr.design.gui.ispinner.UIBasicSpinner; |
|
|
|
import com.fr.design.gui.itextfield.UINumberField; |
|
|
|
import com.fr.design.gui.itextfield.UINumberField; |
|
|
|
import com.fr.design.gui.itextfield.UITextField; |
|
|
|
import com.fr.design.gui.itextfield.UITextField; |
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
|
|
|
|
import com.fr.design.report.UnitFieldPane; |
|
|
|
import com.fr.design.report.UnitFieldPane; |
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
@ -44,6 +43,7 @@ import static com.fine.swing.ui.layout.Layouts.cell; |
|
|
|
import static com.fine.swing.ui.layout.Layouts.column; |
|
|
|
import static com.fine.swing.ui.layout.Layouts.column; |
|
|
|
import static com.fine.swing.ui.layout.Layouts.flex; |
|
|
|
import static com.fine.swing.ui.layout.Layouts.flex; |
|
|
|
import static com.fine.swing.ui.layout.Layouts.row; |
|
|
|
import static com.fine.swing.ui.layout.Layouts.row; |
|
|
|
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.fix; |
|
|
|
import static com.fine.theme.utils.FineUIUtils.wrapComponentWithTitle; |
|
|
|
import static com.fine.theme.utils.FineUIUtils.wrapComponentWithTitle; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -199,29 +199,29 @@ public abstract class AbstractNativePrintSettingPane extends JPanel { |
|
|
|
JPanel scaleCheckPane = GUICoreUtils.createCheckboxAndDynamicPane(fitPaperSizeCheck, scalePane, true); |
|
|
|
JPanel scaleCheckPane = GUICoreUtils.createCheckboxAndDynamicPane(fitPaperSizeCheck, scalePane, true); |
|
|
|
// 整体布局
|
|
|
|
// 整体布局
|
|
|
|
centerPane = column(LayoutConstants.VERTICAL_GAP, |
|
|
|
centerPane = column(LayoutConstants.VERTICAL_GAP, |
|
|
|
row(cell(new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Printer"))).weight(0.1), |
|
|
|
row(cell(new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Printer"))).weight(0.15), |
|
|
|
cell(printerComboBox).weight(0.35), |
|
|
|
cell(printerComboBox).weight(0.5), |
|
|
|
flex(0.55)), |
|
|
|
flex(0.35)), |
|
|
|
row(cell(new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Copy_Number"))).weight(0.1), |
|
|
|
row(cell(new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Copy_Number"))).weight(0.15), |
|
|
|
cell(copySpinner).weight(0.15), |
|
|
|
cell(copySpinner).weight(0.2), |
|
|
|
flex(0.75)), |
|
|
|
flex(0.65)), |
|
|
|
row(cell(getTopAlignLabelPane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Engine_Page_Number"))) |
|
|
|
row(cell(getTopAlignLabelPane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Engine_Page_Number"))) |
|
|
|
.weight(0.1).with(it -> it.setBorder(new ScaledEmptyBorder(2, 0, 0, 0))), |
|
|
|
.weight(0.15).with(it -> it.setBorder(new ScaledEmptyBorder(2, 0, 0, 0))), |
|
|
|
cell(getPrintAreaPane()).weight(0.7), |
|
|
|
cell(getPrintAreaPane()).weight(0.7), |
|
|
|
flex(0.2)), |
|
|
|
flex(0.15)), |
|
|
|
row(cell(getTopAlignLabelPane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Paper"))) |
|
|
|
row(cell(getTopAlignLabelPane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Paper"))) |
|
|
|
.weight(0.1).with(it -> it.setBorder(new ScaledEmptyBorder(2, 0, 0, 0))), |
|
|
|
.weight(0.15).with(it -> it.setBorder(new ScaledEmptyBorder(2, 0, 0, 0))), |
|
|
|
cell(paperSettingCheckPane).weight(0.5), |
|
|
|
cell(paperSettingCheckPane).weight(0.5), |
|
|
|
flex(0.4)), |
|
|
|
flex(0.35)), |
|
|
|
row(cell(getTopAlignLabelPane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Layout"))).weight(0.1), |
|
|
|
row(cell(getTopAlignLabelPane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Layout"))).weight(0.15), |
|
|
|
cell(layoutSettingCheckPane).weight(0.2), |
|
|
|
cell(layoutSettingCheckPane).weight(0.5), |
|
|
|
flex(0.7)), |
|
|
|
flex(0.35)), |
|
|
|
row(cell(getTopAlignLabelPane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Margin"))).weight(0.1), |
|
|
|
row(cell(getTopAlignLabelPane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Margin"))).weight(0.15), |
|
|
|
cell(pageMarginCheckPane).weight(0.5), |
|
|
|
cell(pageMarginCheckPane).weight(0.5), |
|
|
|
flex(0.4)), |
|
|
|
flex(0.35)), |
|
|
|
row(cell(getTopAlignLabelPane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Scale_EnlargeOrReduce"))).weight(0.1), |
|
|
|
row(cell(getTopAlignLabelPane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Scale_EnlargeOrReduce"))).weight(0.15), |
|
|
|
cell(scaleCheckPane).weight(0.3), |
|
|
|
cell(scaleCheckPane).weight(0.3), |
|
|
|
flex(0.6)) |
|
|
|
flex(0.55)) |
|
|
|
).getComponent(); |
|
|
|
).getComponent(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -353,8 +353,8 @@ public abstract class AbstractNativePrintSettingPane extends JPanel { |
|
|
|
return column(LayoutConstants.VERTICAL_GAP, |
|
|
|
return column(LayoutConstants.VERTICAL_GAP, |
|
|
|
cell(allPageRadioButton), |
|
|
|
cell(allPageRadioButton), |
|
|
|
cell(currentPageRadioButton), |
|
|
|
cell(currentPageRadioButton), |
|
|
|
row(cell(customPageRadioButton).weight(0.1), cell(specifiedAreaField).weight(0.3), cell(areaFieldTip).weight(0.1)), |
|
|
|
row(cell(customPageRadioButton).weight(0.11), cell(specifiedAreaField).weight(0.29), fix(4), cell(areaFieldTip).weight(0.1)), |
|
|
|
row(cell(doublePrintRadioButton).weight(0.1),cell(doublePrintComboBox).weight(0.3), flex(0.1)) |
|
|
|
row(cell(doublePrintRadioButton).weight(0.11),cell(doublePrintComboBox).weight(0.29), fix(4), flex(0.1)) |
|
|
|
).getComponent(); |
|
|
|
).getComponent(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|