public class SelectionEvent extends EventObject
source
Constructor and Description |
---|
SelectionEvent(Object source,
Workbook workbook,
Spreadsheet spreadsheet,
Cell cell,
Workbook prevWorkbook,
Spreadsheet prevSpreadsheet,
Cell prevCell)
Creates a new selection event.
|
Modifier and Type | Method and Description |
---|---|
Cell |
getCell()
Returns the active cell.
|
Cell |
getPreviousCell()
Returns the previous active cell.
|
Spreadsheet |
getPreviousSpreadsheet()
Returns the previous active spreadsheet.
|
Workbook |
getPreviousWorkbook()
Returns the previous active workbook.
|
Spreadsheet |
getSpreadsheet()
Returns the active spreadsheet.
|
Workbook |
getWorkbook()
Returns the active workbook.
|
boolean |
isCellChanged()
Returns whether the event was caused by the active cell being changed
|
boolean |
isSpreadsheetChanged()
Returns whether the event was caused by the active spreadsheet being changed
|
boolean |
isWorkbookChanged()
Returns whether the event was caused by the active workbook being changed
|
getSource, toString
public SelectionEvent(Object source, Workbook workbook, Spreadsheet spreadsheet, Cell cell, Workbook prevWorkbook, Spreadsheet prevSpreadsheet, Cell prevCell)
source
- the source of the eventworkbook
- the active workbookspreadsheet
- the active spreadsheetcell
- the active cellprevWorkbook
- the previous active workbook (or the same as the new one if it didn't change)prevSpreadsheet
- the previous active spreadsheet (or the same as the new one if it didn't change)prevCell
- the previous active cellpublic Workbook getWorkbook()
public Spreadsheet getSpreadsheet()
public Workbook getPreviousWorkbook()
public Spreadsheet getPreviousSpreadsheet()
public Cell getPreviousCell()
public boolean isWorkbookChanged()
public boolean isSpreadsheetChanged()
public boolean isCellChanged()