com.sas.table
Class DataCellChangedEvent

com.sas.table.DataCellChangedEvent
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class DataCellChangedEvent

Reports a change to a table's data cell(s).

An object that represents a table should create this event whenever a data cell, or a contiguous range of data cells, has been changed, and send it to all registered listeners for ContentsChangedEvent.

See Also:
ContentsChangedSource, ColumnLabelChangedEvent, RowLabelChangedEvent, Serialized Form

Field Summary
 int colCount
          The number of columns spanned by the cell range.
 int colIndex
          The one-based identifier of the column that contains the first (or only) changed cell.
 int rowCount
          The number of rows spanned by the cell range.
 int rowIndex
          The one-based identifier of the row that contains the first (or only) changed cell.
 
Constructor Summary
DataCellChangedEvent(java.lang.Object source, int rowIndex, int colIndex, int rowCount, int colCount)
          Constructs an event to signal a change to a range of data cells.
 

Field Detail

colIndex

public final int colIndex
The one-based identifier of the column that contains the first (or only) changed cell.


rowIndex

public final int rowIndex
The one-based identifier of the row that contains the first (or only) changed cell.


colCount

public final int colCount
The number of columns spanned by the cell range.


rowCount

public final int rowCount
The number of rows spanned by the cell range.

Constructor Detail

DataCellChangedEvent

public DataCellChangedEvent(java.lang.Object source,
                            int rowIndex,
                            int colIndex,
                            int rowCount,
                            int colCount)
Constructs an event to signal a change to a range of data cells. Cells (colIndex, rowIndex) through (colIndex+colCount-1, rowIndex+rowCount-1) will be considered changed.

Parameters:
source - The table model whose data cell(s) has changed.
rowIndex - The one-based identifier of the row that contains the first (or only) changed cell.
colIndex - The one-based identifier of the column that contains the first (or only) changed cell.
rowCount - The number of rows that contain changed cells.
colCount - The number of columns that contain changed cells.



Copyright © 2009 SAS Institute Inc. All Rights Reserved.