コード例 #1
0
 /** Confirmation Dialog before reseting Config data. */
 public void openConfirmationDialog() {
   imageViewerConfirmationDialog =
       new ConfirmationDialog(
           DialogContentType.WARNING,
           DialogActionType.YES_NO,
           DialogType.NORMAL,
           DialogStyle.COMPACT,
           this);
   MessagePropertiesBean propsBean = MessagePropertiesBean.getInstance();
   imageViewerConfirmationDialog.setTitle(
       propsBean.getString("common.configurationPanel.confirmResetTitle"));
   imageViewerConfirmationDialog.setMessage(
       propsBean.getParamString(
           "common.configurationPanel.confirmReset",
           MessagesViewsCommonBean.getInstance().getString("views.imageViewerConfig.labelTitle")));
   imageViewerConfirmationDialog.openPopup();
 }
コード例 #2
0
  /**
   * @param dataTable
   * @param dataTableExportHandler
   */
  public ExcelDataTableExporter(
      DataTable<T> dataTable, DataTableExportHandler<T> dataTableExportHandler) {
    super(
        DataTableExportHelper.getExportFilePath(ExportType.EXCEL),
        FacesContext.getCurrentInstance(),
        MessagePropertiesBean.getInstance()
            .getString("common.genericDataTable.exportExcelWosheetName"));

    dataTableExportHelper =
        new DataTableExportHelper<T>(dataTable, dataTableExportHandler, ExportType.EXCEL);
  }