|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
csheets.ui.ctrl.SelectionEvent
public class SelectionEvent
A selection application event is used to notify interested parties that a new active workbook, spreadsheet and/or cell is selected.
| Field Summary |
|---|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
SelectionEvent(Object source,
Workbook workbook,
Spreadsheet spreadsheet,
Cell cell,
Workbook prevWorkbook,
Spreadsheet prevSpreadsheet,
Cell prevCell)
Creates a new selection event. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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 cell| Method Detail |
|---|
public Workbook getWorkbook()
public Spreadsheet getSpreadsheet()
public Cell getCell()
public Workbook getPreviousWorkbook()
public Spreadsheet getPreviousSpreadsheet()
public Cell getPreviousCell()
public boolean isWorkbookChanged()
public boolean isSpreadsheetChanged()
public boolean isCellChanged()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||