Browse Source

REPORT-63808 【主题优化】格式单独拿出来以后,发现数据列的弹窗配置中没有格式项

【问题原因】
默认的配置项宽度过窄,遮挡了配置项内容

【改动思路】
修改布局加大配置项宽度
feature/x
Starryi 3 years ago
parent
commit
9e3d2a3e4e
  1. 11
      designer-realize/src/main/java/com/fr/design/dscolumn/DSColumnAdvancedPane.java

11
designer-realize/src/main/java/com/fr/design/dscolumn/DSColumnAdvancedPane.java

@ -3,6 +3,7 @@ package com.fr.design.dscolumn;
import com.fr.base.BaseFormula; import com.fr.base.BaseFormula;
import com.fr.data.util.SortOrder; import com.fr.data.util.SortOrder;
import com.fr.design.border.UITitledBorder; import com.fr.design.border.UITitledBorder;
import com.fr.design.constants.LayoutConstants;
import com.fr.design.data.DesignTableDataManager; import com.fr.design.data.DesignTableDataManager;
import com.fr.design.dialog.BasicPane; import com.fr.design.dialog.BasicPane;
import com.fr.design.dialog.DialogActionAdapter; import com.fr.design.dialog.DialogActionAdapter;
@ -33,6 +34,7 @@ import javax.swing.*;
import java.awt.*; import java.awt.*;
import java.awt.event.ActionEvent; import java.awt.event.ActionEvent;
import java.awt.event.ActionListener; import java.awt.event.ActionListener;
import java.util.Arrays;
import static com.fr.report.cell.cellattr.core.group.FilterTypeEnum.BOTTOM; import static com.fr.report.cell.cellattr.core.group.FilterTypeEnum.BOTTOM;
import static com.fr.report.cell.cellattr.core.group.FilterTypeEnum.SPECIFY; import static com.fr.report.cell.cellattr.core.group.FilterTypeEnum.SPECIFY;
@ -513,10 +515,11 @@ public class DSColumnAdvancedPane extends BasicPane {
public static class FormatAttrPane extends TextFormatPane { public static class FormatAttrPane extends TextFormatPane {
protected void initLayout() { protected void initLayout() {
JPanel settingPane = FRGUIPaneFactory.createBoxFlowInnerContainer_S_Pane(0, 4, 0); JComponent[][] components = new JComponent[][] { {typeComboBox, textField, roundingBox} };
settingPane.add(typeComboBox); double[] rowSize = new double[] { TableLayout.FILL };
settingPane.add(textField); double[] columnSize = {TableLayout.PREFERRED, 200, TableLayout.PREFERRED};
settingPane.add(roundingBox);
JPanel settingPane = TableLayoutHelper.createGapTableLayoutPane(components, rowSize, columnSize, 4, 0);
addComponents(4, new JComponent[]{settingPane, previewLabel}); addComponents(4, new JComponent[]{settingPane, previewLabel});
} }

Loading…
Cancel
Save