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
-
SHEET_INSERTED
- The id for the SHEET_INSERTED type of event.
-
SHEET_REMOVED
- The id for the SHEET_REMOVED type of event.
-
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.
-
getId()
- Returns an id indicating the type of event.
-
getSheetName()
- Returns the name of the sheet concerned with this event.
-
getWorkbookName()
- Returns the name of the affected workbook.
SHEET_INSERTED
public static final int SHEET_INSERTED
- The id for the SHEET_INSERTED type of event.
SHEET_REMOVED
public static final int SHEET_REMOVED
- The id for the SHEET_REMOVED type of event.
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.
getId
public int getId()
- Returns an id indicating the type of event.
- Returns:
- The id indicating the type of event.
getSheetName
public String getSheetName()
- Returns the name of the sheet concerned with this event.
- Returns:
- The name of the sheet concerned with this event.
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