|
|
@ -1,11 +1,11 @@ |
|
|
|
package com.fr.design.report.freeze; |
|
|
|
package com.fr.design.report.freeze; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.fine.theme.utils.FineUIStyle; |
|
|
|
import com.fr.base.FRContext; |
|
|
|
import com.fr.base.FRContext; |
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
|
import com.fr.design.dialog.BasicPane; |
|
|
|
import com.fr.design.dialog.BasicPane; |
|
|
|
import com.fr.design.extra.WebViewDlgHelper; |
|
|
|
import com.fr.design.extra.WebViewDlgHelper; |
|
|
|
import com.fr.design.gui.frpane.FineTabbedPane; |
|
|
|
import com.fr.design.gui.frpane.FineTabbedPane; |
|
|
|
import com.fr.design.gui.frpane.UITabbedPane; |
|
|
|
|
|
|
|
import com.fr.design.gui.icheckbox.UICheckBox; |
|
|
|
import com.fr.design.gui.icheckbox.UICheckBox; |
|
|
|
import com.fr.design.gui.ilable.ActionLabel; |
|
|
|
import com.fr.design.gui.ilable.ActionLabel; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
@ -27,7 +27,6 @@ import java.awt.event.ActionListener; |
|
|
|
|
|
|
|
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.cell; |
|
|
|
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.fix; |
|
|
|
|
|
|
|
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.theme.utils.FineUIUtils.wrapComponentWithTitle; |
|
|
|
import static com.fine.theme.utils.FineUIUtils.wrapComponentWithTitle; |
|
|
@ -94,7 +93,7 @@ public class RepeatAndFreezeSettingPane extends BasicPane { |
|
|
|
repeatTitleRowPane = new RepeatRowPane(); |
|
|
|
repeatTitleRowPane = new RepeatRowPane(); |
|
|
|
|
|
|
|
|
|
|
|
return row( |
|
|
|
return row( |
|
|
|
2, |
|
|
|
4, |
|
|
|
cell(useRepeatTitleRCheckBox), |
|
|
|
cell(useRepeatTitleRCheckBox), |
|
|
|
cell(new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Title_Start_Row_Form"))), |
|
|
|
cell(new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Title_Start_Row_Form"))), |
|
|
|
cell(repeatTitleRowPane), |
|
|
|
cell(repeatTitleRowPane), |
|
|
@ -111,7 +110,7 @@ public class RepeatAndFreezeSettingPane extends BasicPane { |
|
|
|
repeatTitleColPane = new RepeatColPane(); |
|
|
|
repeatTitleColPane = new RepeatColPane(); |
|
|
|
|
|
|
|
|
|
|
|
return row( |
|
|
|
return row( |
|
|
|
2, |
|
|
|
4, |
|
|
|
cell(useRepeatTitleCCheckBox), |
|
|
|
cell(useRepeatTitleCCheckBox), |
|
|
|
cell(new UILabel(Toolkit.i18nText("Fine-Design_Report_Title_Start_Column_Form"))), |
|
|
|
cell(new UILabel(Toolkit.i18nText("Fine-Design_Report_Title_Start_Column_Form"))), |
|
|
|
cell(repeatTitleColPane), |
|
|
|
cell(repeatTitleColPane), |
|
|
@ -121,7 +120,7 @@ public class RepeatAndFreezeSettingPane extends BasicPane { |
|
|
|
|
|
|
|
|
|
|
|
private JPanel initPageRepeatPane() { |
|
|
|
private JPanel initPageRepeatPane() { |
|
|
|
return row( |
|
|
|
return row( |
|
|
|
10, |
|
|
|
20, |
|
|
|
column( |
|
|
|
column( |
|
|
|
10, |
|
|
|
10, |
|
|
|
cell(new UILabel(REPEAT_AND_FROZEN_HEAD)).weight(0.5), |
|
|
|
cell(new UILabel(REPEAT_AND_FROZEN_HEAD)).weight(0.5), |
|
|
@ -138,7 +137,7 @@ public class RepeatAndFreezeSettingPane extends BasicPane { |
|
|
|
|
|
|
|
|
|
|
|
private JPanel initPageRepeatFootPane() { |
|
|
|
private JPanel initPageRepeatFootPane() { |
|
|
|
return row( |
|
|
|
return row( |
|
|
|
10, |
|
|
|
20, |
|
|
|
column( |
|
|
|
column( |
|
|
|
10, |
|
|
|
10, |
|
|
|
cell(new UILabel(REPEAT_AND_FROZEN_FOOT)).weight(0.5), |
|
|
|
cell(new UILabel(REPEAT_AND_FROZEN_FOOT)).weight(0.5), |
|
|
@ -161,7 +160,7 @@ public class RepeatAndFreezeSettingPane extends BasicPane { |
|
|
|
repeatFinisRowPane = new RepeatRowPane(); |
|
|
|
repeatFinisRowPane = new RepeatRowPane(); |
|
|
|
|
|
|
|
|
|
|
|
return row( |
|
|
|
return row( |
|
|
|
2, |
|
|
|
4, |
|
|
|
cell(useRepeatFinisRCheckBox), |
|
|
|
cell(useRepeatFinisRCheckBox), |
|
|
|
cell(new UILabel(Toolkit.i18nText("Fine-Design_Report_Finis_Start_Row_Form"))), |
|
|
|
cell(new UILabel(Toolkit.i18nText("Fine-Design_Report_Finis_Start_Row_Form"))), |
|
|
|
cell(repeatFinisRowPane), |
|
|
|
cell(repeatFinisRowPane), |
|
|
@ -178,7 +177,7 @@ public class RepeatAndFreezeSettingPane extends BasicPane { |
|
|
|
repeatFinisColPane = new RepeatColPane(); |
|
|
|
repeatFinisColPane = new RepeatColPane(); |
|
|
|
|
|
|
|
|
|
|
|
return row( |
|
|
|
return row( |
|
|
|
2, |
|
|
|
4, |
|
|
|
cell(useRepeatFinisCCheckBox), |
|
|
|
cell(useRepeatFinisCCheckBox), |
|
|
|
cell(new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Finis_Start_Column_Form"))), |
|
|
|
cell(new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Finis_Start_Column_Form"))), |
|
|
|
cell(repeatFinisColPane), |
|
|
|
cell(repeatFinisColPane), |
|
|
@ -208,7 +207,7 @@ public class RepeatAndFreezeSettingPane extends BasicPane { |
|
|
|
usePageHeadFrozenCCheckBox = new UICheckBox(); |
|
|
|
usePageHeadFrozenCCheckBox = new UICheckBox(); |
|
|
|
|
|
|
|
|
|
|
|
return row( |
|
|
|
return row( |
|
|
|
10, |
|
|
|
20, |
|
|
|
column( |
|
|
|
column( |
|
|
|
10, |
|
|
|
10, |
|
|
|
cell(new UILabel(REPEAT_AND_FROZEN_HEAD)).weight(0.5), |
|
|
|
cell(new UILabel(REPEAT_AND_FROZEN_HEAD)).weight(0.5), |
|
|
@ -217,12 +216,12 @@ public class RepeatAndFreezeSettingPane extends BasicPane { |
|
|
|
column( |
|
|
|
column( |
|
|
|
10, |
|
|
|
10, |
|
|
|
row( |
|
|
|
row( |
|
|
|
2, |
|
|
|
4, |
|
|
|
cell(usePageHeadFrozenRCheckBox), |
|
|
|
cell(usePageHeadFrozenRCheckBox), |
|
|
|
cell(freezePageRowPane) |
|
|
|
cell(freezePageRowPane) |
|
|
|
).weight(0.5), |
|
|
|
).weight(0.5), |
|
|
|
row( |
|
|
|
row( |
|
|
|
2, |
|
|
|
4, |
|
|
|
cell(usePageHeadFrozenCCheckBox), |
|
|
|
cell(usePageHeadFrozenCCheckBox), |
|
|
|
cell(freezePageColPane) |
|
|
|
cell(freezePageColPane) |
|
|
|
).weight(0.5) |
|
|
|
).weight(0.5) |
|
|
@ -239,7 +238,7 @@ public class RepeatAndFreezeSettingPane extends BasicPane { |
|
|
|
freezeFootColPane = new FreezePagePane(false, true); |
|
|
|
freezeFootColPane = new FreezePagePane(false, true); |
|
|
|
|
|
|
|
|
|
|
|
return row( |
|
|
|
return row( |
|
|
|
10, |
|
|
|
20, |
|
|
|
column( |
|
|
|
column( |
|
|
|
10, |
|
|
|
10, |
|
|
|
cell(new UILabel(REPEAT_AND_FROZEN_FOOT)).weight(0.5), |
|
|
|
cell(new UILabel(REPEAT_AND_FROZEN_FOOT)).weight(0.5), |
|
|
@ -248,12 +247,12 @@ public class RepeatAndFreezeSettingPane extends BasicPane { |
|
|
|
column( |
|
|
|
column( |
|
|
|
10, |
|
|
|
10, |
|
|
|
row( |
|
|
|
row( |
|
|
|
2, |
|
|
|
4, |
|
|
|
cell(usePageFootFrozenRCheckBox), |
|
|
|
cell(usePageFootFrozenRCheckBox), |
|
|
|
cell(freezeFootRowPane) |
|
|
|
cell(freezeFootRowPane) |
|
|
|
).weight(0.5), |
|
|
|
).weight(0.5), |
|
|
|
row( |
|
|
|
row( |
|
|
|
2, |
|
|
|
4, |
|
|
|
cell(usePageFootFrozenCCheckBox), |
|
|
|
cell(usePageFootFrozenCCheckBox), |
|
|
|
cell(freezeFootColPane) |
|
|
|
cell(freezeFootColPane) |
|
|
|
).weight(0.5) |
|
|
|
).weight(0.5) |
|
|
@ -287,7 +286,7 @@ public class RepeatAndFreezeSettingPane extends BasicPane { |
|
|
|
freezeWriteColPane = new FreezeWriteColPane(); |
|
|
|
freezeWriteColPane = new FreezeWriteColPane(); |
|
|
|
|
|
|
|
|
|
|
|
return row( |
|
|
|
return row( |
|
|
|
10, |
|
|
|
20, |
|
|
|
column( |
|
|
|
column( |
|
|
|
10, |
|
|
|
10, |
|
|
|
cell(new UILabel(Toolkit.i18nText("Fine-Design_Report_Face_Write_Frozen"))).weight(0.5), |
|
|
|
cell(new UILabel(Toolkit.i18nText("Fine-Design_Report_Face_Write_Frozen"))).weight(0.5), |
|
|
@ -296,12 +295,12 @@ public class RepeatAndFreezeSettingPane extends BasicPane { |
|
|
|
column( |
|
|
|
column( |
|
|
|
10, |
|
|
|
10, |
|
|
|
row( |
|
|
|
row( |
|
|
|
2, |
|
|
|
4, |
|
|
|
cell(useWriteFrozenRCheckBox), |
|
|
|
cell(useWriteFrozenRCheckBox), |
|
|
|
cell(freezeWriteRowPane) |
|
|
|
cell(freezeWriteRowPane) |
|
|
|
).weight(0.5), |
|
|
|
).weight(0.5), |
|
|
|
row( |
|
|
|
row( |
|
|
|
2, |
|
|
|
4, |
|
|
|
cell(useWriteFrozenCCheckBox), |
|
|
|
cell(useWriteFrozenCCheckBox), |
|
|
|
cell(freezeWriteColPane) |
|
|
|
cell(freezeWriteColPane) |
|
|
|
).weight(0.5) |
|
|
|
).weight(0.5) |
|
|
@ -325,15 +324,12 @@ public class RepeatAndFreezeSettingPane extends BasicPane { |
|
|
|
).getComponent(); |
|
|
|
).getComponent(); |
|
|
|
|
|
|
|
|
|
|
|
JPanel pagePanel = column( |
|
|
|
JPanel pagePanel = column( |
|
|
|
10, |
|
|
|
20, |
|
|
|
fix(10), |
|
|
|
|
|
|
|
cell(wrapComponentWithTitle(outrepeatPanel, com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Repeat"))), |
|
|
|
cell(wrapComponentWithTitle(outrepeatPanel, com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Repeat"))), |
|
|
|
cell(wrapComponentWithTitle(outfreezePanel, com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Engine_Frozen"))), |
|
|
|
cell(wrapComponentWithTitle(outfreezePanel, com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Engine_Frozen"))), |
|
|
|
cell(new UILabel("<html><font color=gray>"+ Toolkit.i18nText("Fine-Design_Report_Engine_Freeze_Tip") + "</font></html>")) |
|
|
|
cell(new UILabel(Toolkit.i18nText("Fine-Design_Report_Engine_Freeze_Tip"))).with(it -> FineUIStyle.setStyle(it, FineUIStyle.LABEL_TIP)) |
|
|
|
).getComponent(); |
|
|
|
).getComponent(); |
|
|
|
|
|
|
|
|
|
|
|
// 重复打印部分
|
|
|
|
|
|
|
|
// 重复打印标题的起始行
|
|
|
|
|
|
|
|
JPanel labelPanel = FRGUIPaneFactory.createNormalFlowInnerContainer_S_Pane(); |
|
|
|
JPanel labelPanel = FRGUIPaneFactory.createNormalFlowInnerContainer_S_Pane(); |
|
|
|
labelPanel.add(new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Engine_Select_the_repeated_row_and_column") + ":")); |
|
|
|
labelPanel.add(new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Engine_Select_the_repeated_row_and_column") + ":")); |
|
|
|
UILabel warning = new UILabel("(" + com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Engine_FreezeWarning") + ")"); |
|
|
|
UILabel warning = new UILabel("(" + com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Engine_FreezeWarning") + ")"); |
|
|
@ -342,8 +338,6 @@ public class RepeatAndFreezeSettingPane extends BasicPane { |
|
|
|
|
|
|
|
|
|
|
|
JPanel writeOutrepeatPanel = initWriteFrozenPane(); |
|
|
|
JPanel writeOutrepeatPanel = initWriteFrozenPane(); |
|
|
|
JPanel writePanel = column( |
|
|
|
JPanel writePanel = column( |
|
|
|
10, |
|
|
|
|
|
|
|
fix(10), |
|
|
|
|
|
|
|
cell(wrapComponentWithTitle(writeOutrepeatPanel, com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Engine_Frozen"))) |
|
|
|
cell(wrapComponentWithTitle(writeOutrepeatPanel, com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Engine_Frozen"))) |
|
|
|
).getComponent(); |
|
|
|
).getComponent(); |
|
|
|
addWriteFrozen(writePanel, pagePanel); |
|
|
|
addWriteFrozen(writePanel, pagePanel); |
|
|
|