All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.excelaccessor.event.ExcelSheetEvent

java.lang.Object
   |
   +----java.util.EventObject
           |
           +----com.ibm.excelaccessor.event.ExcelSheetEvent

public class ExcelSheetEvent
extends EventObject
This event is fired to signal the insertion or removal of a worksheet from an Excel file.

See Also:
EventObject, ExcelSheetListener

Variable Index

 o SHEET_INSERTED
The id for the SHEET_INSERTED type of event.
 o SHEET_REMOVED
The id for the SHEET_REMOVED type of event.

Constructor Index

 o ExcelSheetEvent(Object, int, String, String)
Constructs an ExcelSheetEvent object with the specified source object, the name of the concerned sheet and the name of the affected workbook.

Method Index

 o getId()
Returns an id indicating the type of event.
 o getSheetName()
Returns the name of the sheet concerned with this event.
 o getWorkbookName()
Returns the name of the affected workbook.

Variables

 o SHEET_INSERTED
 public static final int SHEET_INSERTED
The id for the SHEET_INSERTED type of event.

 o SHEET_REMOVED
 public static final int SHEET_REMOVED
The id for the SHEET_REMOVED type of event.

Constructors

 o ExcelSheetEvent
 public ExcelSheetEvent(Object source,
                        int id,
                        String sheetName,
                        String workbookName)
Constructs an ExcelSheetEvent object with the specified source object, the name of the concerned sheet and the name of the affected workbook.

Parameters:
source - The object where the event originated.
id - The id indicating the type of event.
sheetName - The name of the sheet concerned.
workbookName - The name of the workbook affected.

Methods

 o getId
 public int getId()
Returns an id indicating the type of event.

Returns:
The id indicating the type of event.
 o getSheetName
 public String getSheetName()
Returns the name of the sheet concerned with this event.

Returns:
The name of the sheet concerned with this event.
 o getWorkbookName
 public String getWorkbookName()
Returns the name of the affected workbook.

Returns:
The name of the affected workbook.

All Packages  Class Hierarchy  This Package  Previous  Next  Index