|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
package com.fr.design.dscolumn; |
|
|
|
|
|
|
|
|
|
import com.fine.swing.ui.layout.Row; |
|
|
|
|
import com.fine.theme.utils.FineLayoutBuilder; |
|
|
|
|
import com.fine.theme.utils.FineUIUtils; |
|
|
|
|
import com.fr.base.BaseFormula; |
|
|
|
@ -20,7 +21,6 @@ import com.fr.design.gui.ilable.UILabel;
|
|
|
|
|
import com.fr.design.gui.ilist.ModNameActionListener; |
|
|
|
|
import com.fr.design.gui.itextfield.UITextField; |
|
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
|
|
|
|
|
|
import com.fr.general.NameObject; |
|
|
|
|
import com.fr.report.cell.CellElement; |
|
|
|
@ -30,8 +30,12 @@ import com.fr.report.cell.cellattr.core.group.FunctionGrouper;
|
|
|
|
|
import com.fr.report.cell.cellattr.core.group.RecordGrouper; |
|
|
|
|
import com.fr.stable.Nameable; |
|
|
|
|
|
|
|
|
|
import javax.swing.*; |
|
|
|
|
import java.awt.*; |
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
|
import javax.swing.JPanel; |
|
|
|
|
import javax.swing.SwingUtilities; |
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
|
import java.awt.CardLayout; |
|
|
|
|
import java.awt.Font; |
|
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
|
import java.awt.event.ActionListener; |
|
|
|
|
import java.awt.event.ItemEvent; |
|
|
|
@ -121,20 +125,18 @@ public class SpecifiedGroupAttrPane extends BasicPane {
|
|
|
|
|
|
|
|
|
|
conditionsGroupPane.add(specifiedControlPane, BorderLayout.CENTER); |
|
|
|
|
|
|
|
|
|
JPanel southPane = FRGUIPaneFactory.createMediumHGapFlowInnerContainer_M_Pane(); |
|
|
|
|
conditionsGroupPane.add(southPane, BorderLayout.SOUTH); |
|
|
|
|
forceCheckBox = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_SpecifiedG-Force_Group")); |
|
|
|
|
moreCheckBox = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_One_Record_Exists_In_Many_Groups")); |
|
|
|
|
southPane.add(forceCheckBox); southPane.add(moreCheckBox); |
|
|
|
|
otherComboBox = new UIComboBox(new String[] {com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_SpecifiedG-Discard_All_Others"), |
|
|
|
|
moreCheckBox = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_One_Record_Exists_In_Many_Groups")); |
|
|
|
|
otherComboBox = new UIComboBox(new String[] {com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_SpecifiedG-Discard_All_Others"), |
|
|
|
|
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_SpecifiedG_Leave_In_Their_Own_Groups"), com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_SpecifiedG_Put_All_Others_Together")}); |
|
|
|
|
otherComboBox.addItemListener(otherItemListener); |
|
|
|
|
otherComboBox.addItemListener(otherItemListener); |
|
|
|
|
otherComboBox.putClientProperty(COMBO_BOX_TYPE, ADAPTIVE_COMBO_BOX); |
|
|
|
|
|
|
|
|
|
UILabel label = new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_OtherGroup_Name") + ":"); |
|
|
|
|
otherTextField = new UITextField(8); |
|
|
|
|
Row southPane = FineLayoutBuilder.createHorizontalLayout(10, forceCheckBox, moreCheckBox, otherComboBox, label, otherTextField); |
|
|
|
|
conditionsGroupPane.add(southPane, BorderLayout.SOUTH); |
|
|
|
|
|
|
|
|
|
UILabel label = new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_OtherGroup_Name") + ":"); |
|
|
|
|
otherTextField = new UITextField(8); |
|
|
|
|
southPane.add(otherComboBox); |
|
|
|
|
southPane.add(GUICoreUtils.createFlowPane(new Component[]{label, otherTextField}, FlowLayout.LEFT)); |
|
|
|
|
|
|
|
|
|
// 公式分组
|
|
|
|
|
formulaGroupPane = new FormulaGroupPane(); |
|
|
|
|
|
|
|
|
|