|
|
@ -1,5 +1,6 @@ |
|
|
|
package com.fr.design.report; |
|
|
|
package com.fr.design.report; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.fine.theme.utils.FineUIScale; |
|
|
|
import com.fr.design.beans.BasicBeanPane; |
|
|
|
import com.fr.design.beans.BasicBeanPane; |
|
|
|
import com.fr.design.dialog.FineJOptionPane; |
|
|
|
import com.fr.design.dialog.FineJOptionPane; |
|
|
|
import com.fr.design.editor.editor.IntegerEditor; |
|
|
|
import com.fr.design.editor.editor.IntegerEditor; |
|
|
@ -25,7 +26,6 @@ import javax.swing.AbstractButton; |
|
|
|
import javax.swing.BorderFactory; |
|
|
|
import javax.swing.BorderFactory; |
|
|
|
import javax.swing.ButtonGroup; |
|
|
|
import javax.swing.ButtonGroup; |
|
|
|
import javax.swing.JLabel; |
|
|
|
import javax.swing.JLabel; |
|
|
|
import javax.swing.JLayeredPane; |
|
|
|
|
|
|
|
import javax.swing.JOptionPane; |
|
|
|
import javax.swing.JOptionPane; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.JRadioButton; |
|
|
|
import javax.swing.JRadioButton; |
|
|
@ -44,6 +44,13 @@ import java.net.URISyntaxException; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.row; |
|
|
|
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.box; |
|
|
|
|
|
|
|
import static com.fine.theme.utils.FineUIUtils.wrapComponentWithTitle; |
|
|
|
|
|
|
|
import static com.fine.theme.utils.FineUIScale.scale; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @author fly.li |
|
|
|
* @author fly.li |
|
|
|
* @version 10.0 |
|
|
|
* @version 10.0 |
|
|
@ -52,7 +59,7 @@ import java.util.List; |
|
|
|
public class ReportEnginePane extends BasicBeanPane<LayerReportAttr> { |
|
|
|
public class ReportEnginePane extends BasicBeanPane<LayerReportAttr> { |
|
|
|
private static final int LABEL_HEIGHT = 55; |
|
|
|
private static final int LABEL_HEIGHT = 55; |
|
|
|
private JPanel outLineEngineSettingPane; |
|
|
|
private JPanel outLineEngineSettingPane; |
|
|
|
private JLayeredPane engineSettingPane; |
|
|
|
private JPanel engineSettingPane; |
|
|
|
private UICheckBox clientPaging; |
|
|
|
private UICheckBox clientPaging; |
|
|
|
private UICheckBox lineEnginePageQueryBox; |
|
|
|
private UICheckBox lineEnginePageQueryBox; |
|
|
|
private UICheckBox engineXPageQueryBox; |
|
|
|
private UICheckBox engineXPageQueryBox; |
|
|
@ -77,46 +84,50 @@ public class ReportEnginePane extends BasicBeanPane<LayerReportAttr> { |
|
|
|
|
|
|
|
|
|
|
|
protected void initComponents() { |
|
|
|
protected void initComponents() { |
|
|
|
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
JPanel outReportEnginePane = FRGUIPaneFactory.createTitledBorderPane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Report_Engine_Attribute")); |
|
|
|
JPanel outReportEnginePane = new JPanel(new BorderLayout()); |
|
|
|
outReportEnginePane.setPreferredSize(new Dimension(600, 370)); |
|
|
|
createOutPagingEngineSelectPane(); |
|
|
|
this.add(outReportEnginePane, BorderLayout.NORTH); |
|
|
|
|
|
|
|
outReportEnginePane.add(createReportEnginePane()); |
|
|
|
outReportEnginePane.add(createReportEnginePane()); |
|
|
|
JPanel outAdvicePane = FRGUIPaneFactory.createTitledBorderPane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Advice")); |
|
|
|
JPanel outAdvicePane = new JPanel(); |
|
|
|
this.add(outAdvicePane, BorderLayout.SOUTH); |
|
|
|
outAdvicePane.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
outAdvicePane.setPreferredSize(new Dimension(600, 150)); |
|
|
|
outAdvicePane.setPreferredSize(new Dimension(FineUIScale.scale(600), FineUIScale.scale(160))); |
|
|
|
outAdvicePane.add(createAdvicePane()); |
|
|
|
outAdvicePane.add(createAdvicePane()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.add(column(10, |
|
|
|
|
|
|
|
cell(wrapComponentWithTitle(outReportEnginePane, Toolkit.i18nText("Fine-Design_Report_Report_Engine_Attribute"))), |
|
|
|
|
|
|
|
cell(wrapComponentWithTitle(outPagingEngineSelectPane, Toolkit.i18nText("Fine-Design_Report_Paging_Engine_Select"))).weight(1.0), |
|
|
|
|
|
|
|
cell(wrapComponentWithTitle(outAdvicePane, Toolkit.i18nText("Fine-Design_Report_Advice")))) |
|
|
|
|
|
|
|
.getComponent()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private JPanel createReportEnginePane() { |
|
|
|
private void createOutPagingEngineSelectPane() { |
|
|
|
JPanel reportEnginePane = FRGUIPaneFactory.createY_AXISBoxInnerContainer_M_Pane(); |
|
|
|
outPagingEngineSelectPane = new JPanel(new BorderLayout()); |
|
|
|
JPanel clientPagingPane = FRGUIPaneFactory.createNormalFlowInnerContainer_S_Pane(); |
|
|
|
|
|
|
|
clientPaging = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Enable_Client_Page")); |
|
|
|
|
|
|
|
clientPaging.setSelected(false); |
|
|
|
|
|
|
|
clientPagingPane.add(clientPaging); |
|
|
|
|
|
|
|
reportEnginePane.add(clientPagingPane); |
|
|
|
|
|
|
|
outPagingEngineSelectPane = FRGUIPaneFactory.createTitledBorderPane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Paging_Engine_Select")); |
|
|
|
|
|
|
|
reportEnginePane.add(outPagingEngineSelectPane); |
|
|
|
|
|
|
|
outPagingEngineSelectPane.setVisible(false); |
|
|
|
outPagingEngineSelectPane.setVisible(false); |
|
|
|
outPagingEngineSelectPane.setPreferredSize(new Dimension(600, 300)); |
|
|
|
|
|
|
|
outPagingEngineSelectPane.add(createPagingEngineSelectPane()); |
|
|
|
outPagingEngineSelectPane.add(createPagingEngineSelectPane()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private JPanel createReportEnginePane() { |
|
|
|
|
|
|
|
JPanel reportEnginePane = new JPanel(new BorderLayout()); |
|
|
|
|
|
|
|
clientPaging = new UICheckBox(Toolkit.i18nText("Fine-Design_Report_Enable_Client_Page")); |
|
|
|
|
|
|
|
clientPaging.setSelected(false); |
|
|
|
clientPaging.addActionListener(new SelectActionListener(clientPaging, outPagingEngineSelectPane)); |
|
|
|
clientPaging.addActionListener(new SelectActionListener(clientPaging, outPagingEngineSelectPane)); |
|
|
|
|
|
|
|
reportEnginePane.add(clientPaging); |
|
|
|
return reportEnginePane; |
|
|
|
return reportEnginePane; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private JPanel createPagingEngineSelectPane() { |
|
|
|
private JPanel createPagingEngineSelectPane() { |
|
|
|
engineSettingPane = new JLayeredPane(); |
|
|
|
engineSettingPane = new JPanel(new BorderLayout()); |
|
|
|
engineSettingPane.setPreferredSize(new Dimension(570, 240)); |
|
|
|
|
|
|
|
engineSettingPane.setBounds(0, 0, 570, 240); |
|
|
|
|
|
|
|
createEngineXSettingPane(); |
|
|
|
createEngineXSettingPane(); |
|
|
|
createLineEngineSettingPane(); |
|
|
|
createLineEngineSettingPane(); |
|
|
|
outLineEngineSettingPane.setVisible(false); |
|
|
|
outLineEngineSettingPane.setVisible(false); |
|
|
|
engineSettingPane.add(outEngineXSettingPane, JLayeredPane.DEFAULT_LAYER); |
|
|
|
outEngineXSettingPane.setPreferredSize(new Dimension(scale(625), scale(220))); |
|
|
|
engineSettingPane.add(outLineEngineSettingPane, JLayeredPane.DEFAULT_LAYER); |
|
|
|
outLineEngineSettingPane.setPreferredSize(new Dimension(scale(625), scale(220))); |
|
|
|
engineSettingPane.moveToFront(outEngineXSettingPane); |
|
|
|
engineSettingPane.add(box(cell(outEngineXSettingPane), |
|
|
|
|
|
|
|
cell(outLineEngineSettingPane)).getComponent() |
|
|
|
|
|
|
|
, BorderLayout.WEST); |
|
|
|
engineSettingPane.setVisible(true); |
|
|
|
engineSettingPane.setVisible(true); |
|
|
|
JPanel pagingEngineSelectPane = FRGUIPaneFactory.createY_AXISBoxInnerContainer_M_Pane(); |
|
|
|
JPanel pagingEngineSelectPane = new JPanel(new BorderLayout()); |
|
|
|
pagingEngineSelectPane.add(createPagingEngineRadioPanel()); |
|
|
|
pagingEngineSelectPane.add(createPagingEngineRadioPanel(), BorderLayout.NORTH); |
|
|
|
pagingEngineSelectPane.add(engineSettingPane); |
|
|
|
pagingEngineSelectPane.add(engineSettingPane, BorderLayout.CENTER); |
|
|
|
return pagingEngineSelectPane; |
|
|
|
return pagingEngineSelectPane; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -125,45 +136,49 @@ public class ReportEnginePane extends BasicBeanPane<LayerReportAttr> { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private void createEngineXSettingPane() { |
|
|
|
private void createEngineXSettingPane() { |
|
|
|
outEngineXSettingPane = FRGUIPaneFactory.createTitledBorderPane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_New_Engine")); |
|
|
|
outEngineXSettingPane = FRGUIPaneFactory.createTitledBorderPane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_New_Engine")); |
|
|
|
outEngineXSettingPane.setBounds(0, 0, 570, 240); |
|
|
|
|
|
|
|
JPanel engineXSettingPane = FRGUIPaneFactory.createY_AXISBoxInnerContainer_M_Pane(); |
|
|
|
JPanel engineXSettingPane = FRGUIPaneFactory.createY_AXISBoxInnerContainer_M_Pane(); |
|
|
|
JPanel pageQueryBoxPanel = FRGUIPaneFactory.createNormalFlowInnerContainer_S_Pane(); |
|
|
|
JPanel pageQueryBoxPanel = FRGUIPaneFactory.createNormalFlowInnerContainer_S_Pane(); |
|
|
|
engineXPageQueryBox = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Fixed_Line_Paging")); |
|
|
|
engineXPageQueryBox = new UICheckBox(Toolkit.i18nText("Fine-Design_Report_Fixed_Line_Paging")); |
|
|
|
engineXPageQueryBox.setSelected(false); |
|
|
|
engineXPageQueryBox.setSelected(false); |
|
|
|
pageQueryBoxPanel.add(engineXPageQueryBox); |
|
|
|
pageQueryBoxPanel.add(engineXPageQueryBox); |
|
|
|
engineXSettingPane.add(pageQueryBoxPanel); |
|
|
|
|
|
|
|
engineXCountPerPageEditor = new IntegerEditor(new Integer(30)); |
|
|
|
engineXCountPerPageEditor = new IntegerEditor(new Integer(30)); |
|
|
|
engineXCountPerPageEditor.setPreferredSize(new Dimension(120, 20)); |
|
|
|
engineXCountPerPageEditor.setPreferredSize(new Dimension(FineUIScale.scale(120), FineUIScale.scale(20))); |
|
|
|
engineXPageQueryPane = createPageQueryPane(engineXCountPerPageEditor); |
|
|
|
engineXPageQueryPane = createPageQueryPane(engineXCountPerPageEditor); |
|
|
|
engineXPageQueryPane.setVisible(false); |
|
|
|
engineXPageQueryPane.setVisible(false); |
|
|
|
engineXSettingPane.add(engineXPageQueryPane); |
|
|
|
|
|
|
|
engineXPageQueryBox.addActionListener(new SelectActionListener(engineXPageQueryBox, engineXPageQueryPane)); |
|
|
|
engineXPageQueryBox.addActionListener(new SelectActionListener(engineXPageQueryBox, engineXPageQueryPane)); |
|
|
|
JPanel rowCountPanel = FRGUIPaneFactory.createNormalFlowInnerContainer_S_Pane(); |
|
|
|
JPanel rowCountPanel = FRGUIPaneFactory.createNormalFlowInnerContainer_S_Pane(); |
|
|
|
rowCountBox = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Row_Count")); |
|
|
|
rowCountBox = new UICheckBox(Toolkit.i18nText("Fine-Design_Report_Row_Count")); |
|
|
|
rowCountBox.setSelected(false); |
|
|
|
rowCountBox.setSelected(false); |
|
|
|
rowCountPanel.add(rowCountBox); |
|
|
|
rowCountPanel.add(rowCountBox); |
|
|
|
engineXSettingPane.add(rowCountPanel); |
|
|
|
JPanel tip = createTipPane(Toolkit.i18nText("Fine-Design_Report_Engine_X_tip")); |
|
|
|
engineXSettingPane.add(createTipPane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Engine_X_tip"))); |
|
|
|
engineXSettingPane.add(column(10, |
|
|
|
|
|
|
|
cell(pageQueryBoxPanel), |
|
|
|
|
|
|
|
cell(engineXPageQueryPane), |
|
|
|
|
|
|
|
cell(rowCountPanel), |
|
|
|
|
|
|
|
cell(tip)) |
|
|
|
|
|
|
|
.getComponent()); |
|
|
|
outEngineXSettingPane.add(engineXSettingPane); |
|
|
|
outEngineXSettingPane.add(engineXSettingPane); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void createLineEngineSettingPane() { |
|
|
|
private void createLineEngineSettingPane() { |
|
|
|
outLineEngineSettingPane = FRGUIPaneFactory.createTitledBorderPane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Line_Engine")); |
|
|
|
outLineEngineSettingPane = FRGUIPaneFactory.createTitledBorderPane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Line_Engine")); |
|
|
|
outLineEngineSettingPane.setBounds(0, 0, 570, 240); |
|
|
|
|
|
|
|
JPanel lineEngineSettingPane = FRGUIPaneFactory.createY_AXISBoxInnerContainer_M_Pane(); |
|
|
|
JPanel lineEngineSettingPane = FRGUIPaneFactory.createY_AXISBoxInnerContainer_M_Pane(); |
|
|
|
JPanel pageQueryBoxPanel = FRGUIPaneFactory.createNormalFlowInnerContainer_S_Pane(); |
|
|
|
JPanel pageQueryBoxPanel = FRGUIPaneFactory.createNormalFlowInnerContainer_S_Pane(); |
|
|
|
lineEnginePageQueryBox = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Fixed_Line_Paging")); |
|
|
|
lineEnginePageQueryBox = new UICheckBox(Toolkit.i18nText("Fine-Design_Report_Fixed_Line_Paging")); |
|
|
|
lineEnginePageQueryBox.setSelected(false); |
|
|
|
lineEnginePageQueryBox.setSelected(false); |
|
|
|
pageQueryBoxPanel.add(lineEnginePageQueryBox); |
|
|
|
pageQueryBoxPanel.add(lineEnginePageQueryBox); |
|
|
|
lineEngineSettingPane.add(pageQueryBoxPanel); |
|
|
|
|
|
|
|
lineEngineCountPerPageEditor = new IntegerEditor(new Integer(30)); |
|
|
|
lineEngineCountPerPageEditor = new IntegerEditor(new Integer(30)); |
|
|
|
lineEngineCountPerPageEditor.setPreferredSize(new Dimension(120, 20)); |
|
|
|
lineEngineCountPerPageEditor.setPreferredSize(new Dimension(120, 20)); |
|
|
|
lineEnginePageQueryPane = createPageQueryPane(lineEngineCountPerPageEditor); |
|
|
|
lineEnginePageQueryPane = createPageQueryPane(lineEngineCountPerPageEditor); |
|
|
|
lineEnginePageQueryPane.setVisible(false); |
|
|
|
lineEnginePageQueryPane.setVisible(false); |
|
|
|
lineEngineSettingPane.add(lineEnginePageQueryPane); |
|
|
|
lineEngineSettingPane.add(lineEnginePageQueryPane); |
|
|
|
lineEnginePageQueryBox.addActionListener(new SelectActionListener(lineEnginePageQueryBox, lineEnginePageQueryPane)); |
|
|
|
lineEnginePageQueryBox.addActionListener(new SelectActionListener(lineEnginePageQueryBox, lineEnginePageQueryPane)); |
|
|
|
JPanel tipPane = createTipPane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Line_Engine_tip")); |
|
|
|
JPanel tipPane = createTipPane(Toolkit.i18nText("Fine-Design_Report_Line_Engine_tip")); |
|
|
|
lineEngineSettingPane.add(tipPane); |
|
|
|
lineEngineSettingPane.add(column(10, |
|
|
|
|
|
|
|
cell(pageQueryBoxPanel), |
|
|
|
|
|
|
|
cell(lineEnginePageQueryPane), |
|
|
|
|
|
|
|
cell(tipPane)) |
|
|
|
|
|
|
|
.getComponent()); |
|
|
|
outLineEngineSettingPane.add(lineEngineSettingPane); |
|
|
|
outLineEngineSettingPane.add(lineEngineSettingPane); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -190,16 +205,12 @@ public class ReportEnginePane extends BasicBeanPane<LayerReportAttr> { |
|
|
|
// 上侧文字
|
|
|
|
// 上侧文字
|
|
|
|
UILabel topExplainLabel = FRWidgetFactory.createLineWrapLabel(Toolkit.i18nText("Fine-Design_Report_Report_Engine_Warnning_Info"), 480); |
|
|
|
UILabel topExplainLabel = FRWidgetFactory.createLineWrapLabel(Toolkit.i18nText("Fine-Design_Report_Report_Engine_Warnning_Info"), 480); |
|
|
|
topExplainLabel.setForeground(new Color(0, 0, 0)); |
|
|
|
topExplainLabel.setForeground(new Color(0, 0, 0)); |
|
|
|
advicePane.add(topExplainLabel); |
|
|
|
|
|
|
|
// 下侧文字及链接
|
|
|
|
// 下侧文字及链接
|
|
|
|
JPanel adviceDownPane = FRGUIPaneFactory.createLeftFlowZeroGapBorderPane(); |
|
|
|
JPanel adviceDownPane = FRGUIPaneFactory.createLeftFlowZeroGapBorderPane(); |
|
|
|
advicePane.add(adviceDownPane); |
|
|
|
|
|
|
|
UILabel downExplainLabel = new UILabel(Toolkit.i18nText("Fine-Design_Report_Report_Detail_Reference")); |
|
|
|
UILabel downExplainLabel = new UILabel(Toolkit.i18nText("Fine-Design_Report_Report_Detail_Reference")); |
|
|
|
adviceDownPane.add(downExplainLabel); |
|
|
|
|
|
|
|
downExplainLabel.setForeground(new Color(0, 0, 0)); |
|
|
|
downExplainLabel.setForeground(new Color(0, 0, 0)); |
|
|
|
JLabel helper = new FRExplainLabel(Toolkit.i18nText("Fine-Design_Report_Community_Help")); |
|
|
|
JLabel helper = new FRExplainLabel(Toolkit.i18nText("Fine-Design_Report_Community_Help")); |
|
|
|
helper.setForeground(new Color(1, 159, 222)); |
|
|
|
helper.setForeground(new Color(1, 159, 222)); |
|
|
|
adviceDownPane.add(helper); |
|
|
|
|
|
|
|
helper.addMouseListener(new MouseAdapter() { |
|
|
|
helper.addMouseListener(new MouseAdapter() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void mouseClicked(MouseEvent e) { |
|
|
|
public void mouseClicked(MouseEvent e) { |
|
|
@ -211,6 +222,15 @@ public class ReportEnginePane extends BasicBeanPane<LayerReportAttr> { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
adviceDownPane.add(row(20, |
|
|
|
|
|
|
|
cell(downExplainLabel), |
|
|
|
|
|
|
|
cell(helper)) |
|
|
|
|
|
|
|
.getComponent()); |
|
|
|
|
|
|
|
advicePane.add(column(20, |
|
|
|
|
|
|
|
cell(topExplainLabel), |
|
|
|
|
|
|
|
cell(adviceDownPane)) |
|
|
|
|
|
|
|
.getComponent()); |
|
|
|
|
|
|
|
|
|
|
|
return advicePane; |
|
|
|
return advicePane; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -222,7 +242,7 @@ public class ReportEnginePane extends BasicBeanPane<LayerReportAttr> { |
|
|
|
buttonGroup.add(lineEngine); |
|
|
|
buttonGroup.add(lineEngine); |
|
|
|
radioButtons.add(newEngine); |
|
|
|
radioButtons.add(newEngine); |
|
|
|
radioButtons.add(lineEngine); |
|
|
|
radioButtons.add(lineEngine); |
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
double p = TableLayout.FILL; |
|
|
|
double[] rowSize = {p}; |
|
|
|
double[] rowSize = {p}; |
|
|
|
double[] columnSize = {p, p, p, p, p}; |
|
|
|
double[] columnSize = {p, p, p, p, p}; |
|
|
|
Component[][] components = new Component[][]{ |
|
|
|
Component[][] components = new Component[][]{ |
|
|
@ -239,7 +259,7 @@ public class ReportEnginePane extends BasicBeanPane<LayerReportAttr> { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected String title4PopupWindow() { |
|
|
|
protected String title4PopupWindow() { |
|
|
|
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Report_Engine_Attribute"); |
|
|
|
return Toolkit.i18nText("Fine-Design_Report_Report_Engine_Attribute"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -254,14 +274,12 @@ public class ReportEnginePane extends BasicBeanPane<LayerReportAttr> { |
|
|
|
radioButtons.get(0).setSelected(ob.getEngineState() == LayerReportAttr.ENGINE_X); |
|
|
|
radioButtons.get(0).setSelected(ob.getEngineState() == LayerReportAttr.ENGINE_X); |
|
|
|
radioButtons.get(1).setSelected(ob.getEngineState() == LayerReportAttr.LINE_ENGINE); |
|
|
|
radioButtons.get(1).setSelected(ob.getEngineState() == LayerReportAttr.LINE_ENGINE); |
|
|
|
if (ob.getEngineState() == LayerReportAttr.ENGINE_X) { |
|
|
|
if (ob.getEngineState() == LayerReportAttr.ENGINE_X) { |
|
|
|
engineSettingPane.moveToFront(outEngineXSettingPane); |
|
|
|
|
|
|
|
outEngineXSettingPane.setVisible(true); |
|
|
|
outEngineXSettingPane.setVisible(true); |
|
|
|
outLineEngineSettingPane.setVisible(false); |
|
|
|
outLineEngineSettingPane.setVisible(false); |
|
|
|
engineXCountPerPageEditor.setValue(new Integer(ob.getCountPerPage())); |
|
|
|
engineXCountPerPageEditor.setValue(new Integer(ob.getCountPerPage())); |
|
|
|
engineXPageQueryBox.setSelected(ob.isPageQuery()); |
|
|
|
engineXPageQueryBox.setSelected(ob.isPageQuery()); |
|
|
|
engineXPageQueryPane.setVisible(ob.isPageQuery()); |
|
|
|
engineXPageQueryPane.setVisible(ob.isPageQuery()); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
engineSettingPane.moveToFront(outLineEngineSettingPane); |
|
|
|
|
|
|
|
outEngineXSettingPane.setVisible(false); |
|
|
|
outEngineXSettingPane.setVisible(false); |
|
|
|
outLineEngineSettingPane.setVisible(true); |
|
|
|
outLineEngineSettingPane.setVisible(true); |
|
|
|
lineEngineCountPerPageEditor.setValue(new Integer(ob.getCountPerPage())); |
|
|
|
lineEngineCountPerPageEditor.setValue(new Integer(ob.getCountPerPage())); |
|
|
@ -335,11 +353,11 @@ public class ReportEnginePane extends BasicBeanPane<LayerReportAttr> { |
|
|
|
|
|
|
|
|
|
|
|
private class EngineSelectActionListener implements ActionListener { |
|
|
|
private class EngineSelectActionListener implements ActionListener { |
|
|
|
private AbstractButton source; |
|
|
|
private AbstractButton source; |
|
|
|
private JLayeredPane target; |
|
|
|
private JPanel target; |
|
|
|
private JPanel showTarget; |
|
|
|
private JPanel showTarget; |
|
|
|
private JPanel notShowTarget; |
|
|
|
private JPanel notShowTarget; |
|
|
|
|
|
|
|
|
|
|
|
private EngineSelectActionListener(AbstractButton source, JLayeredPane target, JPanel showTarget, JPanel notShowTarget) { |
|
|
|
private EngineSelectActionListener(AbstractButton source, JPanel target, JPanel showTarget, JPanel notShowTarget) { |
|
|
|
this.source = source; |
|
|
|
this.source = source; |
|
|
|
this.target = target; |
|
|
|
this.target = target; |
|
|
|
this.showTarget = showTarget; |
|
|
|
this.showTarget = showTarget; |
|
|
@ -356,7 +374,6 @@ public class ReportEnginePane extends BasicBeanPane<LayerReportAttr> { |
|
|
|
target.setVisible(true); |
|
|
|
target.setVisible(true); |
|
|
|
showTarget.setVisible(true); |
|
|
|
showTarget.setVisible(true); |
|
|
|
notShowTarget.setVisible(false); |
|
|
|
notShowTarget.setVisible(false); |
|
|
|
target.moveToFront(showTarget); |
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
target.setVisible(false); |
|
|
|
target.setVisible(false); |
|
|
|
} |
|
|
|
} |
|
|
|