public class SpreadsheetAppEvent extends EventObject
Modifier and Type | Class and Description |
---|---|
static class |
SpreadsheetAppEvent.Type
The types of events that are fired from a spreadsheet application
|
source
Constructor and Description |
---|
SpreadsheetAppEvent(Object source,
Workbook workbook,
File file,
SpreadsheetAppEvent.Type type)
Creates a new spreadsheet application event,
belonging to a workbook stored in a file.
|
Modifier and Type | Method and Description |
---|---|
File |
getFile()
Returns the file in which the workbook is stored.
|
SpreadsheetAppEvent.Type |
getType()
Returns the type of the event.
|
Workbook |
getWorkbook()
Returns the workbook that was affected by the event.
|
getSource, toString
public SpreadsheetAppEvent(Object source, Workbook workbook, File file, SpreadsheetAppEvent.Type type)
source
- the source of the eventworkbook
- the workbook that was affectedfile
- the file in which the workbook is storedtype
- the type of the eventpublic Workbook getWorkbook()
public File getFile()
public SpreadsheetAppEvent.Type getType()