/*
 * ReportListenerElementsSelectionEvent.java
 *
 * Created on 17 giugno 2003, 1.12
 */

package it.businesslogic.ireport.gui.event;
import it.businesslogic.ireport.CrosstabReportElement;
import it.businesslogic.ireport.gui.*;
/**
 * Save all info required by a ReportListenerElementsSelectionEvent
 * Return the vector of selected elements (taked by the JReportFrame...)
 * @author  Administrator
 */
public class ReportElementsSelectionEvent {
    
    private JReportFrame jReportFrame;
    private CrosstabReportElement crosstabReportElement = null;
    
    java.util.Vector selectedElements;
    /** Creates a new instance of ReportListenerElementsSelectionEvent */
    public ReportElementsSelectionEvent(JReportFrame jReportFrame, java.util.Vector selectedElements) {
        this.jReportFrame = jReportFrame;
        this.selectedElements = selectedElements;
    }
    
    public ReportElementsSelectionEvent(JReportFrame jReportFrame, CrosstabReportElement crosstabReportElement, java.util.Vector selectedElements) {
        this.jReportFrame = jReportFrame;
        this.crosstabReportElement = crosstabReportElement;
        this.selectedElements = selectedElements;
    }
    
    /** Getter for property selectedElements.
     * @return Value of property selectedElements.
     *
     */
    public java.util.Vector getSelectedElements() {
        return selectedElements;
    }
    
    /** Setter for property selectedElements.
     * @param selectedElements New value of property selectedElements.
     *
     */
    public void setSelectedElements(java.util.Vector selectedElements) {
        this.selectedElements = selectedElements;
    }

    public CrosstabReportElement getCrosstabReportElement() {
        return crosstabReportElement;
    }

    public void setCrosstabReportElement(CrosstabReportElement crosstabReportElement) {
        this.crosstabReportElement = crosstabReportElement;
    }
    
}
