|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.report.lens.AbstractTableLens
inetsoft.report.lens.AttributeTableLens
inetsoft.report.lens.DefaultTableLens
inetsoft.report.lens.CalcTableLens
public class CalcTableLens
The CalcTableLens provides an extended interface for a fixed size table. It can contain formulas on a per cell basis. Each formula can reference any other cell in the table similar to a spread sheet.
| Nested Class Summary | |
|---|---|
protected static class |
CalcTableLens.Adjuster
Interface for adjusting row/column index. |
protected class |
CalcTableLens.CalcTableLensDataDescriptor
FreehandTableLens data descriptor. |
protected static class |
CalcTableLens.Formula
Class to hold a cell formula. |
| Field Summary | |
|---|---|
static int |
DEFAULT_MODE
Regular edit mode. |
protected FormulaTable |
elem
|
static int |
EXPAND_HORIZONTAL
Expand cells horizontally to new columns. |
static int |
EXPAND_NONE
Don't expand cell. |
static int |
EXPAND_VERTICAL
Expand cells vertically to new rows. |
static int |
FORMULA_MODE
Edit mode that shows full formula string. |
static int |
NAME_MODE
Edit mode that shows cell names and groups. |
static String |
ROOT_GROUP
This is a pseudo group that is a non-repeating root of all groups. |
| Fields inherited from class inetsoft.report.lens.AttributeTableLens |
|---|
alignmap, attritable, backgroundmap, cache, check, colborderCmap, colbordermap, fontmap, foregroundmap, insetsmap, linkmap, presentermap, rowborderCmap, rowbordermap, table, wrapmap |
| Fields inherited from class inetsoft.report.lens.AbstractTableLens |
|---|
descriptor, isLeftAlign |
| Fields inherited from interface inetsoft.report.TableLens |
|---|
BREAK_BORDER, NULL |
| Fields inherited from interface inetsoft.uql.XTable |
|---|
EOT |
| Constructor Summary | |
|---|---|
CalcTableLens()
Create an empty table. |
|
CalcTableLens(int rows,
int cols)
Create a table width specified number of rows and columns. |
|
CalcTableLens(Object[][] data)
Create a table with initial data. |
|
CalcTableLens(TableLens lens)
Create a copy of a table lens. |
|
CalcTableLens(TableLens lens,
boolean dataonly)
Create a copy of a table lens. |
|
| Method Summary | |
|---|---|
protected void |
adjust(CalcTableLens.Adjuster adjuster)
Adjust the row or column index. |
void |
cancel()
Cancel the runtime calc table generation. |
void |
clearPageBreaks()
Clear all page breaks. |
Object |
clone()
Make a copy of this table lens. |
protected Object |
cloneObject(Object obj)
Perform object level post clone operation. |
Map |
createNameMap()
Create a map from cell names to CalcAttr. |
inetsoft.report.internal.table.SpanMap |
createSpanMap()
Create a spanmap of the table. |
protected Object |
evaluate(int row,
int col,
CalcTableLens.Formula expr)
Evaluate a formula for a cell. |
int |
getAlignment(int r,
int c)
Return the per cell alignment. |
protected Object |
getCachedValue(int r,
int c)
Get cached cell value. |
String |
getCellID(int row,
int col)
Get an unique cell identifier. |
Point |
getCellLocation(String name)
Get the cell location with the specified cell name. |
String |
getCellName(int row,
int col)
Get the cell name. |
String[] |
getCellNames()
Get all cell names (name set through setCellName()). |
String |
getColGroup(int row,
int col)
Get the column group of this cell. |
TableDataDescriptor |
getDescriptor()
Get internal table data descriptor which contains table structural infos. |
int |
getEditMode()
Get the current edit mode. |
FormulaTable |
getElement()
Get the parent element. |
int |
getExpansion(int row,
int col)
Get the cell expansion type. |
String |
getFormula(int r,
int c)
Get the formula on a cell. |
String |
getMergeColGroup(int row,
int col)
Get the name of the column group cell for merging expanded cells. |
String |
getMergeRowGroup(int row,
int col)
Get the name of the row group cell for merging expanded cells. |
Object |
getObject(int r,
int c)
Return the value at the specified cell. |
inetsoft.report.internal.binding.OrderInfo |
getOrderInfo(int row,
int col)
Get the OrderInfo for a cell |
ReportSheet |
getReport()
Get the report associated with this table. |
String |
getRowGroup(int row,
int col)
Get the row group of this cell. |
TableLens |
getScriptTable()
Get the base table for the calc table. |
inetsoft.report.internal.binding.TopNInfo |
getTopN(int row,
int col)
Get the TopNInfo for a cell |
protected Object |
getValue(int r,
int c)
Return the value at the specified cell. |
void |
insertColumn(int col)
Insert a new column to the left of the specified column. |
void |
insertRow(int row)
Insert a new row above the specified row. |
void |
invalidate()
Invalidate the table filter forcely, and the table filter will perform filtering calculation to validate itself. |
boolean |
isBound(int row,
int col)
Gets the flag that determines if a cell is bound to data. |
boolean |
isMergeCells(int row,
int col)
Check if expanded cells should be merged. |
boolean |
isPageAfter(int row,
int col)
Check if a page break should be inserted after this group. |
inetsoft.report.internal.table.RuntimeCalcTableLens |
process()
Process the calc table. |
void |
removeColumn(int col)
Remove a column at the specified location. |
void |
removeRow(int row)
Remove the specified row. |
void |
setBound(int row,
int col,
boolean bound)
Sets the flag that determines if a cell is bound to data. |
protected void |
setCachedValue(int r,
int c,
Object obj)
Set the cached value. |
void |
setCellName(int row,
int col,
String name)
Set the cell name. |
void |
setColGroup(int row,
int col,
String group)
Set the column group of this cell. |
void |
setEditMode(int editMode)
Set to editing mode, which control how the cell contents are shown. |
void |
setElement(FormulaTable elem)
Set the parent element to be used as the scope of formulas. |
void |
setExpansion(int row,
int col,
int expansion)
Set the cell expansion type. |
void |
setFormula(int r,
int c,
String formula)
Set a formula on a cell. |
void |
setMergeCells(int row,
int col,
boolean merge)
Set wheter expanded cells should be merged. |
void |
setMergeColGroup(int row,
int col,
String group)
Set the column group for merging the cells. |
void |
setMergeRowGroup(int row,
int col,
String group)
Set the row group for merging the cells. |
void |
setOrderInfo(int row,
int col,
inetsoft.report.internal.binding.OrderInfo order)
Sets the OrderInfo for a cell |
void |
setPageAfter(int row,
int col,
boolean pageAfter)
Set the page after flag. |
void |
setReport(ReportSheet report)
Set the report associated with this table. |
void |
setRowGroup(int row,
int col,
String group)
Set the row group of this cell. |
void |
setTopN(int row,
int col,
inetsoft.report.internal.binding.TopNInfo topN)
Set the TopNInfo for a cell |
| Methods inherited from class inetsoft.report.lens.DefaultTableLens |
|---|
addColumn, addRow, getSpan, insertColumn, insertRow, removeColumn, removeRow, setColCount, setData, setDimension, setHeaderColCount, setHeaderRowCount, setObject, setRowCount, setTable, setTrailerColCount, setTrailerRowCount, setXMetaInfo |
| Methods inherited from class inetsoft.report.lens.AbstractTableLens |
|---|
addChangeListener, containsDrill, containsFormat, findColumnByIdentifier, fireChangeEvent, getBoolean, getByte, getDefaultFormat, getDouble, getFloat, getInt, getLong, getShort, getXDrillInfo, isNull, isPrimitive, removeChangeListener, setColumnIdentifier, setLeftAlign, setLocal |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface inetsoft.report.TableLens |
|---|
addChangeListener, containsDrill, containsFormat, getDefaultFormat, getXDrillInfo, removeChangeListener |
| Methods inherited from interface inetsoft.uql.XTable |
|---|
getBoolean, getByte, getDouble, getFloat, getInt, getLong, getShort, isNull, isPrimitive, setColumnIdentifier |
| Field Detail |
|---|
public static final int EXPAND_NONE
public static final int EXPAND_HORIZONTAL
public static final int EXPAND_VERTICAL
public static final int DEFAULT_MODE
public static final int NAME_MODE
public static final int FORMULA_MODE
public static final String ROOT_GROUP
protected FormulaTable elem
| Constructor Detail |
|---|
public CalcTableLens()
public CalcTableLens(int rows,
int cols)
rows - number of rows.cols - number of columns.public CalcTableLens(TableLens lens)
public CalcTableLens(TableLens lens,
boolean dataonly)
dataonly - true if only copy the data from table lens.public CalcTableLens(Object[][] data)
data - table data.| Method Detail |
|---|
public void setReport(ReportSheet report)
public ReportSheet getReport()
public void setElement(FormulaTable elem)
public FormulaTable getElement()
public TableLens getScriptTable()
public int getAlignment(int r,
int c)
getAlignment in interface TableLensgetAlignment in class AttributeTableLensr - row number.c - column number.
public void invalidate()
invalidate in interface TableFilterinvalidate in class DefaultTableLenspublic inetsoft.report.internal.table.RuntimeCalcTableLens process()
public void cancel()
public Map createNameMap()
public inetsoft.report.internal.table.SpanMap createSpanMap()
public TableDataDescriptor getDescriptor()
getDescriptor in interface TableLensgetDescriptor in interface XTablegetDescriptor in class DefaultTableLenspublic int getEditMode()
public void setEditMode(int editMode)
editMode - one of DEFAULT_MODE, NAME_MODE, and FORMULA_MODE.
public Object getObject(int r,
int c)
getObject in interface XTablegetObject in class AttributeTableLensr - row number.c - column number.
protected Object getValue(int r,
int c)
r - row number.c - column number.
protected Object getCachedValue(int r,
int c)
protected void setCachedValue(int r,
int c,
Object obj)
public void setFormula(int r,
int c,
String formula)
public String getFormula(int r,
int c)
public void insertRow(int row)
insertRow in class DefaultTableLenspublic void removeRow(int row)
removeRow in class DefaultTableLenspublic void insertColumn(int col)
insertColumn in class DefaultTableLenspublic void removeColumn(int col)
removeColumn in class DefaultTableLens
public String getCellID(int row,
int col)
public Point getCellLocation(String name)
public String getCellName(int row,
int col)
public void setCellName(int row,
int col,
String name)
public boolean isMergeCells(int row,
int col)
public void setMergeCells(int row,
int col,
boolean merge)
public String getMergeRowGroup(int row,
int col)
public void setMergeRowGroup(int row,
int col,
String group)
public String getMergeColGroup(int row,
int col)
public void setMergeColGroup(int row,
int col,
String group)
public boolean isPageAfter(int row,
int col)
public void setPageAfter(int row,
int col,
boolean pageAfter)
public inetsoft.report.internal.binding.OrderInfo getOrderInfo(int row,
int col)
public void setOrderInfo(int row,
int col,
inetsoft.report.internal.binding.OrderInfo order)
public inetsoft.report.internal.binding.TopNInfo getTopN(int row,
int col)
public void setTopN(int row,
int col,
inetsoft.report.internal.binding.TopNInfo topN)
public boolean isBound(int row,
int col)
row - the row index of the cell.col - the column index of the cell.
public void setBound(int row,
int col,
boolean bound)
row - the row index of the cell.col - the column index of the cell.bound - true if bound; false otherwise.
public String getRowGroup(int row,
int col)
public void setRowGroup(int row,
int col,
String group)
public String getColGroup(int row,
int col)
public void setColGroup(int row,
int col,
String group)
public int getExpansion(int row,
int col)
public void setExpansion(int row,
int col,
int expansion)
public String[] getCellNames()
protected Object evaluate(int row,
int col,
CalcTableLens.Formula expr)
public Object clone()
clone in class DefaultTableLensprotected Object cloneObject(Object obj)
cloneObject in class DefaultTableLensprotected void adjust(CalcTableLens.Adjuster adjuster)
public void clearPageBreaks()
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||