public interface IlvDataSource
DataSourceEvent
events whenever the data source
contents change.Modifier and Type | Method and Description |
---|---|
void |
addDataSet(IlvDataSet dataSet)
Adds a new data set at the end of this data source.
|
void |
addDataSet(int idx,
IlvDataSet dataSet)
Inserts a new data set at the specified position.
|
void |
addDataSourceListener(DataSourceListener lst)
Adds the specified listener to receive events concerning changes
in the contents of this data source.
|
boolean |
containsDataSet(IlvDataSet dataSet)
Tells whether this data source contains the specified data set.
|
IlvDataSet |
getDataSet(int idx)
Returns the data set at the specified index.
|
int |
getDataSetCount()
Returns the number of data sets provided by this data source.
|
int |
getDataSetIndex(IlvDataSet dataSet)
Returns the index of the specified data set.
|
Iterator<IlvDataSet> |
getDataSetIterator()
Returns an iterator over the data sets provided by this data source.
|
IlvDataSet[] |
getDataSets()
Returns the data sets provided by this data source.
|
void |
removeDataSourceListener(DataSourceListener lst)
Removes the specified listener.
|
void |
setDataSet(int idx,
IlvDataSet dataSet)
Replaces the data set at the specified index.
|
void |
setDataSets(IlvDataSet[] dataSets)
Initializes this data source with the specified data sets.
|
int getDataSetCount()
IlvDataSet[] getDataSets()
Iterator<IlvDataSet> getDataSetIterator()
The type of the elements traversed by this iterator is
IlvDataSet
.
The returned iterator does not allow element removal
(an UnsupportedOperationException
is thrown when
calling the remove
method).
IlvDataSet
elementsIlvDataSet getDataSet(int idx)
int getDataSetIndex(IlvDataSet dataSet)
dataSet
- The considered data set.-1
if
the data source does not contain this data set.void setDataSet(int idx, IlvDataSet dataSet)
idx
- The index of the data set to replace.dataSet
- The new data set. If this parameter is null
,
the data set at the index idx
is removed.void setDataSets(IlvDataSet[] dataSets)
dataSets
- The new data sets. If this parameter is null
,
all the data sets provided by this data source are removed.void addDataSet(int idx, IlvDataSet dataSet)
void addDataSet(IlvDataSet dataSet)
boolean containsDataSet(IlvDataSet dataSet)
void addDataSourceListener(DataSourceListener lst)
void removeDataSourceListener(DataSourceListener lst)
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.