Package org.pentaho.reporting.designer.core

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


      }
    }

    public void settingsChanged()
    {
      final ReportDesignerContext designerContext = getReportDesignerContext();
      final ReportRenderContext activeContext = designerContext.getActiveContext();
      if (activeContext == null)
      {
        return;
      }
      final ReportDataSchemaModel model = activeContext.getReportDataSchemaModel();
View Full Code Here


  }

  public Component getElementCellEditorComponent(final ReportElementEditorContext rootBandRenderComponent,
                                                 final ReportElement value)
  {
    final ReportDesignerContext context = rootBandRenderComponent.getDesignerContext();
    final int contextCount = context.getReportRenderContextCount();
    for (int i = 0; i < contextCount; i++)
    {
      final ReportRenderContext rrc = context.getReportRenderContext(i);
      if (rrc.getReportDefinition() == value)
      {
        context.setActiveContext(rrc);
        return null;
      }
    }

    final SubReport report = (SubReport) value;
    try
    {
      context.addSubReport(rootBandRenderComponent.getRenderContext(), report);
    }
    catch (ReportDataFactoryException e1)
    {
      UncaughtExceptionsModel.getInstance().addException(e1);
    }
View Full Code Here

    putValue(Action.ACCELERATOR_KEY, ActionMessages.getOptionalKeyStroke("ToggleInspectionsToolWindowAction.Accelerator"));
  }

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

    return ReportDesignerView.MESSAGES_VISIBLE_PROPERTY;
  }

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

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

    if (activeContext == null)
    {
      return;
    }

    final ReportDesignerContext context = getReportDesignerContext();
    final Component parent = context.getParent();
    final Window window = SwingUtil.getWindowAncestor(parent);
    final EditGroupsDialog dialog;
    if (window instanceof JDialog)
    {
      dialog = new EditGroupsDialog((JDialog) window);
View Full Code Here

    putValue(Action.SMALL_ICON, IconLoader.getInstance().getGenericSquareDisabled());
  }
 
  public void actionPerformed(final ActionEvent e)
  {
    final ReportDesignerContext reportDesignerContext1 = getReportDesignerContext();
    if (reportDesignerContext1 == null)
    {
      return;
    }
    reportDesignerContext1.getView().setStructureVisible(
        reportDesignerContext1.getView().isStructureVisible() == false);
  }
View Full Code Here

    return ReportDesignerView.STRUCTURE_VISIBLE_PROPERTY;
  }

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

  /**
   * Invoked when an action occurs.
   */
  public void actionPerformed(final ActionEvent e)
  {
    final ReportDesignerContext reportDesignerContext1 = getReportDesignerContext();
    if (tabIndex == -1)
    {
      final ReportRenderContext activeContext = getActiveContext();
      if (activeContext == null)
      {
        return;
      }

      performCloseReport(reportDesignerContext1, activeContext);
    }
    else
    {
      if (tabIndex >= 0 && tabIndex < reportDesignerContext1.getReportRenderContextCount())
      {
        final ReportRenderContext context = reportDesignerContext1.getReportRenderContext(tabIndex);
        performCloseReport(reportDesignerContext1, context);
      }
    }
  }
View Full Code Here

    if (activeContext == null)
    {
      return;
    }

    final ReportDesignerContext context = getReportDesignerContext();
    final Component parent = context.getParent();
    final Window window = SwingUtil.getWindowAncestor(parent);
    final RowBandingDialog dialog;
    if (window instanceof JDialog)
    {
      dialog = new RowBandingDialog((JDialog) window);
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.designer.core.ReportDesignerContext

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.