|
|
@ -2,6 +2,8 @@ package com.fr.design.report; |
|
|
|
|
|
|
|
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.JPanel; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.page.ReportSettingsProvider; |
|
|
|
import com.fr.page.ReportSettingsProvider; |
|
|
|
import com.fr.design.gui.icheckbox.UICheckBox; |
|
|
|
import com.fr.design.gui.icheckbox.UICheckBox; |
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
@ -11,6 +13,7 @@ import com.fr.design.style.background.BackgroundPane; |
|
|
|
|
|
|
|
|
|
|
|
public class ReportBackgroundPane extends BasicPane { |
|
|
|
public class ReportBackgroundPane extends BasicPane { |
|
|
|
private UICheckBox isPrintBackgroundCheckBox; |
|
|
|
private UICheckBox isPrintBackgroundCheckBox; |
|
|
|
|
|
|
|
private UICheckBox isExportBackgroundCheckBox; |
|
|
|
private BackgroundPane backgroundPane; |
|
|
|
private BackgroundPane backgroundPane; |
|
|
|
|
|
|
|
|
|
|
|
public ReportBackgroundPane() { |
|
|
|
public ReportBackgroundPane() { |
|
|
@ -19,8 +22,13 @@ public class ReportBackgroundPane extends BasicPane { |
|
|
|
backgroundPane = new BackgroundPane(); |
|
|
|
backgroundPane = new BackgroundPane(); |
|
|
|
this.add(backgroundPane, BorderLayout.CENTER); |
|
|
|
this.add(backgroundPane, BorderLayout.CENTER); |
|
|
|
|
|
|
|
|
|
|
|
isPrintBackgroundCheckBox = new UICheckBox( |
|
|
|
isPrintBackgroundCheckBox = new UICheckBox(Inter.getLocText("FR-Designer_Print_Background")); |
|
|
|
Inter.getLocText("ReportGUI-Print_Background")); |
|
|
|
isExportBackgroundCheckBox = new UICheckBox(Inter.getLocText("FR-Designer_Export_Background")); |
|
|
|
|
|
|
|
JPanel sourth = new JPanel(); |
|
|
|
|
|
|
|
sourth.add(isExportBackgroundCheckBox); |
|
|
|
|
|
|
|
sourth.add(isPrintBackgroundCheckBox); |
|
|
|
|
|
|
|
this.add(sourth, BorderLayout.SOUTH); |
|
|
|
|
|
|
|
|
|
|
|
this.add(isPrintBackgroundCheckBox, BorderLayout.SOUTH); |
|
|
|
this.add(isPrintBackgroundCheckBox, BorderLayout.SOUTH); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -35,6 +43,7 @@ public class ReportBackgroundPane extends BasicPane { |
|
|
|
public void populate(ReportSettingsProvider reportSettings) { |
|
|
|
public void populate(ReportSettingsProvider reportSettings) { |
|
|
|
this.backgroundPane.populate(reportSettings.getBackground()); |
|
|
|
this.backgroundPane.populate(reportSettings.getBackground()); |
|
|
|
this.isPrintBackgroundCheckBox.setSelected(reportSettings.isPrintBackground()); |
|
|
|
this.isPrintBackgroundCheckBox.setSelected(reportSettings.isPrintBackground()); |
|
|
|
|
|
|
|
this.isExportBackgroundCheckBox.setSelected(reportSettings.isExportBackground()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -43,5 +52,6 @@ public class ReportBackgroundPane extends BasicPane { |
|
|
|
public void update(ReportSettingsProvider reportSettings) { |
|
|
|
public void update(ReportSettingsProvider reportSettings) { |
|
|
|
reportSettings.setBackground(this.backgroundPane.update()); |
|
|
|
reportSettings.setBackground(this.backgroundPane.update()); |
|
|
|
reportSettings.setPrintBackground(this.isPrintBackgroundCheckBox.isSelected()); |
|
|
|
reportSettings.setPrintBackground(this.isPrintBackgroundCheckBox.isSelected()); |
|
|
|
|
|
|
|
reportSettings.setExportBackground(this.isExportBackgroundCheckBox.isSelected()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |