|
|
@ -9,6 +9,7 @@ import com.fr.config.PrintConfig; |
|
|
|
import com.fr.config.ServerPreferenceConfig; |
|
|
|
import com.fr.config.ServerPreferenceConfig; |
|
|
|
import com.fr.design.gui.frpane.LoadingBasicPane; |
|
|
|
import com.fr.design.gui.frpane.LoadingBasicPane; |
|
|
|
import com.fr.design.gui.frpane.UITabbedPane; |
|
|
|
import com.fr.design.gui.frpane.UITabbedPane; |
|
|
|
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
import com.fr.design.webattr.printsettings.GlobalNativePrintSettingPane; |
|
|
|
import com.fr.design.webattr.printsettings.GlobalNativePrintSettingPane; |
|
|
|
import com.fr.design.webattr.printsettings.PrintSettingPane; |
|
|
|
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.WebView; |
|
|
|
import com.fr.report.web.WebWrite; |
|
|
|
import com.fr.report.web.WebWrite; |
|
|
|
import com.fr.web.attr.ReportWebAttr; |
|
|
|
import com.fr.web.attr.ReportWebAttr; |
|
|
|
|
|
|
|
import com.fr.workspace.WorkContext; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.BorderLayout; |
|
|
@ -44,6 +46,8 @@ public class EditReportServerParameterPane extends LoadingBasicPane { |
|
|
|
|
|
|
|
|
|
|
|
private PrintSettingPane printSettingPane; |
|
|
|
private PrintSettingPane printSettingPane; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private ServerFitAttrPane serverFitAttrPane; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected synchronized void initComponents(JPanel container) { |
|
|
|
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_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_Error_Handler_Template"), errorTemplatePane = new ErrorTemplatePane()); |
|
|
|
tabbedPane.addTab(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Print_Setting"), printSettingPane = new PrintSettingPane(new GlobalNativePrintSettingPane())); |
|
|
|
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 |
|
|
|
@Override |
|
|
@ -78,13 +85,13 @@ public class EditReportServerParameterPane extends LoadingBasicPane { |
|
|
|
WebPage webPage = webAttr.getWebPage(); |
|
|
|
WebPage webPage = webAttr.getWebPage(); |
|
|
|
WebView webView = webAttr.getWebView(); |
|
|
|
WebView webView = webAttr.getWebView(); |
|
|
|
WebWrite webWrite = webAttr.getWebWrite(); |
|
|
|
WebWrite webWrite = webAttr.getWebWrite(); |
|
|
|
if(webPage != null){ |
|
|
|
if (webPage != null) { |
|
|
|
pagePane.populateBean(webPage); |
|
|
|
pagePane.populateBean(webPage); |
|
|
|
} |
|
|
|
} |
|
|
|
if(webView != null){ |
|
|
|
if (webView != null) { |
|
|
|
viewPane.populateBean(webView); |
|
|
|
viewPane.populateBean(webView); |
|
|
|
} |
|
|
|
} |
|
|
|
if(webWrite != null){ |
|
|
|
if (webWrite != null) { |
|
|
|
writePane.populateBean(webWrite); |
|
|
|
writePane.populateBean(webWrite); |
|
|
|
} |
|
|
|
} |
|
|
|
cssPane.populate(webAttr); |
|
|
|
cssPane.populate(webAttr); |
|
|
@ -93,13 +100,16 @@ public class EditReportServerParameterPane extends LoadingBasicPane { |
|
|
|
printSettingPane.populate(printSettings); |
|
|
|
printSettingPane.populate(printSettings); |
|
|
|
|
|
|
|
|
|
|
|
this.errorTemplatePane.populateBean(reportServerPreferenceConfig.getErrorTemplate()); |
|
|
|
this.errorTemplatePane.populateBean(reportServerPreferenceConfig.getErrorTemplate()); |
|
|
|
|
|
|
|
if (serverFitAttrPane != null) { |
|
|
|
|
|
|
|
serverFitAttrPane.populateBean(null); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Update. |
|
|
|
* Update. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void update(ServerPreferenceConfig reportServerPreferenceConfig) { |
|
|
|
public void update(ServerPreferenceConfig reportServerPreferenceConfig) { |
|
|
|
ReportWebAttr webAttr = ((ReportWebAttr)ConfigManager.getProviderInstance().getGlobalAttribute(ReportWebAttr.class)); |
|
|
|
ReportWebAttr webAttr = ((ReportWebAttr) ConfigManager.getProviderInstance().getGlobalAttribute(ReportWebAttr.class)); |
|
|
|
webAttr.setWebPage(pagePane.updateBean()); |
|
|
|
webAttr.setWebPage(pagePane.updateBean()); |
|
|
|
webAttr.setWebView(viewPane.updateBean()); |
|
|
|
webAttr.setWebView(viewPane.updateBean()); |
|
|
|
webAttr.setWebWrite(writePane.updateBean()); |
|
|
|
webAttr.setWebWrite(writePane.updateBean()); |
|
|
@ -110,5 +120,8 @@ public class EditReportServerParameterPane extends LoadingBasicPane { |
|
|
|
PrintConfig.getInstance().setPrintSettings(printSettings); |
|
|
|
PrintConfig.getInstance().setPrintSettings(printSettings); |
|
|
|
|
|
|
|
|
|
|
|
reportServerPreferenceConfig.setErrorTemplate(this.errorTemplatePane.updateBean()); |
|
|
|
reportServerPreferenceConfig.setErrorTemplate(this.errorTemplatePane.updateBean()); |
|
|
|
|
|
|
|
if (serverFitAttrPane != null) { |
|
|
|
|
|
|
|
serverFitAttrPane.updateBean(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|