|
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.filter.TableSummaryFilter
public class TableSummaryFilter
This filter adds one table level summarization row (grand total) without the need to perform grouping. The summarization is done through formula objects.
| Field Summary |
|---|
| 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 | |
|---|---|
TableSummaryFilter(TableLens table,
String label,
Formula[] calc)
Create table level summarization. |
|
TableSummaryFilter(TableLens table,
String label,
int[] sumcols,
Formula[] calc)
Create table level summarization. |
|
TableSummaryFilter(TableLens table,
String label,
int col,
Formula calc)
Create table level summarization. |
|
| Method Summary | |
|---|---|
void |
dispose()
Dispose the table to clear up temporary resources. |
int |
getAlignment(int r,
int c)
Return the per cell alignment. |
Color |
getBackground(int r,
int c)
Return the per cell background color. |
int |
getBaseColIndex(int col)
Get the base table column index corresponding to the filtered table. |
int |
getBaseRowIndex(int row)
Get the base table row index corresponding to the filtered table. |
int |
getColBorder(int r,
int c)
Return the style for right border of the specified row. |
Color |
getColBorderColor(int r,
int c)
Return the color for drawing the column border lines. |
int |
getColCount()
Return the number of columns in the table. |
Class |
getColType(int col)
Get the current column content type. |
String |
getColumnIdentifier(int col)
Get the column identifier of a column. |
int |
getColWidth(int col)
Get the current column width setting. |
TableDataDescriptor |
getDescriptor()
Get internal table data descriptor which contains table structural infos. |
Font |
getFont(int r,
int c)
Return the per cell font. |
Color |
getForeground(int r,
int c)
Return the per cell foreground color. |
Formula |
getGrandFormula(int col)
Get the formula of the column. |
int |
getHeaderColCount()
Return the number of columns on the left of the table to be treated as header columns. |
int |
getHeaderRowCount()
Return the number of rows on the top of the table to be treated as header rows. |
Insets |
getInsets(int r,
int c)
Return the cell gap space. |
Object |
getObject(int r,
int c)
Return the value at the specified cell. |
int |
getRowBorder(int r,
int c)
Return the style for bottom border of the specified cell. |
Color |
getRowBorderColor(int r,
int c)
Return the color for drawing the row border lines. |
int |
getRowCount()
Return the number of rows in the table. |
int |
getRowHeight(int row)
Get the current row heights setting. |
Dimension |
getSpan(int r,
int c)
Return the spanning setting for the cell. |
Font |
getSummaryFont()
Get the summary row font. |
TableLens |
getTable()
Get the original table of this filter. |
int |
getTrailerRowCount()
Return the number of rows on the bottom of the table to be treated as trailer rows. |
void |
invalidate()
Invalidate the table filter forcely, and the table filter will perform filtering calculation to validate itself. |
boolean |
isDefaultResult()
Get the default result option of this filter. |
boolean |
isLineWrap(int r,
int c)
Return the per cell line wrap mode. |
boolean |
isSummaryCol(int col)
If the column is a summary column. |
boolean |
isSummaryOnly()
Check if summary only. |
boolean |
moreRows(int row)
Check if there are more rows. |
void |
setDefaultResult(boolean def)
Set the default result option of this filter. |
void |
setObject(int r,
int c,
Object v)
Set the cell value. |
void |
setSummaryFont(Font font)
Set the font for the summary row. |
void |
setSummaryOnly(boolean only)
Set the summary only flag. |
void |
setTable(TableLens table)
Set the base table of this filter. |
| Methods inherited from class inetsoft.report.lens.AbstractTableLens |
|---|
addChangeListener, clone, containsDrill, containsFormat, findColumnByIdentifier, fireChangeEvent, getBoolean, getByte, getDefaultFormat, getDouble, getFloat, getInt, getLong, getShort, getTrailerColCount, 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, getTrailerColCount, isNull, isPrimitive, setColumnIdentifier |
| Constructor Detail |
|---|
public TableSummaryFilter(TableLens table,
String label,
Formula[] calc)
table - base table.label - summary row label. Placed at the first column of the
summary row.calc - summarization formula.
public TableSummaryFilter(TableLens table,
String label,
int[] sumcols,
Formula[] calc)
table - base table.label - summary row label. Placed at the first column of the
summary row.sumcols - summary columns.calc - summarization formula.
public TableSummaryFilter(TableLens table,
String label,
int col,
Formula calc)
table - base table.label - summary row label.col - summarization column index.calc - summarization formula.| Method Detail |
|---|
public int getBaseRowIndex(int row)
getBaseRowIndex in interface TableFilterrow - row index in the filtered table.
public int getBaseColIndex(int col)
getBaseColIndex in interface TableFiltercol - column index in the filtered table.
public int getTrailerRowCount()
getTrailerRowCount in interface XTablegetTrailerRowCount in class AbstractTableLenspublic void setSummaryFont(Font font)
font - new font.public Font getSummaryFont()
public void invalidate()
invalidate in interface TableFilterpublic boolean isSummaryOnly()
public void setSummaryOnly(boolean only)
only - true if summary only.public TableLens getTable()
getTable in interface TableFilterpublic void setTable(TableLens table)
setTable in interface TableFilterpublic void setDefaultResult(boolean def)
def - true to use the default value of a formula if no
result, false to just return null.public boolean isDefaultResult()
public TableDataDescriptor getDescriptor()
getDescriptor in interface TableLensgetDescriptor in interface XTablegetDescriptor in class AbstractTableLenspublic boolean moreRows(int row)
moreRows in interface XTablemoreRows in class AbstractTableLensrow - row number.
public int getRowCount()
getRowCount in interface XTablepublic int getColCount()
getColCount in interface XTablepublic Class getColType(int col)
getColType in interface XTablegetColType in class AbstractTableLenscol - column number.
public int getHeaderRowCount()
getHeaderRowCount in interface XTablegetHeaderRowCount in class AbstractTableLenspublic int getHeaderColCount()
getHeaderColCount in interface XTablegetHeaderColCount in class AbstractTableLenspublic int getRowHeight(int row)
getRowHeight in interface TableLensgetRowHeight in class AbstractTableLenspublic int getColWidth(int col)
getColWidth in interface TableLensgetColWidth in class AbstractTableLens
public Color getRowBorderColor(int r,
int c)
getRowBorderColor in interface TableLensgetRowBorderColor in class AbstractTableLensr - row number.c - column number.
public Color getColBorderColor(int r,
int c)
getColBorderColor in interface TableLensgetColBorderColor in class AbstractTableLensr - row number.c - column number.
public int getRowBorder(int r,
int c)
getRowBorder in interface TableLensgetRowBorder in class AbstractTableLensr - row number.c - column number.
public int getColBorder(int r,
int c)
getColBorder in interface TableLensgetColBorder in class AbstractTableLensr - row number.c - column number.
public Insets getInsets(int r,
int c)
getInsets in interface TableLensgetInsets in class AbstractTableLensr - row number.c - column number.
public Dimension getSpan(int r,
int c)
getSpan in interface TableLensgetSpan in class AbstractTableLensr - row number.c - column number.
public int getAlignment(int r,
int c)
getAlignment in interface TableLensgetAlignment in class AbstractTableLensr - row number.c - column number.
public Font getFont(int r,
int c)
getFont in interface TableLensgetFont in class AbstractTableLensr - row number.c - column number.
public boolean isLineWrap(int r,
int c)
isLineWrap in interface TableLensisLineWrap in class AbstractTableLensr - row number.c - column number.
public Color getForeground(int r,
int c)
getForeground in interface TableLensgetForeground in class AbstractTableLensr - row number.c - column number.
public Color getBackground(int r,
int c)
getBackground in interface TableLensgetBackground in class AbstractTableLensr - row number.c - column number.
public Object getObject(int r,
int c)
getObject in interface XTabler - row number.c - column number.
public void setObject(int r,
int c,
Object v)
setObject in interface XTablesetObject in class AbstractTableLensr - row number.c - column number.v - cell value.public Formula getGrandFormula(int col)
col - column number.
public boolean isSummaryCol(int col)
col - column number.public void dispose()
dispose in interface XTabledispose in class AbstractTableLenspublic String getColumnIdentifier(int col)
getColumnIdentifier in interface XTablegetColumnIdentifier in class AbstractTableLenscol - the specified column index.
|
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 | ||||||||