|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface defines the API to a collection of data ranges.
DataRange,
DataSourceCollection| Method Summary | |
void |
delete(DataRange range)
Deletes a data range from this collection. |
DataRange |
factory(java.lang.String name,
int row,
int column)
Creates a data range and adds it to this collection of data ranges. |
DataRange |
factory(java.lang.String name,
int startRow,
int startColumn,
int endRow,
int endColumn)
Creates a data range and adds it to this collection of data ranges. |
DataRange |
find(int row,
int column)
Finds the data range at the intersection of the specified row and column. |
DataRange |
find(java.lang.String name)
Finds the data range with the specified name. |
DataRange[] |
get()
Returns a list of all the data ranges in the current workbook. |
DataRange |
getDataRange(int index)
Returns a specific data range by its index in the collection. |
java.lang.String[] |
getNames()
Returns a list of all the data range names in this collection. |
int |
getSize()
Returns the number of data ranges in the collection. |
void |
move(DataQuery query,
DataRange range,
Sheet sheet,
int row,
int column)
Moves a data range to the specified sheet/location and attaches it to the specified data query. |
void |
move(Source source,
DataRange range,
Sheet sheet,
int row,
int column)
Moves a data range to the specified sheet/location and attaches it to the specified data source. |
void |
setDataQuery(DataRange range,
DataQuery query)
Associates a data range with a data query. |
void |
setDataSource(DataRange range,
Source source)
Associates a data range with a data source. |
| Method Detail |
public void delete(DataRange range)
throws F1Exception
range - the range to delete.DataSourceCollection.delete(com.f1j.data.source.Source)
public DataRange factory(java.lang.String name,
int row,
int column)
throws F1Exception
name - the symbolic name of the data range being created.row - an integer specifying the first row of the data range on the worksheet.
Rows and columns are indexed beginning with 0.column - an integer specifying the first column of the data range on the
worksheet. Rows and columns are indexed beginning with 0.DataSourceCollection.factory(java.lang.String, int)
public DataRange factory(java.lang.String name,
int startRow,
int startColumn,
int endRow,
int endColumn)
throws F1Exception
name - the symbolic name of the data range being created.startRow - an integer specifying the first row of the data range on the worksheet.
Rows and columns are indexed beginning with 0.startColumn - an integer specifying the first column of the data range on the
worksheet. Rows and columns are indexed beginning with 0.endRow - an integer specifying the last row of the data range on the worksheet,
inclusive. Must be greater than startRow. Rows and columns are indexed beginning with 0.endColumn - an integer specifying the last column of the data range on the worksheet,
inclusive. Must be greater than startColumn. Rows and columns are indexed beginning with 0.DataSourceCollection.factory(java.lang.String, int)
public DataRange find(int row,
int column)
row - an integer specifying the row. Rows and columns are indexed
beginning with 0.column - an integer specifying the column. Rows and columns are indexed
beginning with 0.find(String name)public DataRange find(java.lang.String name)
name - range the name to find.find(int, int),
DataRange.setName(java.lang.String)public DataRange[] get()
getDataRange(int),
getNames()public DataRange getDataRange(int index)
index - an integer indicating the index of the data range.JDBC.setDatabase(java.lang.String),
getSize()public java.lang.String[] getNames()
DataSourceCollection.getNames(),
DataRange.setName(java.lang.String)public int getSize()
getDataRange(int)
public void move(Source source,
DataRange range,
Sheet sheet,
int row,
int column)
throws F1Exception
source - the name of the data source (e.g., j_Source)
the specified range is attached to.range - the default or defined object name of the current range of
the data source to move (e.g., Sheet1!Query or a defined
object name).sheet - the sheet to contain the target range (may be same as current
sheet).row - an integer indicating the first row of the target range.column - an integer indicating the first column of the target range.DataRange.move(int, int)
public void move(DataQuery query,
DataRange range,
Sheet sheet,
int row,
int column)
throws F1Exception
query - a DataQuery object.range - the default or defined object name of the current range of
the data source to move (e.g., Sheet1!Query or a defined object
name).sheet - the sheet to contain the target range (may be same as current
sheet).row - an integer indicating the first row of the target range.column - an integer indicating the first column of the target range.move(com.f1j.data.source.Source, com.f1j.data.DataRange, com.f1j.ss.Sheet, int, int)
public void setDataQuery(DataRange range,
DataQuery query)
throws F1Exception
range - DataRange object to associate with
the specified query.query - the DataQuery object that the
range will listen to.DataQuery,
DataRangeCollectionImpl.setDataQuery(com.f1j.data.DataRange, com.f1j.data.query.DataQuery)
public void setDataSource(DataRange range,
Source source)
range - the DataRange object to associate
with specified source.source - the Source object to contain
the specified range.DataQueryCollection.getDataSource(),
BookModel.getDataSourceCollection()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||