All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.jett.event.SheetEvent Maven / Gradle / Ivy

Go to download

JETT is a Java API that reads an Excel spreadsheet as a template, takes your data, and creates a new Excel spreadsheet that contains your data, formatted as in the template. It works with .xls and .xlsx template spreadsheets.

The newest version!
package net.sf.jett.event;

import java.util.Map;

import org.apache.poi.ss.usermodel.Sheet;

/**
 * A SheetEvent represents data associated with a "sheet
 * processed" event.  It contains a reference to the Sheet that
 * was processed and the Map of bean names and values used to process
 * it.
 *
 * @author Randy Gettman
 * @since 0.8.0
 */
public class SheetEvent
{
    private Sheet mySheet;
    private Map myBeans;

    /**
     * Creates a SheetEvent.
     * @param sheet The Sheet that was processed.
     * @param beans The Map of bean names and values that was used
     *    to process cell.
     */
    public SheetEvent(Sheet sheet, Map beans)
    {
        mySheet = sheet;
        myBeans = beans;
    }

    /**
     * Returns the Sheet that was processed.
     * @return The Sheet that was processed.
     */
    public Sheet getSheet()
    {
        return mySheet;
    }

    /**
     * Returns the Map of bean names and values that was used to
     * process the Sheet.
     * @return The Map of bean names and values.
     */
    public Map getBeans()
    {
        return myBeans;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy