Package org.pentaho.reporting.designer.core.model.selection

Examples of org.pentaho.reporting.designer.core.model.selection.ReportSelectionModel


    }
    else if (owner instanceof RootBandRenderComponent)
    {
      final RootBandRenderComponent rc = (RootBandRenderComponent) owner;
      final Section reportElement = rc.getRendererRoot().getElement();
      final ReportSelectionModel selectionModel = getActiveContext().getSelectionModel();
      selectRecursively(selectionModel, reportElement);
      if (reportElement instanceof RootLevelBand)
      {
        final RootLevelBand re = (RootLevelBand) reportElement;
        final int count = re.getSubReportCount();
        for (int i = 0; i < count; i++)
        {
          selectionModel.add(re.getSubReport(i));
        }
      }
    }
  }
View Full Code Here


    }
  }

  public void actionPerformed(final ActionEvent e)
  {
    final ReportSelectionModel selectionModel1 = getSelectionModel();
    if (selectionModel1 == null)
    {
      return;
    }

    final Element[] visualElements = selectionModel1.getSelectedVisualElements();
    if (visualElements.length == 0)
    {
      return;
    }
View Full Code Here

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

  public void actionPerformed(final ActionEvent e)
  {
    final ReportSelectionModel selectionModel1 = getSelectionModel();
    if (selectionModel1 == null)
    {
      return;
    }

    final Element[] visualElements = selectionModel1.getSelectedVisualElements();
    if (visualElements.length == 0)
    {
      return;
    }
View Full Code Here

  /**
   * Invoked when an action occurs.
   */
  public void actionPerformed(final ActionEvent e)
  {
    final ReportSelectionModel model = getSelectionModel();
    if (model == null)
    {
      return;
    }
    final Element[] visualElements = model.getSelectedVisualElements();
    if (visualElements.length <= 1)
    {
      return;
    }

View Full Code Here

    }

    final RootBandRenderComponent rootBandRenderComponent = (RootBandRenderComponent) owner;
    final Band rootBand = rootBandRenderComponent.getRootBand();

    final ReportSelectionModel selectionModel = renderContext.getSelectionModel();
    final Element[] visualElements = selectionModel.getSelectedVisualElements();
    for (int i = 0; i < visualElements.length; i++)
    {
      final Element element = visualElements[i];
      if (element instanceof Band && ModelUtility.isDescendant(rootBand, element))
      {
View Full Code Here

  /**
   * Invoked when an action occurs.
   */
  public void actionPerformed(final ActionEvent e)
  {
    final ReportSelectionModel model = getSelectionModel();
    if (model == null)
    {
      return;
    }
    final Element[] visualElements = model.getSelectedVisualElements();
    if (visualElements.length <= 1)
    {
      return;
    }
    final Element[] carrier = new Element[1];
View Full Code Here

  /**
   * Invoked when an action occurs.
   */
  public void actionPerformed(final ActionEvent e)
  {
    final ReportSelectionModel model = getSelectionModel();
    if (model == null)
    {
      return;
    }
    final Element[] visualElements = model.getSelectedVisualElements();
    if (visualElements.length <= 1)
    {
      return;
    }

View Full Code Here

  protected void updateSelection()
  {
    super.updateSelection();

    final ReportSelectionModel selectionModel = getSelectionModel();
    if (selectionModel == null)
    {
      return;
    }
    final Element[] visualElements = selectionModel.getSelectedVisualElements();

    boolean selected;
    if (visualElements.length == 0)
    {
      selected = false;
View Full Code Here

  /**
   * Invoked when an action occurs.
   */
  public void actionPerformed(final ActionEvent e)
  {
    final ReportSelectionModel selectionModel = getSelectionModel();
    if (selectionModel == null)
    {
      return;
    }
    final Element[] visualElements = selectionModel.getSelectedVisualElements();
    if (visualElements.length == 0)
    {
      return;
    }
    final ReportRenderContext activeContext = getActiveContext();
View Full Code Here

    public void nodeChanged(final ReportModelEvent event)
    {
      if (event.isNodeDeleteEvent())
      {
        final ReportSelectionModel selectionModel = getSelectionModel();
        final AbstractReportDefinition reportDefinition = getReportDefinition();
        final Object element = event.getElement();
        if (element instanceof Element)
        {
          final Element[] selectedElements = selectionModel.getSelectedVisualElements();
          for (int i = 0; i < selectedElements.length; i++)
          {
            final Element selectedElement = selectedElements[i];
            if (ModelUtility.isDescendant(reportDefinition, selectedElement) == false)
            {
              selectionModel.remove(element);
            }
          }
        }
        else
        {
          selectionModel.remove(element);
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.designer.core.model.selection.ReportSelectionModel

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.