com.sas.table
Class CellVectorChangedEvent

com.sas.table.CellVectorChangedEvent
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
ColumnChangedEvent, RowChangedEvent

public abstract class CellVectorChangedEvent

Defines an abstract base class for reporting changes to table columns and rows.

See Also:
ColumnChangedEvent, RowChangedEvent, Serialized Form

Field Summary
static int ADDED
          howChanged constant which indicates that cell vectors have been added to the table.
static int ALL_REPLACED
          howChanged constant which indicates that an entire set of cell vectors has been completely replaced by a new set.
static int CELLS
          howChanged constant which indicates that a cell vector's cells have changed.
static int CLASS
          howChanged constant which indicates that a cell vector's class has changed.
 int count
          The number of changed cell vectors.
static int DEFAULT_VALUE
          howChanged constant which indicates that a cell vector's default value has changed.
 int howChanged
          Indicates how the cell vectors have changed.
 int index
          The one-based identifier of the first (or only) changed cell vector.
static int REMOVED
          howChanged constant which indicates that cell vectors have been removed from the table.
 
Constructor Summary
CellVectorChangedEvent(java.lang.Object source)
          Constructs an event to indicate that an entire set of cell vectors has been completely replaced by a new set.
CellVectorChangedEvent(java.lang.Object source, int index, int count, int howChanged)
          Constructs an event to signal a change to a range of cell vectors.
 
Method Summary
 java.lang.String toString()
           
 

Field Detail

ADDED

public static final int ADDED
howChanged constant which indicates that cell vectors have been added to the table. index refers to the newly added cell vector. The cell vector formerly associated with index (if any, could be appending) is now associated with index+count.

See Also:
howChanged, Constant Field Values

REMOVED

public static final int REMOVED
howChanged constant which indicates that cell vectors have been removed from the table. index refers to the removed cell vector. The cell vector formerly associated with index+count (if any) is now associated with index.

See Also:
howChanged, Constant Field Values

ALL_REPLACED

public static final int ALL_REPLACED
howChanged constant which indicates that an entire set of cell vectors has been completely replaced by a new set. For example, a dataset with a new where clause applied would have a completely new set of rows, but the same columns. index and count are ignored when this constant is used.

See Also:
howChanged, Constant Field Values

CELLS

public static final int CELLS
howChanged constant which indicates that a cell vector's cells have changed.

See Also:
howChanged, Constant Field Values

CLASS

public static final int CLASS
howChanged constant which indicates that a cell vector's class has changed.

See Also:
howChanged, Constant Field Values

DEFAULT_VALUE

public static final int DEFAULT_VALUE
howChanged constant which indicates that a cell vector's default value has changed.

See Also:
howChanged, Constant Field Values

index

public final int index
The one-based identifier of the first (or only) changed cell vector.


count

public final int count
The number of changed cell vectors.


howChanged

public final int howChanged
Indicates how the cell vectors have changed.

See Also:
ADDED, REMOVED, ALL_REPLACED, CELLS, CLASS, DEFAULT_VALUE
Constructor Detail

CellVectorChangedEvent

public CellVectorChangedEvent(java.lang.Object source,
                              int index,
                              int count,
                              int howChanged)
Constructs an event to signal a change to a range of cell vectors. Cell vectors index through index+count-1 will be considered changed.

Parameters:
source - The table model whose cell vector(s) has changed.
index - The one-based identifier of the first (or only) changed cell vector.
count - The number of changed cell vectors.
howChanged - Indicates how the cell vectors have changed.

CellVectorChangedEvent

public CellVectorChangedEvent(java.lang.Object source)
Constructs an event to indicate that an entire set of cell vectors has been completely replaced by a new set. For example, a dataset with a new where clause applied would have a completely new set of rows, but the same columns.

Parameters:
source - The table model whose cell vectors have changed.
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.util.EventObject



Copyright © 2009 SAS Institute Inc. All Rights Reserved.