|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package com.fr.design.mainframe.cell.settingpane; |
|
|
|
|
|
|
|
|
|
import com.fr.design.constants.LayoutConstants; |
|
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
|
|
import com.fr.design.editor.ValueEditorPane; |
|
|
|
|
import com.fr.design.editor.ValueEditorPaneFactory; |
|
|
|
|
import com.fr.design.file.HistoryTemplateListPane; |
|
|
|
@ -88,18 +89,18 @@ public class CellOtherSetPane extends AbstractCellAttrPane {
|
|
|
|
|
private JPanel basicPane() { |
|
|
|
|
autoHeightCheckBox = new UICheckBox(Inter.getLocText("FR-Designer_Auto_Adjust_Height")); |
|
|
|
|
autoWidthCheckBox = new UICheckBox(Inter.getLocText("FR-Designer_Auto_Adjust_Wdith")); |
|
|
|
|
autoHeightCheckBox.setBorder(UIConstants.CELL_ATTR_ZEROBORDER); |
|
|
|
|
autoWidthCheckBox.setBorder(UIConstants.CELL_ATTR_ZEROBORDER); |
|
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
|
double[] rowSize = {p, p, p, p, p}; |
|
|
|
|
double[] rowSize = {p, p, p}; |
|
|
|
|
double[] columnSize = {p}; |
|
|
|
|
int[][] rowCount = {{1, 1}, {1, 1}, {1, 1}, {1, 1}, {1, 1}}; |
|
|
|
|
int[][] rowCount = {{1, 1}, {1, 1}, {1, 1}}; |
|
|
|
|
Component[][] components = new Component[][]{ |
|
|
|
|
new Component[]{null}, |
|
|
|
|
new Component[]{autoHeightCheckBox}, |
|
|
|
|
new Component[]{null}, |
|
|
|
|
new Component[]{autoWidthCheckBox}, |
|
|
|
|
new Component[]{null}, |
|
|
|
|
}; |
|
|
|
|
return TableLayoutHelper.createGapTableLayoutPane(components, rowSize, columnSize, rowCount, LayoutConstants.VGAP_MEDIUM, LayoutConstants.VGAP_MEDIUM); |
|
|
|
|
return TableLayoutHelper.createGapTableLayoutPane(components, rowSize, columnSize, rowCount, LayoutConstants.VGAP_MEDIUM, LayoutConstants.VGAP_LARGE); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -146,22 +147,38 @@ public class CellOtherSetPane extends AbstractCellAttrPane {
|
|
|
|
|
|
|
|
|
|
private JPanel seniorUpPane() { |
|
|
|
|
JPanel fileNamePane = createNormal(); |
|
|
|
|
previewCellContent.setBorder(UIConstants.CELL_ATTR_ZEROBORDER); |
|
|
|
|
printAndExportContent.setBorder(UIConstants.CELL_ATTR_ZEROBORDER); |
|
|
|
|
printAndExportBackground.setBorder(UIConstants.CELL_ATTR_ZEROBORDER); |
|
|
|
|
double f = TableLayout.FILL; |
|
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
|
double[] rowSize = {p, p, p, p, p, p, p, p, p}; |
|
|
|
|
double[] rowSize = {p, p, p, p}; |
|
|
|
|
double[] columnSize = {p, f}; |
|
|
|
|
int[][] rowCount = {{1, 1}, {1, 1}, {1, 1}, {1, 1}, {1, 1}, {1, 1}, {1, 1}, {1, 1}}; |
|
|
|
|
int[][] rowCount = {{1, 1}, {1, 1}, {1, 1}, {1, 1}}; |
|
|
|
|
Component[][] components = new Component[][]{ |
|
|
|
|
new Component[]{null, null}, |
|
|
|
|
new Component[]{previewCellContent, null}, |
|
|
|
|
new Component[]{printAndExportContent, null}, |
|
|
|
|
new Component[]{printAndExportBackground, null}, |
|
|
|
|
}; |
|
|
|
|
JPanel upPane = TableLayoutHelper.createGapTableLayoutPane(components, rowSize, columnSize, rowCount, LayoutConstants.VGAP_MEDIUM, LayoutConstants.VGAP_LARGE); |
|
|
|
|
|
|
|
|
|
double[] downRowSize = {p, p, p, p, p, p}; |
|
|
|
|
double[] downColumnSize = {p, f}; |
|
|
|
|
int[][] downRowCount = {{1, 1}, {1, 1}, {1, 1}, {1, 1}, {1, 1}, {1, 1}}; |
|
|
|
|
Component[][] downComponent = new Component[][]{ |
|
|
|
|
new Component[]{null, null}, |
|
|
|
|
new Component[]{new UILabel(Inter.getLocText("FR-Designer_Show_Content"), SwingConstants.LEFT), showContent}, |
|
|
|
|
new Component[]{null, fileNamePane}, |
|
|
|
|
new Component[]{new UILabel(Inter.getLocText("FR-Designer_CellWrite_ToolTip"), SwingConstants.RIGHT), tooltipTextField}, |
|
|
|
|
new Component[]{null, null}, |
|
|
|
|
new Component[]{null, null}, |
|
|
|
|
}; |
|
|
|
|
return TableLayoutHelper.createGapTableLayoutPane(components, rowSize, columnSize, rowCount, LayoutConstants.VGAP_MEDIUM, LayoutConstants.VGAP_MEDIUM); |
|
|
|
|
JPanel downPane = TableLayoutHelper.createGapTableLayoutPane(downComponent, downRowSize, downColumnSize, downRowCount, LayoutConstants.VGAP_MEDIUM, LayoutConstants.VGAP_MEDIUM); |
|
|
|
|
JPanel pane = new JPanel(new BorderLayout()); |
|
|
|
|
pane.add(upPane, BorderLayout.NORTH); |
|
|
|
|
pane.add(downPane, BorderLayout.CENTER); |
|
|
|
|
return pane; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private JPanel pagePane() { |
|
|
|
@ -175,6 +192,13 @@ public class CellOtherSetPane extends AbstractCellAttrPane {
|
|
|
|
|
canBreakOnPaginateCheckBox = new UICheckBox(Inter.getLocText("FR-Designer_CellPage_Can_Break_On_Paginate")); |
|
|
|
|
repeatCheckBox = new UICheckBox(Inter.getLocText("FR-Designer_CellPage_Repeat_Content_When_Paging")); |
|
|
|
|
|
|
|
|
|
pageBeforeRowCheckBox.setBorder(UIConstants.CELL_ATTR_ZEROBORDER); |
|
|
|
|
pageAfterRowCheckBox.setBorder(UIConstants.CELL_ATTR_ZEROBORDER); |
|
|
|
|
pageBeforeColumnCheckBox.setBorder(UIConstants.CELL_ATTR_ZEROBORDER); |
|
|
|
|
pageAfterColumnCheckBox.setBorder(UIConstants.CELL_ATTR_ZEROBORDER); |
|
|
|
|
canBreakOnPaginateCheckBox.setBorder(UIConstants.CELL_ATTR_ZEROBORDER); |
|
|
|
|
repeatCheckBox.setBorder(UIConstants.CELL_ATTR_ZEROBORDER); |
|
|
|
|
|
|
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
|
double[] rowSize = {p, p, p, p, p, p, p, p, p, p, p}; |
|
|
|
|
double[] columnSize = {p}; |
|
|
|
@ -190,7 +214,7 @@ public class CellOtherSetPane extends AbstractCellAttrPane {
|
|
|
|
|
new Component[]{canBreakOnPaginateCheckBox}, |
|
|
|
|
new Component[]{repeatCheckBox}, |
|
|
|
|
}; |
|
|
|
|
return TableLayoutHelper.createGapTableLayoutPane(components, rowSize, columnSize, rowCount, LayoutConstants.VGAP_MEDIUM, LayoutConstants.VGAP_MEDIUM); |
|
|
|
|
return TableLayoutHelper.createGapTableLayoutPane(components, rowSize, columnSize, rowCount, LayoutConstants.VGAP_MEDIUM, LayoutConstants.VGAP_LARGE); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|