|
|
|
@ -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; |
|
|
|
@ -9,7 +10,7 @@ import com.fr.design.gui.ibutton.UIButtonGroup;
|
|
|
|
|
import com.fr.design.gui.icheckbox.UICheckBox; |
|
|
|
|
import com.fr.design.gui.icombobox.UIComboBox; |
|
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
|
import com.fr.design.gui.itextfield.UITextField; |
|
|
|
|
import com.fr.design.gui.itextfield.UIPropertyTextField; |
|
|
|
|
import com.fr.design.layout.TableLayout; |
|
|
|
|
import com.fr.design.layout.TableLayoutHelper; |
|
|
|
|
import com.fr.design.mainframe.JTemplate; |
|
|
|
@ -46,9 +47,9 @@ public class CellOtherSetPane extends AbstractCellAttrPane {
|
|
|
|
|
|
|
|
|
|
private UIComboBox showContent; |
|
|
|
|
|
|
|
|
|
private UITextField tooltipTextField; |
|
|
|
|
private UIPropertyTextField tooltipTextField; |
|
|
|
|
|
|
|
|
|
private UITextField fileNameTextField; |
|
|
|
|
private UIPropertyTextField fileNameTextField; |
|
|
|
|
|
|
|
|
|
// 分页
|
|
|
|
|
private UICheckBox pageBeforeRowCheckBox; |
|
|
|
@ -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); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -204,8 +228,8 @@ public class CellOtherSetPane extends AbstractCellAttrPane {
|
|
|
|
|
final JPanel fileNamePane = new JPanel(fileNameLayout); |
|
|
|
|
JPanel fileNameCCPane = new JPanel(new BorderLayout(4, 0)); |
|
|
|
|
fileNameCCPane.add(new UILabel(Inter.getLocText("FR-Designer_File_Name_For_Download")), BorderLayout.WEST); |
|
|
|
|
fileNameTextField = new UITextField(); |
|
|
|
|
tooltipTextField = new UITextField(); |
|
|
|
|
fileNameTextField = new UIPropertyTextField(); |
|
|
|
|
tooltipTextField = new UIPropertyTextField(); |
|
|
|
|
tooltipTextField.getUI(); |
|
|
|
|
fileNamePane.add(new JPanel(), "none"); |
|
|
|
|
fileNamePane.add(fileNameCCPane, "content"); |
|
|
|
@ -224,8 +248,6 @@ public class CellOtherSetPane extends AbstractCellAttrPane {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
tooltipTextField = new UITextField(); |
|
|
|
|
tooltipTextField.getUI(); |
|
|
|
|
return fileNamePane; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|