Package org.pentaho.reporting.engine.classic.core

Examples of org.pentaho.reporting.engine.classic.core.AbstractReportDefinition


      {
        setModel(EMPTY_MODEL);
        return;
      }

      final AbstractReportDefinition report = this.renderContext.getReportDefinition();
      final AbstractReportDataTreeModel model;
      if (report instanceof MasterReport)
      {
        model = new MasterReportDataTreeModel(renderContext);
      }
View Full Code Here


      this.context.setTabName(computeTabName(this.context.getReportDefinition()));
    }

    public void nodeChanged(final ReportModelEvent event)
    {
      AbstractReportDefinition report = context.getReportDefinition();
      if (event.getElement() == report &&
          event.getType() == ReportModelEvent.NODE_PROPERTIES_CHANGED)
      {
        context.setTabName(computeTabName(report));
      }
View Full Code Here

    public void nodeChanged(final ReportModelEvent event)
    {
      if (event.isNodeDeleteEvent())
      {
        final DocumentContextSelectionModel selectionModel = getSelectionModel();
        final AbstractReportDefinition reportDefinition = getReportDefinition();
        final Object element = event.getElement();
        if (element instanceof Element)
        {
          final List<Element> selectedElements = selectionModel.getSelectedElementsOfType(Element.class);
          for (final Element selectedElement : selectedElements)
View Full Code Here

    return backend.removeAll(age);
  }

  public static HorizontalPositionsModel getHorizontalPositionsModel(final ReportRenderContext reportContext)
  {
    final AbstractReportDefinition rootBand = reportContext.getReportDefinition();
    final Object maybeLinealModel = rootBand.getAttribute(ReportDesignerParserModule.NAMESPACE,
        ReportDesignerBoot.DESIGNER_POSITIONS_MODEL_OBJECT);
    if (maybeLinealModel instanceof HorizontalPositionsModel)
    {
      return (HorizontalPositionsModel) maybeLinealModel;
    }

    final HorizontalPositionsModel linealModel = new HorizontalPositionsModel();
    rootBand.setAttribute(ReportDesignerParserModule.NAMESPACE,
        ReportDesignerBoot.DESIGNER_POSITIONS_MODEL_OBJECT, linealModel, false);
    return linealModel;
  }
View Full Code Here

    if (reportContext == null)
    {
      return new String[0];
    }

    AbstractReportDefinition definition = reportContext.getReportDefinition();
    final LinkedHashSet<String> names = new LinkedHashSet<String>();
    while (definition != null)
    {
      final CompoundDataFactory dataFactoryElement = (CompoundDataFactory) definition.getDataFactory();
      final int dataFactoryCount = dataFactoryElement.size();
      for (int i = 0; i < dataFactoryCount; i++)
      {
        final DataFactory dataFactory = dataFactoryElement.getReference(i);
        final String[] queryNames = dataFactory.getQueryNames();
        names.addAll(Arrays.asList(queryNames));
      }
      if (definition instanceof SubReport)
      {
        final Section parentSection = definition.getParentSection();
        definition = (AbstractReportDefinition) parentSection.getReportDefinition();
      }
      else
      {
        definition = null;
View Full Code Here

  public void inspect(final ReportDesignerContext designerContext,
                      final ReportDocumentContext reportRenderContext,
                      final InspectionResultListener resultHandler) throws ReportDataFactoryException
  {
    final AbstractReportDefinition abstractReportDefinition = reportRenderContext.getReportDefinition();
    if (abstractReportDefinition instanceof MasterReport == false)
    {
      return;
    }
View Full Code Here

    {
      this.linealModel.removeLinealModelListener(linealModelListener);
    }

    this.pageDefinition = renderContext.getContextRoot().getPageDefinition();
    final AbstractReportDefinition abstractReportDefinition = this.renderContext.getReportDefinition();
    this.linealModel = ModelUtility.getHorizontalLinealModel(abstractReportDefinition);
    this.linealModel.addLinealModelListener(linealModelListener);
    revalidate();
    repaint();
  }
View Full Code Here

    return null;
  }

  private boolean isSelectedDataSource(final ReportQueryNode queryNode)
  {
    AbstractReportDefinition reportDefinition = context.getReportDefinition();
    return DesignTimeUtil.isSelectedDataSource(reportDefinition, queryNode.getDataFactory(), queryNode.getQueryName());
  }
View Full Code Here

  public static void performUnconditionalClose(final ReportDesignerContext context,
                                               final ReportDocumentContext activeContext)
  {
    final int contextCount = context.getReportRenderContextCount();

    final AbstractReportDefinition reportDefinition = activeContext.getReportDefinition();
    if (reportDefinition instanceof MasterReport)
    {
      for (int i = contextCount - 1; i >= 0; i--)
      {
        final ReportRenderContext reportRenderContext = context.getReportRenderContext(i);
View Full Code Here

    if (isSingleElementSelection() == false)
    {
      return null;
    }

    final AbstractReportDefinition reportDefinition = getActiveContext().getReportDefinition();
    final GroupDataEntry[] entries = EditGroupsUndoEntry.buildGroupData(reportDefinition);
    final ArrayList<GroupDataEntry> list = new ArrayList<GroupDataEntry>(entries.length);
    int index = -1;
    for (int i = 0; i < entries.length; i++)
    {
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.AbstractReportDefinition

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.