csheets
Class SpreadsheetAppEvent
java.lang.Object
java.util.EventObject
csheets.SpreadsheetAppEvent
- All Implemented Interfaces:
- Serializable
public class SpreadsheetAppEvent
- extends EventObject
A spreadsheet application event is used to notify interested parties that
a workbook has been created, loaded or stored. The event provides
information about the workbook in which the event occurred, and about
the file in which it is stored, if any.
- Author:
- Einar Pehrson
- See Also:
- Serialized Form
|
Nested Class Summary |
static class |
SpreadsheetAppEvent.Type
The types of events that are fired from a spreadsheet application |
SpreadsheetAppEvent
public SpreadsheetAppEvent(Object source,
Workbook workbook,
File file,
SpreadsheetAppEvent.Type type)
- Creates a new spreadsheet application event,
belonging to a workbook stored in a file.
- Parameters:
source - the source of the eventworkbook - the workbook that was affectedfile - the file in which the workbook is storedtype - the type of the event
getWorkbook
public Workbook getWorkbook()
- Returns the workbook that was affected by the event.
- Returns:
- the affected workbook
getFile
public File getFile()
- Returns the file in which the workbook is stored.
- Returns:
- the file in which the workbook is stored
getType
public SpreadsheetAppEvent.Type getType()
- Returns the type of the event.
- Returns:
- the type of the event