Package quadbase.reportdesigner.util
Class SpreadSheetModelEvent
java.lang.Object
java.util.EventObject
quadbase.reportdesigner.util.SpreadSheetModelEvent
- All Implemented Interfaces:
Serializable
This event specifies that a cell values in a SpreadSheetModel have been modified.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThis denotes all columns in the spreadsheet (except the row label column).static final intThis denotes all rows in the spreadsheet (except the column label row).protected intcolumn affectedstatic final intThis denotes the row denoting the column labels.protected introw affectedstatic final intThis denotes the column denoting the row labels.Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionThis 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. -
Method Summary
Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
ROW_LABEL_COLUMN
public static final int ROW_LABEL_COLUMNThis denotes the column denoting the row labels.- See Also:
-
COLUMN_LABEL_ROW
public static final int COLUMN_LABEL_ROWThis denotes the row denoting the column labels.- See Also:
-
ALL_COLUMNS
public static final int ALL_COLUMNSThis denotes all columns in the spreadsheet (except the row label column).- See Also:
-
ALL_ROWS
public static final int ALL_ROWSThis denotes all rows in the spreadsheet (except the column label row).- See Also:
-
row
protected int rowrow affected -
col
protected int colcolumn affected
-
-
Constructor Details
-
SpreadSheetModelEvent
This specifies that all data in the spreadsheet has changed. Listeners should discard any state that was based on the rows and requery the model to get the new row and column counts and all the values.- Parameters:
source- the source of the event
-
SpreadSheetModelEvent
This specifies that all data in the given spreadsheet cell has changed. If a row or column label has changed, use ROW_LABEL_COLUMN or COLUMN_LABEL_ROW to denote it. To specify that all the rows (or columns) have changed, use ALL_ROWS (or ALL_COLUMNS).- Parameters:
source- the source of the eventrow- - row index changedcolumn- - column index changed
-
-
Method Details
-
getRow
public int getRow()Returns the row index changed (beginning at 1). If a label has changed, it returns COLUMN_LABEL_ROW. If all the rows have changed, it returns ALL_ROWS. -
getColumn
public int getColumn()Returns the column index changed (beginning at 1). If label has changed, it returns ROW_LABEL_COLUMN. If all the rows have changed, it returns ALL_COLUMNS.
-