|
|
|
@ -9,6 +9,7 @@ import com.fr.config.PrintConfig;
|
|
|
|
|
import com.fr.config.ServerPreferenceConfig; |
|
|
|
|
import com.fr.design.gui.frpane.LoadingBasicPane; |
|
|
|
|
import com.fr.design.gui.frpane.UITabbedPane; |
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
|
import com.fr.design.webattr.printsettings.GlobalNativePrintSettingPane; |
|
|
|
|
import com.fr.design.webattr.printsettings.PrintSettingPane; |
|
|
|
@ -17,6 +18,7 @@ import com.fr.report.web.WebPage;
|
|
|
|
|
import com.fr.report.web.WebView; |
|
|
|
|
import com.fr.report.web.WebWrite; |
|
|
|
|
import com.fr.web.attr.ReportWebAttr; |
|
|
|
|
import com.fr.workspace.WorkContext; |
|
|
|
|
|
|
|
|
|
import javax.swing.JPanel; |
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
@ -44,6 +46,8 @@ public class EditReportServerParameterPane extends LoadingBasicPane {
|
|
|
|
|
|
|
|
|
|
private PrintSettingPane printSettingPane; |
|
|
|
|
|
|
|
|
|
private ServerFitAttrPane serverFitAttrPane; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
protected synchronized void initComponents(JPanel container) { |
|
|
|
@ -61,6 +65,9 @@ public class EditReportServerParameterPane extends LoadingBasicPane {
|
|
|
|
|
tabbedPane.addTab(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_ReportServerP_Import_JavaScript"), jsPane = new WebJsPane()); |
|
|
|
|
tabbedPane.addTab(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Error_Handler_Template"), errorTemplatePane = new ErrorTemplatePane()); |
|
|
|
|
tabbedPane.addTab(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Print_Setting"), printSettingPane = new PrintSettingPane(new GlobalNativePrintSettingPane())); |
|
|
|
|
if (WorkContext.getCurrent().isRoot()) { |
|
|
|
|
tabbedPane.addTab(Toolkit.i18nText("Fine-Designer_PC_Fit_Attr"), serverFitAttrPane = new ServerFitAttrPane()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@ -93,6 +100,9 @@ public class EditReportServerParameterPane extends LoadingBasicPane {
|
|
|
|
|
printSettingPane.populate(printSettings); |
|
|
|
|
|
|
|
|
|
this.errorTemplatePane.populateBean(reportServerPreferenceConfig.getErrorTemplate()); |
|
|
|
|
if (serverFitAttrPane != null) { |
|
|
|
|
serverFitAttrPane.populateBean(null); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -110,5 +120,8 @@ public class EditReportServerParameterPane extends LoadingBasicPane {
|
|
|
|
|
PrintConfig.getInstance().setPrintSettings(printSettings); |
|
|
|
|
|
|
|
|
|
reportServerPreferenceConfig.setErrorTemplate(this.errorTemplatePane.updateBean()); |
|
|
|
|
if (serverFitAttrPane != null) { |
|
|
|
|
serverFitAttrPane.updateBean(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|