|
|
@ -4,10 +4,8 @@ import com.fr.base.BaseUtils; |
|
|
|
import com.fr.design.gui.core.WidgetOption; |
|
|
|
import com.fr.design.gui.core.WidgetOption; |
|
|
|
import com.fr.design.gui.core.WidgetOptionFactory; |
|
|
|
import com.fr.design.gui.core.WidgetOptionFactory; |
|
|
|
import com.fr.form.ui.CustomToolBarButton; |
|
|
|
import com.fr.form.ui.CustomToolBarButton; |
|
|
|
import com.fr.form.ui.Widget; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.fr.report.web.button.AppletPrint; |
|
|
|
import com.fr.report.web.button.AppletPrint; |
|
|
|
import com.fr.report.web.button.Edit; |
|
|
|
|
|
|
|
import com.fr.report.web.button.Email; |
|
|
|
import com.fr.report.web.button.Email; |
|
|
|
import com.fr.report.web.button.ExcelO; |
|
|
|
import com.fr.report.web.button.ExcelO; |
|
|
|
import com.fr.report.web.button.ExcelP; |
|
|
|
import com.fr.report.web.button.ExcelP; |
|
|
@ -16,13 +14,11 @@ import com.fr.report.web.button.Export; |
|
|
|
import com.fr.report.web.button.FlashPrint; |
|
|
|
import com.fr.report.web.button.FlashPrint; |
|
|
|
import com.fr.report.web.button.NewPrint; |
|
|
|
import com.fr.report.web.button.NewPrint; |
|
|
|
import com.fr.report.web.button.PDF; |
|
|
|
import com.fr.report.web.button.PDF; |
|
|
|
import com.fr.report.web.button.PDF2; |
|
|
|
|
|
|
|
import com.fr.report.web.button.PDFPrint; |
|
|
|
import com.fr.report.web.button.PDFPrint; |
|
|
|
import com.fr.report.web.button.PageSetup; |
|
|
|
import com.fr.report.web.button.PageSetup; |
|
|
|
import com.fr.report.web.button.Print; |
|
|
|
import com.fr.report.web.button.Print; |
|
|
|
import com.fr.report.web.button.PrintPreview; |
|
|
|
import com.fr.report.web.button.PrintPreview; |
|
|
|
import com.fr.report.web.button.Scale; |
|
|
|
import com.fr.report.web.button.Scale; |
|
|
|
import com.fr.report.web.button.ServerPrint; |
|
|
|
|
|
|
|
import com.fr.report.web.button.Word; |
|
|
|
import com.fr.report.web.button.Word; |
|
|
|
import com.fr.report.web.button.page.First; |
|
|
|
import com.fr.report.web.button.page.First; |
|
|
|
import com.fr.report.web.button.page.Last; |
|
|
|
import com.fr.report.web.button.page.Last; |
|
|
@ -45,8 +41,6 @@ import com.fr.report.web.button.write.Submit; |
|
|
|
import com.fr.report.web.button.write.SubmitForcibly; |
|
|
|
import com.fr.report.web.button.write.SubmitForcibly; |
|
|
|
import com.fr.report.web.button.write.Verify; |
|
|
|
import com.fr.report.web.button.write.Verify; |
|
|
|
import com.fr.report.web.button.write.WriteOfflineHTML; |
|
|
|
import com.fr.report.web.button.write.WriteOfflineHTML; |
|
|
|
import com.fr.stable.bridge.BridgeMark; |
|
|
|
|
|
|
|
import com.fr.stable.bridge.StableFactory; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class ReportWebWidgetConstants { |
|
|
|
public class ReportWebWidgetConstants { |
|
|
|
private ReportWebWidgetConstants() { |
|
|
|
private ReportWebWidgetConstants() { |
|
|
@ -61,25 +55,12 @@ public class ReportWebWidgetConstants { |
|
|
|
return new WidgetOption[]{PAGESETUP, EMAIL, EXPORT, PDF, EXCELP, EXCELO, EXCELS, WORD, NEW_PRINT, PRINT, FLASHPRINT, APPLETPRINT, PDFPRINT, SETPRINTEROFFSET, PRINTPREVIEW, CUSTOM_BUTTON}; |
|
|
|
return new WidgetOption[]{PAGESETUP, EMAIL, EXPORT, PDF, EXCELP, EXCELO, EXCELS, WORD, NEW_PRINT, PRINT, FLASHPRINT, APPLETPRINT, PDFPRINT, SETPRINTEROFFSET, PRINTPREVIEW, CUSTOM_BUTTON}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static WidgetOption[] getPreviewToolBarInstance() { |
|
|
|
|
|
|
|
return new WidgetOption[]{FIRST, PREVIOUS, PAGENAVI, NEXT, LAST, SCALE, EXPORT, PDF, EXCELP, EXCELO, EXCELS, WORD, NEW_PRINT, PRINT, FLASHPRINT, APPLETPRINT, PDFPRINT, |
|
|
|
|
|
|
|
SETPRINTEROFFSET, CUSTOM_BUTTON}; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static WidgetOption[] getWriteToolBarInstance() { |
|
|
|
public static WidgetOption[] getWriteToolBarInstance() { |
|
|
|
return new WidgetOption[]{SUBMIT, VERIFY, EMAIL, EXPORT, PDF, EXCELP, EXCELO, EXCELS, WORD, NEW_PRINT, PRINT, FLASHPRINT, APPLETPRINT, PDFPRINT, IMPORTEXCELDATA, SHOWCELLVALUE, |
|
|
|
return new WidgetOption[]{SUBMIT, VERIFY, EMAIL, EXPORT, PDF, EXCELP, EXCELO, EXCELS, WORD, NEW_PRINT, PRINT, FLASHPRINT, APPLETPRINT, PDFPRINT, IMPORTEXCELDATA, SHOWCELLVALUE, |
|
|
|
APPENDCOLUMNROW, DELETECOLUMNROW, SETPRINTEROFFSET, WRITEOFFLINEHTML, CUSTOM_BUTTON, WRITESTASH, WRITESTASHCLEAR, IMPORTEXCELDATA_CUSTOMIZED, |
|
|
|
APPENDCOLUMNROW, DELETECOLUMNROW, SETPRINTEROFFSET, WRITEOFFLINEHTML, CUSTOM_BUTTON, WRITESTASH, WRITESTASHCLEAR, IMPORTEXCELDATA_CUSTOMIZED, |
|
|
|
IMPORTEXCEL, IMPORTEXCEL_COVER, IMPORTEXCEL_CLEAN, IMPORTEXCEL_APPEND}; |
|
|
|
IMPORTEXCEL, IMPORTEXCEL_COVER, IMPORTEXCEL_CLEAN, IMPORTEXCEL_APPEND}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static WidgetOption[] getFormToolBarInstance() { |
|
|
|
|
|
|
|
return new WidgetOption[]{EMAIL, EXPORT, PDF, EXCELP, EXCELO, EXCELS, WORD, NEW_PRINT, PRINT, FLASHPRINT, APPLETPRINT, PDFPRINT, SETPRINTEROFFSET, CUSTOM_BUTTON}; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 查询
|
|
|
|
|
|
|
|
public static final WidgetOption SEARCH = WidgetOptionFactory.createByWidgetClass(com.fr.design.i18n.Toolkit.i18nTextArray(new String[]{"Query", "Form-Button"}), |
|
|
|
|
|
|
|
BaseUtils.readIcon("/com/fr/web/images/form/resources/preview_16.png"), StableFactory.getMarkedClass(BridgeMark.SUBMIT_BUTTON, Widget.class)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 提交按钮
|
|
|
|
// 提交按钮
|
|
|
|
public static final WidgetOption SUBMIT = WidgetOptionFactory.createByWidgetClass(com.fr.design.i18n.Toolkit.i18nText("FR-Engine_Utils-Submit"), BaseUtils.readIcon("/com/fr/web/images/save.png"), |
|
|
|
public static final WidgetOption SUBMIT = WidgetOptionFactory.createByWidgetClass(com.fr.design.i18n.Toolkit.i18nText("FR-Engine_Utils-Submit"), BaseUtils.readIcon("/com/fr/web/images/save.png"), |
|
|
|
Submit.class); |
|
|
|
Submit.class); |
|
|
@ -96,36 +77,29 @@ public class ReportWebWidgetConstants { |
|
|
|
public static final WidgetOption PDF = WidgetOptionFactory.createByWidgetClass(com.fr.design.i18n.Toolkit.i18nText("FR-Engine_ReportServerP-PDF"), BaseUtils.readIcon("/com/fr/web/images/pdf.png"), |
|
|
|
public static final WidgetOption PDF = WidgetOptionFactory.createByWidgetClass(com.fr.design.i18n.Toolkit.i18nText("FR-Engine_ReportServerP-PDF"), BaseUtils.readIcon("/com/fr/web/images/pdf.png"), |
|
|
|
PDF.class); |
|
|
|
PDF.class); |
|
|
|
|
|
|
|
|
|
|
|
// PDF导出,解决linux下无中文字体的导出字体混乱
|
|
|
|
|
|
|
|
public static final WidgetOption PDF2 = WidgetOptionFactory.createByWidgetClass( |
|
|
|
|
|
|
|
com.fr.design.i18n.Toolkit.i18nTextArray(new String[]{"ReportServerP-PDF", "ReportServerP-PDF2-INFO"}, new String[]{"(", ")"}), BaseUtils.readIcon("/com/fr/web/images/pdf.png"), PDF2.class); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 客户端PDF打印
|
|
|
|
// 客户端PDF打印
|
|
|
|
public static final WidgetOption PDFPRINT = WidgetOptionFactory.createByWidgetClass(com.fr.design.i18n.Toolkit.i18nText("FR-Engine_Utils-Print[Client]"), |
|
|
|
public static final WidgetOption PDFPRINT = WidgetOptionFactory.createByWidgetClass(com.fr.design.i18n.Toolkit.i18nText("FR-Engine_Utils-Print[Client]"), |
|
|
|
BaseUtils.readIcon("/com/fr/web/images/pdfPrint.png"), PDFPrint.class); |
|
|
|
BaseUtils.readIcon("/com/fr/web/images/pdfPrint.png"), PDFPrint.class); |
|
|
|
|
|
|
|
|
|
|
|
// 服务器端打印
|
|
|
|
|
|
|
|
public static final WidgetOption SERVERPRINT = WidgetOptionFactory.createByWidgetClass(com.fr.design.i18n.Toolkit.i18nText("FR-Engine_ReportServerP-Print[Server]"), |
|
|
|
|
|
|
|
BaseUtils.readIcon("/com/fr/web/images/serverPrint.png"), ServerPrint.class); |
|
|
|
|
|
|
|
// 邮件发送
|
|
|
|
// 邮件发送
|
|
|
|
public static final WidgetOption EMAIL = WidgetOptionFactory.createByWidgetClass(com.fr.design.i18n.Toolkit.i18nText("FR-Engine_Email"), BaseUtils.readIcon("/com/fr/web/images/email.png"), Email.class); |
|
|
|
public static final WidgetOption EMAIL = WidgetOptionFactory.createByWidgetClass(com.fr.design.i18n.Toolkit.i18nText("FR-Engine_Email"), BaseUtils.readIcon("/com/fr/web/images/email.png"), Email.class); |
|
|
|
public static final WidgetOption PRINTPREVIEW = WidgetOptionFactory.createByWidgetClass(com.fr.design.i18n.Toolkit.i18nText("PrintP-Print_Preview"), |
|
|
|
public static final WidgetOption PRINTPREVIEW = WidgetOptionFactory.createByWidgetClass(com.fr.design.i18n.Toolkit.i18nText("PrintP-Print_Preview"), |
|
|
|
BaseUtils.readIcon("/com/fr/web/images/preview.png"), PrintPreview.class); |
|
|
|
BaseUtils.readIcon("/com/fr/web/images/preview.png"), PrintPreview.class); |
|
|
|
|
|
|
|
|
|
|
|
public static final WidgetOption EDIT = WidgetOptionFactory.createByWidgetClass("Edit", Edit.class); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 导出成Excel 分页导出
|
|
|
|
// 导出成Excel 分页导出
|
|
|
|
public static final WidgetOption EXCELP = WidgetOptionFactory.createByWidgetClass(com.fr.design.i18n.Toolkit.i18nTextArray(new String[]{"Excel", "FR-Designer_Export_Excel_Page"}, new String[]{"(", ")"}), |
|
|
|
public static final WidgetOption EXCELP = WidgetOptionFactory.createByWidgetClass(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Export_Excel_Page"), |
|
|
|
BaseUtils.readIcon("/com/fr/web/images/excel.png"), ExcelP.class); |
|
|
|
BaseUtils.readIcon("/com/fr/web/images/excel.png"), ExcelP.class); |
|
|
|
// 导出成Excel 原样导出
|
|
|
|
// 导出成Excel 原样导出
|
|
|
|
public static final WidgetOption EXCELO = WidgetOptionFactory.createByWidgetClass(com.fr.design.i18n.Toolkit.i18nTextArray(new String[]{"Excel", "FR-Designer_Export_Excel_Simple"}, new String[]{"(", ")"}), |
|
|
|
public static final WidgetOption EXCELO = WidgetOptionFactory.createByWidgetClass(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Export_Excel_Simple"), |
|
|
|
BaseUtils.readIcon("/com/fr/web/images/excel.png"), ExcelO.class); |
|
|
|
BaseUtils.readIcon("/com/fr/web/images/excel.png"), ExcelO.class); |
|
|
|
// 导出成Excel 分页分Sheet导出
|
|
|
|
// 导出成Excel 分页分Sheet导出
|
|
|
|
public static final WidgetOption EXCELS = WidgetOptionFactory.createByWidgetClass(com.fr.design.i18n.Toolkit.i18nTextArray(new String[]{"Excel", "FR-Designer_Export_Excel_PageToSheet"}, new String[]{"(", ")"}), |
|
|
|
public static final WidgetOption EXCELS = WidgetOptionFactory.createByWidgetClass(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Export_Excel_Page_To_Sheet"), |
|
|
|
BaseUtils.readIcon("/com/fr/web/images/excel.png"), ExcelS.class); |
|
|
|
BaseUtils.readIcon("/com/fr/web/images/excel.png"), ExcelS.class); |
|
|
|
|
|
|
|
|
|
|
|
// 导出成Word
|
|
|
|
// 导出成Word
|
|
|
|
public static final WidgetOption WORD = WidgetOptionFactory.createByWidgetClass(com.fr.design.i18n.Toolkit.i18nText("FR-Engine_Word"), BaseUtils.readIcon("/com/fr/web/images/word.png"), Word.class); |
|
|
|
public static final WidgetOption WORD = WidgetOptionFactory.createByWidgetClass(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Export_Word"), BaseUtils.readIcon("/com/fr/web/images/word.png"), Word.class); |
|
|
|
// 页面设置
|
|
|
|
// 页面设置
|
|
|
|
public static final WidgetOption PAGESETUP = WidgetOptionFactory.createByWidgetClass(com.fr.design.i18n.Toolkit.i18nText("PageSetup-Page_Setup"), BaseUtils.readIcon("/com/fr/web/images/pageSetup.png"), PageSetup.class); |
|
|
|
public static final WidgetOption PAGESETUP = WidgetOptionFactory.createByWidgetClass(com.fr.design.i18n.Toolkit.i18nText("PageSetup-Page_Setup"), BaseUtils.readIcon("/com/fr/web/images/pageSetup.png"), PageSetup.class); |
|
|
|
// 导出
|
|
|
|
// 导出
|
|
|
@ -133,7 +107,7 @@ public class ReportWebWidgetConstants { |
|
|
|
.createByWidgetClass(com.fr.design.i18n.Toolkit.i18nText("FR-Engine_Export"), BaseUtils.readIcon("/com/fr/web/images/export.png"), Export.class); |
|
|
|
.createByWidgetClass(com.fr.design.i18n.Toolkit.i18nText("FR-Engine_Export"), BaseUtils.readIcon("/com/fr/web/images/export.png"), Export.class); |
|
|
|
|
|
|
|
|
|
|
|
// 当前页/总页数
|
|
|
|
// 当前页/总页数
|
|
|
|
public static final WidgetOption PAGENAVI = WidgetOptionFactory.createByWidgetClass(com.fr.design.i18n.Toolkit.i18nTextArray(new String[]{"HJS-Current_Page", "HF-Number_of_Page"}, new String[]{"/", ""}), |
|
|
|
public static final WidgetOption PAGENAVI = WidgetOptionFactory.createByWidgetClass(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Widget_Page_Navi_Text"), |
|
|
|
BaseUtils.readIcon("/com/fr/web/images/pageNumber.png"), PageNavi.class); |
|
|
|
BaseUtils.readIcon("/com/fr/web/images/pageNumber.png"), PageNavi.class); |
|
|
|
// 首页
|
|
|
|
// 首页
|
|
|
|
public static final WidgetOption FIRST = WidgetOptionFactory.createByWidgetClass(com.fr.design.i18n.Toolkit.i18nText("FR-Engine_ReportServerP-First"), BaseUtils.readIcon("/com/fr/web/images/first.png"), |
|
|
|
public static final WidgetOption FIRST = WidgetOptionFactory.createByWidgetClass(com.fr.design.i18n.Toolkit.i18nText("FR-Engine_ReportServerP-First"), BaseUtils.readIcon("/com/fr/web/images/first.png"), |
|
|
|