Package org.pentaho.reporting.libraries.designtime.swing.background

Examples of org.pentaho.reporting.libraries.designtime.swing.background.DataPreviewDialog


    {
      try
      {
        final ScriptableDataFactory dataFactory = produceFactory();
        DataFactoryEditorSupport.configureDataFactoryForPreview(dataFactory, designTimeContext);
        final DataPreviewDialog previewDialog = new DataPreviewDialog(ScriptableDataSourceEditor.this);

        final ScriptablePreviewWorker worker = new ScriptablePreviewWorker(dataFactory, queryNameTextField.getText());
        previewDialog.showData(worker);

        final ReportDataFactoryException factoryException = worker.getException();
        if (factoryException != null)
        {
          ExceptionDialog.showExceptionDialog(ScriptableDataSourceEditor.this,
View Full Code Here


        {
          theMaxRows = (Integer) maxPreviewRowsSpinner.getValue();
        }
        if (previewDialog == null)
        {
          previewDialog = new DataPreviewDialog(MondrianDataSourceEditor.this);
        }

        final AbstractMDXDataFactory dataFactory = createDataFactory();
        DataFactoryEditorSupport.configureDataFactoryForPreview(dataFactory, context);
View Full Code Here

    public void actionPerformed(final ActionEvent aEvt)
    {
      try
      {
        final String query = queryNameTextField.getText();
        final DataPreviewDialog previewDialog = new DataPreviewDialog(XPathDataSourceEditor.this);
        final XPathDataFactory dataFactory = produceFactory();
        DataFactoryEditorSupport.configureDataFactoryForPreview(dataFactory, designTimeContext);

        final XPathPreviewWorker worker = new XPathPreviewWorker(dataFactory, query);
        previewDialog.showData(worker);

        final ReportDataFactoryException factoryException = worker.getException();
        if (factoryException != null)
        {
          ExceptionDialog.showExceptionDialog(XPathDataSourceEditor.this,
View Full Code Here

      try
      {
        final OpenERPDataFactory dataFactory = produceDataFactory();
        DataFactoryEditorSupport.configureDataFactoryForPreview(dataFactory, context);

        final DataPreviewDialog previewDialog = new DataPreviewDialog(OpenERPDataSourceEditor.this);

        final OpenERPPreviewWorker worker = new OpenERPPreviewWorker(dataFactory, txtQueryName.getText());
        previewDialog.showData(worker);

        final ReportDataFactoryException factoryException = worker.getException();
        if (factoryException != null)
        {
          ExceptionDialog.showExceptionDialog(OpenERPDataSourceEditor.this, "Error",
View Full Code Here

    public void actionPerformed(final ActionEvent arg0)
    {
      try
      {
        final String query = getQuery();
        final DataPreviewDialog dialog = new DataPreviewDialog(JdbcQueryDesignerDialog.this);
        dialog.showData(new JdbcPreviewWorker(new SimpleSQLReportDataFactory(getConnectionDefinition()), query, 0, 0));
      }
      catch (Exception e)
      {
        log.warn("QueryPanel.actionPerformed ", e);
        if (designTimeContext != null)
View Full Code Here

    public void actionPerformed(final ActionEvent evt)
    {
      try
      {
        final DataPreviewDialog previewDialog = new DataPreviewDialog(PmdDataSourceEditor.this);
        final String query = queryNameTextField.getText();
        Integer theMaxRows = 0;
        if (maxPreviewRowsSpinner.isEnabled())
        {
          theMaxRows = (Integer) maxPreviewRowsSpinner.getValue();
        }

        final PmdDataFactory dataFactory = createDataFactory();
        DataFactoryEditorSupport.configureDataFactoryForPreview(dataFactory, context);

        final PmdPreviewWorker worker = new PmdPreviewWorker(dataFactory, query, 0, theMaxRows);
        previewDialog.showData(worker);

        final ReportDataFactoryException factoryException = worker.getException();
        if (factoryException != null)
        {
          ExceptionDialog.showExceptionDialog(PmdDataSourceEditor.this,
View Full Code Here

    public void actionPerformed(final ActionEvent aEvt)
    {
      try
      {
        final String query = queryTextArea.getText();
        final DataPreviewDialog previewDialog = new DataPreviewDialog(ReflectionDataSourceEditor.this);
        final ReflectionPreviewWorker worker = new ReflectionPreviewWorker(query);
        previewDialog.showData(worker);

        final ReportDataFactoryException factoryException = worker.getException();
        if (factoryException != null)
        {
          ExceptionDialog.showExceptionDialog(ReflectionDataSourceEditor.this,
View Full Code Here

      }

      try
      {
        final String query = getQueryName();
        final DataPreviewDialog dialog = new DataPreviewDialog(JdbcDataSourceDialog.this);
        Integer maxRows = 0;
        if (maxPreviewRowsSpinner.isEnabled())
        {
          maxRows = (Integer) maxPreviewRowsSpinner.getValue();
        }
        if (maxRows == null)
        {
          maxRows = 0;
        }
        final SQLReportDataFactory dataFactory = createDataFactory(connectionDefinition);
        DataFactoryEditorSupport.configureDataFactoryForPreview(dataFactory, designTimeContext);
        final JdbcPreviewWorker previewWorker = new JdbcPreviewWorker(dataFactory, query, 0, maxRows);
        dialog.showData(previewWorker);

        final ReportDataFactoryException theException = previewWorker.getException();
        if (theException != null)
        {
          ExceptionDialog.showExceptionDialog(JdbcDataSourceDialog.this,
View Full Code Here

      try
      {
        final CdaDataFactory dataFactory = produceDataFactory();
        DataFactoryEditorSupport.configureDataFactoryForPreview(dataFactory, designTimeContext);

        final DataPreviewDialog previewDialog = new DataPreviewDialog(CdaDataSourceEditor.this);

        final CdaPreviewWorker worker = new CdaPreviewWorker(dataFactory, queriesTableModel.getName(selectedRow));
        previewDialog.showData(worker);

        final ReportDataFactoryException factoryException = worker.getException();
        if (factoryException != null)
        {
          ExceptionDialog.showExceptionDialog(CdaDataSourceEditor.this,
View Full Code Here

        {
          theMaxRows = (Integer) maxPreviewRowsSpinner.getValue();
        }
        if (previewDialog == null)
        {
          previewDialog = new DataPreviewDialog(Olap4JDataSourceEditor.this);
        }

        final AbstractMDXDataFactory dataFactory = createDataFactory();
        DataFactoryEditorSupport.configureDataFactoryForPreview(dataFactory, context);
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.designtime.swing.background.DataPreviewDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.