|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface provides the API for interacting with a data range on a sheet.
| Field Summary | |
static short |
eCellFormatting_Clear
Clear all cell formatting. |
static short |
eCellFormatting_DRML
Use DRML formatting. |
static short |
eCellFormatting_Manual
Use Manual formatting. |
static short |
eCellFormatting_Preserve
Preserve all cell formatting. |
static short |
eCellFormatting_ReplicateFirstRow
Copy formatting from worksheet first row. |
static short |
eCellFormatting_XML
Deprecated. As of e.Spreadsheet 10, use eCellFormatting_DRML instead. |
static short |
eCellFormatting_XSLT
Deprecated. As of e.Spreadsheet 10, use eCellFormatting_DRML instead. |
static short |
eInsertClearRows
Refresh by replacing worksheet rows in data range. |
static short |
eInsertDeleteCells
Refresh by replacing worksheet cells in data range. |
static short |
eOverwriteClearCells
Refresh by pasting data in existing data range cells. |
| Method Summary | |
short |
getCellFormattingMode()
Returns this data range's cell formatting mode. |
int |
getColumnNumber()
Returns the column number of the upper left corner of the range. |
short |
getInsertMode()
Returns this data range's current insert mode. |
java.lang.String |
getName()
Returns the name of this data range. |
DataQuery |
getQuery()
Returns the query that this data range is listening to. |
RangeRef |
getRangeRef()
Returns the size of the data range |
int |
getRowNumber()
Returns the row number of the upper left corner of the range. |
Sheet |
getSheet()
Returns the sheet that this data range belongs to. |
XSLTDocument |
getXSLTDocument()
Returns the XSLT Document associated with this data range. |
boolean |
intersects(int row,
int column)
Indicates whether the specified location on the sheet is contained within this data range. |
boolean |
isAdjustColWidth()
Returns whether this range has adjust column width turned on. |
boolean |
isFillDownFormulasAdjacentToRange()
Returns whether this data range has formula fill down turned on. |
boolean |
isIncludeFieldNames()
Returns whether this data range includes field names. |
boolean |
isIncludeRowNumbers()
Returns whether this data range has row numbers as its first column. |
boolean |
isUseDrmlFormatting()
Returns whether this data range is set to use DRML formatting information. |
void |
setAdjustColWidth(boolean adjust)
Sets this range's adjust column width mode. |
void |
setCellFormattingMode(short mode)
Sets this data range's cell formatting mode. |
void |
setFillDownFormulasAdjacentToRange(boolean fillDown)
Sets this data range's formula fill down mode. |
void |
setIncludeFieldNames(boolean include)
Sets this data range to include field names. |
void |
setIncludeRowNumbers(boolean include)
Sets this data range to have the number of each row as it's first column. |
void |
setInsertMode(short mode)
Sets this data range's current insert mode. |
void |
setName(java.lang.String name)
Sets the name of the DataRange object along with setting the
defined name. |
| Methods inherited from interface com.f1j.data.DataRangeIterator |
endCell,
endColumnName,
endFieldInfo,
endMetaData,
endRange,
endRow,
setCell,
setCell,
setCell,
setCellAsText,
setCellHyperlink,
setColumnName,
setFieldLabel,
setFieldName,
setTableName,
startCell,
startColumnName,
startFieldInfo,
startMetaData,
startRange,
startRow |
| Field Detail |
public static final short eCellFormatting_Clear
public static final short eCellFormatting_Preserve
public static final short eCellFormatting_ReplicateFirstRow
public static final short eCellFormatting_DRML
public static final short eCellFormatting_XSLT
public static final short eCellFormatting_XML
public static final short eCellFormatting_Manual
public static final short eInsertDeleteCells
public static final short eInsertClearRows
public static final short eOverwriteClearCells
| Method Detail |
public short getCellFormattingMode()
| Mode | Description | Integer |
eCellFormatting_Clear |
clear existing database formatting | 1 |
eCellFormatting_Preserve |
keep existing database formatting | 2 |
eCellFormatting_ReplicateFirstRow |
use formatting from first row of datarange |
3 |
eCellFormatting_XSLT |
use formatting from XSL applied to range | 4 |
eCellFormatting_XML |
use formatting from XML being imported into F1 | 5 |
eCellFormatting_Manual |
formatting info will be provided through the DataRangeFormatIterator API |
6 |
setCellFormattingMode(short)public int getColumnNumber()
getRowNumber()public java.lang.String getName()
String representing the defined name.setName(java.lang.String)public short getInsertMode()
eInsertDeleteCells |
Deletes all cells from existing range (even if larger than new range). Replaces with new, unformattted cells with data source data. |
eInsertClearRows |
Replaces existing rows with new, unformatted rows with data source data. |
eOverwriteClearCells |
Replaces existing data with data source data, leaving worksheet cell
formatting as previously set by the setCellFormattingMode
method. |
setInsertMode(short)public Sheet getSheet()
BookModel.getSheet(),
BookModel.setSheet(int)public DataQuery getQuery()
DataQuerypublic int getRowNumber()
getColumnNumber()public XSLTDocument getXSLTDocument()
XSLTDocument.getDocument()
public boolean intersects(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.true or false. true =
location is within the data rangepublic boolean isAdjustColWidth()
true or false. true
= adjust column width is turned on.setAdjustColWidth(boolean)public boolean isFillDownFormulasAdjacentToRange()
true or false. true =
formula fill down is turned on.getXSLTDocument(),
setFillDownFormulasAdjacentToRange(boolean)public boolean isIncludeFieldNames()
Note that you can also do this by assigning an XSLT document to the data range. XSLT provides much richer formatting options.
This method is only valid when the data source is created from a database (not a file).
true or false. true =
data range includes field names.getXSLTDocument(),
setIncludeFieldNames(boolean)public boolean isIncludeRowNumbers()
true or false. true =
data range first column is row numbers.setIncludeRowNumbers(boolean)public boolean isUseDrmlFormatting()
true or false. true =
data range is set to use DRML formatting information.public void setAdjustColWidth(boolean adjust)
adjust - boolean: true or false. true =
recalculate column width on refresh.isAdjustColWidth()
public void setCellFormattingMode(short mode)
throws F1Exception
mode - a short describing the cell formatting mode:
| Mode | Description | Integer |
eCellFormatting_Clear |
clear existing database formatting | 1 |
eCellFormatting_Preserve |
keep existing database formatting | 2 |
eCellFormatting_ReplicateFirstRow |
use formatting from first row of datarange |
3 |
eCellFormatting_XSLT |
use XSLT formatting | 4 |
getCellFormattingMode()public void setFillDownFormulasAdjacentToRange(boolean fillDown)
Note that you can also do this by assigning an XSLT document to the data range. XSLT provides much richer formatting options.
fillDown - boolean: true or false. true =
turn on fill down feature.isFillDownFormulasAdjacentToRange()public void setIncludeFieldNames(boolean include)
This method is only valid when the data source is created from a database (not a file).
Note that you can also do this by assigning an XSLT document to the data range. XSLT provides much richer formatting options.
include - boolean: true or false. true =
include field names.isIncludeFieldNames()public void setInsertMode(short mode)
mode - an insert mode constant:
eInsertDeleteCells |
Deletes all cells from existing range (even if larger than new range). Replaces with new, unformattted cells with data source data. | |
eInsertClearRows |
Replaces existing rows with new, unformatted rows with data source data. | |
eOverwriteClearCells |
Replaces existing data with data source data, leaving worksheet cell
formatting as previously set by the setCellFormattingMode
method. |
getInsertMode()public void setIncludeRowNumbers(boolean include)
include - boolean: true or false. true =
row numbers are first column.isIncludeRowNumbers()
public void setName(java.lang.String name)
throws F1Exception
DataRange object along with setting the
defined name. Note: Naming multiple ranges with the same name
and attempting to associate them with a single query will silently fail.name - defined name for the DataRange object.getName()public RangeRef getRangeRef()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||