|
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.AbstractGroupedTable
inetsoft.report.filter.GroupedColumnMapFilter
public class GroupedColumnMapFilter
This filter performs remapping grouped table of column numbers. The columns can be reordered by specifying the new order in the column map. It can also be used to extract a subset of columns from a grouped table by using a partial column number map.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class inetsoft.report.filter.AbstractGroupedTable |
|---|
AbstractGroupedTable.BooleanObject |
| Field Summary |
|---|
| Fields inherited from class inetsoft.report.lens.AbstractTableLens |
|---|
descriptor, isLeftAlign |
| Fields inherited from interface inetsoft.report.filter.GroupedTable |
|---|
GROUP_HEADER_FULL, GROUP_HEADER_IN_PLACE, GROUP_HEADER_ROWS |
| Fields inherited from interface inetsoft.report.TableLens |
|---|
BREAK_BORDER, NULL |
| Fields inherited from interface inetsoft.uql.XTable |
|---|
EOT |
| Constructor Summary | |
|---|---|
GroupedColumnMapFilter(GroupedTable table,
int[] map)
The map[i] points to the column number in the base table. |
|
| Method Summary | |
|---|---|
void |
dispose()
Dispose the table to clear up temporary resources. |
int |
getAlignment(int r,
int c)
Return the per cell alignment. |
int[] |
getAvailableLevels(int row)
Get available group levels of a row when get group first/last row. |
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. |
boolean |
getBoolean(int r,
int c)
Get the boolean value in one row. |
byte |
getByte(int r,
int c)
Get the byte value in one row. |
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. |
int |
getColWidth(int col)
Get the current column width setting. |
TableDataDescriptor |
getDescriptor()
Get internal table data descriptor which contains table structural infos. |
double |
getDouble(int r,
int c)
Get the double value in one row. |
float |
getFloat(int r,
int c)
Get the float value in one row. |
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 grand total formula of the column. |
int |
getGroupColCount()
Get the number of grouping columns. |
int |
getGroupColLevel(int col)
Get a group col's group level. |
int |
getGroupColumns(int level)
Get the number of columns used in the specified grouping level. |
int |
getGroupFirstRow(int row)
Get the first row at the specified row. |
int |
getGroupFirstRow(int row,
int level)
Get the first row at specified row and group level. |
Formula |
getGroupFormula(int col)
Get the group formula of the column. |
int |
getGroupHeaderStyle()
Get the group header style. |
int |
getGroupLastRow(int row)
Get the last row at the specified row. |
int |
getGroupLastRow(int row,
int level)
Get the last row at specified row and group level. |
int |
getGroupLevel(int r)
Get the grouping level of this group header. |
int |
getGroupLevel0(int r)
Get the internal keep row level for the first row of a group. |
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. |
int |
getInt(int r,
int c)
Get the int value in one row. |
long |
getLong(int r,
int c)
Get the long value in one row. |
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. |
short |
getShort(int r,
int c)
Get the short value in one row. |
int |
getSummaryLevel(int r)
Get the grouping level of a summary row. |
TableLens |
getTable()
Get the original table of this filter. |
int |
getTrailerColCount()
Return the number of columns on the right of the table to be treated as tail columns. |
int |
getTrailerRowCount()
Return the number of rows on the bottom of the table to be treated as tail rows. |
boolean |
hasGrandSummary()
Check if this table contains grand summary row. |
void |
invalidate()
Invalidate the table filter forcely, and the table filter will perform filtering calculation to validate itself. |
boolean |
isAddGroupHeader()
Check if group header is to be added to the grouped data. |
boolean |
isGroupHeaderCell(int r,
int c)
Check if a cell is a group header cell. |
boolean |
isGroupHeaderRow(int r)
Check if a row is displaying group header. |
boolean |
isLineWrap(int r,
int c)
Return the per cell line wrap mode. |
boolean |
isMergedGroup(int c)
Check the merge group cell for given index group column. |
boolean |
isMergeGroupCells()
Check the merge group cell option. |
boolean |
isNull(int r,
int c)
Check if the value at one cell is null. |
boolean |
isPrimitive(int col)
Check if is primitive. |
boolean |
isShowGroupColumns()
Check if the group column contents are shown. |
boolean |
isSummaryCol(int c)
Check if a column is a summary column. |
boolean |
isSummaryRow(int row)
Check if a row is a summary row. |
boolean |
moreRows(int row)
Check if there are more rows. |
void |
setAddGroupHeader(boolean h)
Set whether group headers are added to the table. |
void |
setGroupHeaderStyle(int headerS)
Set the group header style. |
void |
setObject(int r,
int c,
Object v)
Set the cell value. |
void |
setShowGroupColumns(boolean grp)
Set the show group column contents option. |
void |
setTable(TableLens table)
Set the base table of this filter. |
| Methods inherited from class inetsoft.report.filter.AbstractGroupedTable |
|---|
clearCache, clearPageBreaks, firstSummaryColumn, getColumnIdentifier, getGroupFirstRow0, getGroupLastRow0, getHeader2, getMergedGroup, getOriginalPath, getPageBreakLevels, getRealGroupColCount, getSpan, setMergedGroup, setMergeGroupCells |
| Methods inherited from class inetsoft.report.lens.AbstractTableLens |
|---|
addChangeListener, clone, containsDrill, containsFormat, findColumnByIdentifier, fireChangeEvent, getDefaultFormat, getXDrillInfo, 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 |
|---|
setColumnIdentifier |
| Constructor Detail |
|---|
public GroupedColumnMapFilter(GroupedTable table,
int[] map)
table - the grouped tablemap - the column map array| Method Detail |
|---|
public TableLens getTable()
getTable in interface TableFilterpublic void setTable(TableLens table)
setTable in interface TableFiltertable - the specified grouped tablepublic boolean isMergeGroupCells()
isMergeGroupCells in interface GroupedTableisMergeGroupCells in class AbstractGroupedTablepublic boolean isMergedGroup(int c)
AbstractGroupedTable
isMergedGroup in class AbstractGroupedTablepublic TableDataDescriptor getDescriptor()
getDescriptor in interface TableLensgetDescriptor in interface XTablegetDescriptor in class AbstractTableLenspublic int getBaseRowIndex(int row)
getBaseRowIndex in interface GroupedTablegetBaseRowIndex in interface TableFiltergetBaseRowIndex in class AbstractGroupedTablerow - row index in the filtered table
public int getBaseColIndex(int col)
getBaseColIndex in interface TableFiltercol - column index in the filtered table
public void invalidate()
invalidate in interface TableFilterpublic int getGroupColCount()
getGroupColCount in interface GroupedTablegetGroupColCount in class AbstractGroupedTablepublic boolean isGroupHeaderRow(int r)
isGroupHeaderRow in interface GroupedTableisGroupHeaderRow in class AbstractGroupedTabler - row number
public boolean isGroupHeaderCell(int r,
int c)
isGroupHeaderCell in interface GroupedTableisGroupHeaderCell in interface RegionTableisGroupHeaderCell in class AbstractGroupedTabler - row numberc - column number
public int getGroupColumns(int level)
getGroupColumns in interface GroupedTablegetGroupColumns in class AbstractGroupedTablelevel - the specified group level
public int getGroupLevel(int r)
getGroupLevel in interface GroupedTablegetGroupLevel in interface RegionTablegetGroupLevel in class AbstractGroupedTabler - the specified row
public int getGroupLevel0(int r)
getGroupLevel0 in class AbstractGroupedTablepublic int getGroupColLevel(int col)
getGroupColLevel in interface GroupedTablegetGroupColLevel in class AbstractGroupedTablecol - the group col
-1 means not a group colpublic boolean isShowGroupColumns()
isShowGroupColumns in interface GroupedTableisShowGroupColumns in class AbstractGroupedTablepublic void setShowGroupColumns(boolean grp)
setShowGroupColumns in interface GroupedTablesetShowGroupColumns in class AbstractGroupedTablegrp - show group column contents.public boolean isAddGroupHeader()
isAddGroupHeader in interface GroupedTableisAddGroupHeader in class AbstractGroupedTablepublic void setAddGroupHeader(boolean h)
setAddGroupHeader in interface GroupedTablesetAddGroupHeader in class AbstractGroupedTablepublic int getGroupHeaderStyle()
getGroupHeaderStyle in interface GroupedTablegetGroupHeaderStyle in class AbstractGroupedTablepublic void setGroupHeaderStyle(int headerS)
setGroupHeaderStyle in interface GroupedTablesetGroupHeaderStyle in class AbstractGroupedTableheaderS - one of GROUP_HEADER_IN_PLACE, GROUP_HEADER_ROWS (default).public boolean isSummaryRow(int row)
isSummaryRow in interface GroupedTableisSummaryRow in interface RegionTableisSummaryRow in class AbstractGroupedTablerow - the row number
public boolean isSummaryCol(int c)
isSummaryCol in interface GroupedTableisSummaryCol in class AbstractGroupedTablec - the column number
public int getSummaryLevel(int r)
getSummaryLevel in interface GroupedTablegetSummaryLevel in interface RegionTablegetSummaryLevel in class AbstractGroupedTablepublic boolean hasGrandSummary()
hasGrandSummary in interface GroupedTablehasGrandSummary in class AbstractGroupedTable
public int getGroupFirstRow(int row,
int level)
getGroupFirstRow in interface GroupedTablegetGroupFirstRow in class AbstractGroupedTablerow - the specified rowlevel - the specified group level
-1 if not available
public int getGroupLastRow(int row,
int level)
getGroupLastRow in interface GroupedTablegetGroupLastRow in class AbstractGroupedTablerow - the specified rowlevel - the specified group level
-1 if not availablepublic int getGroupFirstRow(int row)
getGroupFirstRow in interface GroupedTablegetGroupFirstRow in class AbstractGroupedTablerow - the specified row
-1 if not availablepublic int getGroupLastRow(int row)
getGroupLastRow in interface GroupedTablegetGroupLastRow in class AbstractGroupedTablerow - the specified row
-1 if not availablepublic int[] getAvailableLevels(int row)
getAvailableLevels in interface GroupedTablegetAvailableLevels in class AbstractGroupedTablerow - the specified row
public 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 int getHeaderRowCount()
getHeaderRowCount in interface XTablegetHeaderRowCount in class AbstractTableLenspublic int getHeaderColCount()
getHeaderColCount in interface XTablegetHeaderColCount in class AbstractTableLenspublic int getTrailerRowCount()
getTrailerRowCount in interface XTablegetTrailerRowCount in class AbstractTableLenspublic int getTrailerColCount()
getTrailerColCount in interface XTablegetTrailerColCount in class AbstractTableLenspublic int getRowHeight(int row)
getRowHeight in interface TableLensgetRowHeight in class AbstractTableLenspublic int getColWidth(int col)
getColWidth in interface TableLensgetColWidth in class AbstractTableLenspublic Class getColType(int col)
getColType in interface XTablegetColType in class AbstractTableLenscol - column number.
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 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 final boolean isPrimitive(int col)
isPrimitive in interface XTableisPrimitive in class AbstractTableLens
public final boolean isNull(int r,
int c)
isNull in interface XTableisNull in class AbstractTableLensr - the specified row index.c - column number.
public Object getObject(int r,
int c)
getObject in interface XTabler - row number.c - column number.
public final double getDouble(int r,
int c)
getDouble in interface XTablegetDouble in class AbstractTableLensr - the specified row index.c - column number.
public final float getFloat(int r,
int c)
getFloat in interface XTablegetFloat in class AbstractTableLensr - the specified row index.c - column number.
public final long getLong(int r,
int c)
getLong in interface XTablegetLong in class AbstractTableLensr - the specified row index.c - column number.
public final int getInt(int r,
int c)
getInt in interface XTablegetInt in class AbstractTableLensr - the specified row index.c - column number.
public final short getShort(int r,
int c)
getShort in interface XTablegetShort in class AbstractTableLensr - the specified row index.c - column number.
public final byte getByte(int r,
int c)
getByte in interface XTablegetByte in class AbstractTableLensr - the specified row index.c - column number.
public final boolean getBoolean(int r,
int c)
getBoolean in interface XTablegetBoolean in class AbstractTableLensr - the specified row index.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 getGroupFormula(int col)
getGroupFormula in interface GroupedTablegetGroupFormula in class AbstractGroupedTablecol - column index in the grouped table.
public Formula getGrandFormula(int col)
getGrandFormula in interface GroupedTablegetGrandFormula in class AbstractGroupedTablecol - column index in the grouped table.
public void dispose()
dispose in interface XTabledispose in class AbstractTableLens
|
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 | ||||||||