public class DataSourceEvent extends EventObject
IlvDataSource
object.DataSourceListener
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
DATASET_ADDED
Type of event sent when new data set is available
from a data source.
|
static int |
DATASET_REMOVED
Type of event sent when a data set is no longer available
from a data source.
|
source
Constructor and Description |
---|
DataSourceEvent(IlvDataSource dataSource,
int type,
int firstIdx,
int lastIdx,
IlvDataSet[] oldDataSets)
Creates a new
DataSourceEvent . |
Modifier and Type | Method and Description |
---|---|
IlvDataSource |
getDataSource()
Returns the data source on which the event occurred.
|
int |
getFirstIdx()
Returns the index of the first data set affected by the modification.
|
int |
getLastIdx()
Returns the index of the last data set affected by the modification.
|
IlvDataSet[] |
getOldDataSets()
Returns the data sets provided by the data source before the
change occurred.
|
int |
getType()
Returns the type of the event.
|
String |
toString()
Returns the string representation of this event.
|
getSource
public static final int DATASET_ADDED
getType()
,
Constant Field Valuespublic static final int DATASET_REMOVED
getType()
,
Constant Field Valuespublic DataSourceEvent(IlvDataSource dataSource, int type, int firstIdx, int lastIdx, IlvDataSet[] oldDataSets)
DataSourceEvent
.type
- The type of the modification.firstIdx
- The index of the first data set affected by the modification.lastIdx
- The index of the last data set affected by the modification.oldDataSets
- The data sets provided by the data source before the
change occurred.getFirstIdx()
,
getLastIdx()
,
getType()
public final int getType()
DATASET_ADDED
,
DATASET_REMOVED
public final IlvDataSet[] getOldDataSets()
public int getFirstIdx()
DATASET_ADDED
, this index
corresponds to a data set in the modified data source. If the type of the event
is DATASET_REMOVED
, this index corresponds to a data set
in the array returned by the getOldDataSets()
method.getType()
public int getLastIdx()
DATASET_ADDED
, this index
corresponds to a data set in the modified data source. If the type of the event
is DATASET_REMOVED
, this index corresponds to a data set
in the array returned by the getOldDataSets()
method.getType()
public final IlvDataSource getDataSource()
public String toString()
toString
in class EventObject
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.