public class SpreadSheetModelEvent
extends java.util.EventObject
ISpreadSheetModel,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static int |
ALL_COLUMNS
This denotes all columns in the spreadsheet (except the row label column).
|
static int |
ALL_ROWS
This denotes all rows in the spreadsheet (except the column label row).
|
protected int |
col
column affected
|
static int |
COLUMN_LABEL_ROW
This denotes the row denoting the column labels.
|
protected int |
row
row affected
|
static int |
ROW_LABEL_COLUMN
This denotes the column denoting the row labels.
|
| Constructor and Description |
|---|
SpreadSheetModelEvent(ISpreadSheetModel source)
This specifies that all data in the spreadsheet has changed.
|
SpreadSheetModelEvent(ISpreadSheetModel source,
int row,
int col)
This specifies that all data in the given spreadsheet cell has changed.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getColumn()
Returns the column index changed (beginning at 1).
|
int |
getRow()
Returns the row index changed (beginning at 1).
|
public static final int ROW_LABEL_COLUMN
public static final int COLUMN_LABEL_ROW
public static final int ALL_COLUMNS
public static final int ALL_ROWS
protected int row
protected int col
public SpreadSheetModelEvent(ISpreadSheetModel source)
source - the source of the eventpublic SpreadSheetModelEvent(ISpreadSheetModel source, int row, int col)
row - - row index changedcolumn - - column index changedsource - the source of the eventpublic int getRow()
public int getColumn()