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

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


    }
  }

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

    if (selectionModel.getSelectionCount() != 1)
    {
      return;
    }
    final Object selectedElement = selectionModel.getSelectedElement(0);
    if (selectedElement instanceof Element == false || selectedElement instanceof Section)
    {
      return;
    }
    final Element chartElement = (Element) selectedElement;
View Full Code Here


    if (activeContext == null)
    {
      return;
    }

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

    if (activeReportContext == null)
    {
      return;
    }

    final ReportSelectionModel selectionModel1 = getSelectionModel();
    if (selectionModel1 == null)
    {
      return;
    }
    final Object leadSelection = selectionModel1.getLeadSelection();
    if (leadSelection instanceof Element == false)
    {
      return;
    }
View Full Code Here

    if (activeReportContext == null)
    {
      return;
    }

    final ReportSelectionModel selectionModel1 = getSelectionModel();
    if (selectionModel1 == null)
    {
      return;
    }
    final Object leadSelection = selectionModel1.getLeadSelection();
    if (leadSelection instanceof Element == false)
    {
      return;
    }
View Full Code Here

    firePropertyChange(ToggleStateAction.SELECTED, oldSelected, selected);
  }

  protected void updateSelection()
  {
    final ReportSelectionModel reportSelectionModel = getSelectionModel();
    if (reportSelectionModel == null)
    {
      setEnabled(false);
      return;
    }


    final Object[] selectedElements = reportSelectionModel.getSelectedElements();
    for (int i = 0; i < selectedElements.length; i++)
    {
      final Object selectedElement = selectedElements[i];
      if (selectedElement instanceof ReportQueryNode)
      {
View Full Code Here

    setEnabled(false);
  }

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

    final Object[] selectedElements = reportSelectionModel.getSelectedElements();
    for (int i = 0; i < selectedElements.length; i++)
    {
      final Object selectedElement = selectedElements[i];
      if (selectedElement instanceof ReportQueryNode)
      {
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 <= 2)
    {
      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 <= 2)
    {
      return;
    }

View Full Code Here

    if (activeContext == null)
    {
      return;
    }

    final ReportSelectionModel selectionModel = activeContext.getSelectionModel();
    final Object[] selectedElements = selectionModel.getSelectedElements();
    if (isParameter())
    {
      final String theTitle = ActionMessages.getString("DeleteAction.Warning");
      final String theDeleteMessage = ActionMessages.getString("DeleteAction.Confirmation");
      final Component theParent = getReportDesignerContext().getParent();
View Full Code Here

    }
  }

  private boolean isParameter()
  {
    final ReportSelectionModel selectionModel = getActiveContext().getSelectionModel();
    final Object[] selectedElements = selectionModel.getSelectedElements();
    for (int i = 0; i < selectedElements.length; i++)
    {
      if (selectedElements[i] instanceof ParameterDefinitionEntry)
      {
        return true;
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.