Examples of ReportDesignerContext


Examples of org.pentaho.reporting.designer.core.ReportDesignerContext

    return ReportDesignerView.STRUCTURE_VISIBLE_PROPERTY;
  }

  protected boolean recomputeEnabled()
  {
    final ReportDesignerContext reportDesignerContext1 = getReportDesignerContext();
    if (reportDesignerContext1 == null)
    {
      return false;
    }
    setSelected(true);
View Full Code Here

Examples of org.pentaho.reporting.designer.core.ReportDesignerContext

        undo.addChange(Messages.getString("CrosstabReportElementDragHandler.UndoEntry"),
            new ElementEditUndoEntry(parent.getObjectID(), parent.getElementCount(), null, subReport));
        parent.addElement(subReport);
      }

      final ReportDesignerContext designerContext = dragContext.getDesignerContext();
      final Window window = LibSwingUtil.getWindowAncestor(designerContext.getView().getParent());
      final AbstractReportDefinition reportDefinition = designerContext.getActiveContext().getReportDefinition();

      try
      {
        // Create the new subreport tab - this is where the contents of the Crosstab
        // dialog will go.  Zoom the crosstab canvas to 150% as crosstab has a lot of elements to display
        subReport.setDataFactory(reportDefinition.getDataFactory());
        subReport.getReportDefinition().setAttribute(ReportDesignerBoot.DESIGNER_NAMESPACE, ReportDesignerBoot.ZOOM, 1.5f);

        final int idx = designerContext.addSubReport(designerContext.getActiveContext(), subReport);
        designerContext.setActiveDocument(designerContext.getReportRenderContext(idx));
      }
      catch (ReportDataFactoryException e)
      {
        UncaughtExceptionsModel.getInstance().addException(e);
      }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.ReportDesignerContext

{
  private class DefaultExportContext extends AbstractGuiContext
  {
    public Window getWindow()
    {
      final ReportDesignerContext context = getReportDesignerContext();
      if (context == null)
      {
        return null;
      }
      final Component parent = context.getView().getParent();
      return LibSwingUtil.getWindowAncestor(parent);
    }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.ReportDesignerContext

    final ReportDocumentContext activeContext = getActiveContext();
    if (activeContext == null)
    {
      return;
    }
    final ReportDesignerContext context = getReportDesignerContext();
    final Component parent = context.getView().getParent();
    final Window window = LibSwingUtil.getWindowAncestor(parent);
    final DocumentMetaDataDialog dialog;
    if (window instanceof JDialog)
    {
      dialog = new DocumentMetaDataDialog((JDialog) window);
View Full Code Here

Examples of org.pentaho.reporting.designer.core.ReportDesignerContext

    putValue(Action.SELECTED_KEY, selected);
  }

  public void actionPerformed(final ActionEvent e)
  {
    final ReportDesignerContext reportDesignerContext1 = getReportDesignerContext();
    if (reportDesignerContext1 == null)
    {
      return;
    }
    reportDesignerContext1.getView().setPropertiesEditorVisible(
        reportDesignerContext1.getView().isPropertiesEditorVisible() == false);
  }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.ReportDesignerContext

    return ReportDesignerView.STRUCTURE_VISIBLE_PROPERTY;
  }

  protected boolean recomputeEnabled()
  {
    final ReportDesignerContext reportDesignerContext1 = getReportDesignerContext();
    if (reportDesignerContext1 == null)
    {
      return false;
    }
    setSelected(true);
View Full Code Here

Examples of org.pentaho.reporting.designer.core.ReportDesignerContext

  {
  }

  protected boolean recomputeEnabled()
  {
    final ReportDesignerContext context = getReportDesignerContext();
    if (context == null)
    {
      return false;
    }
    return (context.getReportRenderContextCount() > 0);
  }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.ReportDesignerContext

    return (CrosstabGroup) selectedElement;
  }

  protected CreateCrosstabDialog createDialog()
  {
    final ReportDesignerContext context = getReportDesignerContext();
    final Component parent = context.getView().getParent();
    final Window window = LibSwingUtil.getWindowAncestor(parent);
    final CreateCrosstabDialog dialog;
    if (window instanceof JDialog)
    {
      dialog = new CreateCrosstabDialog((JDialog) window);
View Full Code Here

Examples of org.pentaho.reporting.designer.core.ReportDesignerContext

  /**
   * Invoked when an action occurs.
   */
  public void actionPerformed(final ActionEvent e)
  {
    final ReportDesignerContext context = getReportDesignerContext();
    final int index = context.findActiveContextIndex();
    if (index > 0)
    {
      context.setActiveDocument(context.getReportRenderContext(index - 1));
    }
  }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.ReportDesignerContext

    else
    {
      return;
    }

    ReportDesignerContext context = getReportDesignerContext();
    final Component parent = context.getView().getParent();
    final Window window = LibSwingUtil.getWindowAncestor(parent);
    final CreateTableDialog dialog;
    if (window instanceof JDialog)
    {
      dialog = new CreateTableDialog((JDialog) window);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.