|
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
public abstract class AbstractGroupedTable
An abstract grouped table contains common methods of grouped table.
| Nested Class Summary | |
|---|---|
protected class |
AbstractGroupedTable.BooleanObject
A class wrap a boolean object. |
| 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 | |
|---|---|
AbstractGroupedTable()
|
|
| Method Summary | |
|---|---|
void |
clearCache()
Clear the cached data. |
void |
clearPageBreaks()
Clear page breaks. |
int |
firstSummaryColumn()
Return the first summary column number. |
int[] |
getAvailableLevels(int row)
Get available group levels of a row when get group first/last row. |
abstract int |
getBaseRowIndex(int row)
Get the base table row index corresponding to the grouped table. |
String |
getColumnIdentifier(int col)
Get the column identifier of a column. |
abstract Formula |
getGrandFormula(int col)
Get the grand total formula of the column. |
abstract int |
getGroupColCount()
Return the number of grouping columns. |
int |
getGroupColLevel(int col)
Get a group col's group lvl. |
abstract 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. |
protected int |
getGroupFirstRow0(int row,
int lvl)
Internal method to get the first row at the specified row and group lvl. |
abstract Formula |
getGroupFormula(int col)
Get the group formula of the column. |
abstract 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. |
protected int |
getGroupLastRow0(int row,
int lvl)
Internal method to get the last row at the specified row and group lvl. |
abstract int |
getGroupLevel(int r)
Get the grouping level of this group header. |
int |
getGroupLevel0(int r)
Get the internal keep row lvl for the first row of a group. |
protected String |
getHeader2(String header,
boolean special)
Get a special header string from the given header. |
boolean[] |
getMergedGroup()
Check the merge group cell option for all group column. |
protected TableDataPath |
getOriginalPath(TableDataPath path,
AbstractGroupedTable.BooleanObject aggregated,
boolean special)
Get the origial data path from the specified path. |
BitSet |
getPageBreakLevels()
Get page break levels. |
int |
getRealGroupColCount()
Get real group column count of a grouped table. |
Dimension |
getSpan(int r,
int c)
Return the spanning setting for the cell. |
abstract int |
getSummaryLevel(int r)
Get the grouping level of a summary row. |
abstract boolean |
hasGrandSummary()
Check if this table contains grand summary row. |
abstract boolean |
isAddGroupHeader()
Check if group header is to be added to the grouped data. |
abstract boolean |
isGroupHeaderCell(int r,
int c)
Check if a cell is a group header cell. |
abstract boolean |
isGroupHeaderRow(int r)
Check if a row is displaying group header. |
boolean |
isMergedGroup(int index)
Check the merge group cell for given index group column. |
boolean |
isMergeGroupCells()
Check the merge group cell option. |
abstract boolean |
isShowGroupColumns()
Check if the group column contents are shown. |
abstract boolean |
isSummaryCol(int col)
Check if a column is a summary column. |
abstract boolean |
isSummaryRow(int row)
Check if a row is a summary row. |
abstract void |
setAddGroupHeader(boolean h)
Set whether group headers are added to the table. |
abstract void |
setGroupHeaderStyle(int headerS)
Set the group header style. |
void |
setMergedGroup(boolean[] merge)
Set merging group cell option for all group column. |
void |
setMergeGroupCells(boolean merge)
Set merging group cell option. |
abstract void |
setShowGroupColumns(boolean grp)
Set the show group column contents option. |
| Methods inherited from class inetsoft.report.lens.AbstractTableLens |
|---|
addChangeListener, clone, containsDrill, containsFormat, dispose, findColumnByIdentifier, fireChangeEvent, getAlignment, getBackground, getBoolean, getByte, getColBorder, getColBorderColor, getColType, getColWidth, getDefaultFormat, getDescriptor, getDouble, getFloat, getFont, getForeground, getHeaderColCount, getHeaderRowCount, getInsets, getInt, getLong, getRowBorder, getRowBorderColor, getRowHeight, getShort, getTrailerColCount, getTrailerRowCount, getXDrillInfo, isLineWrap, isNull, isPrimitive, moreRows, removeChangeListener, setColumnIdentifier, setLeftAlign, setLocal, setObject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface inetsoft.report.TableFilter |
|---|
getBaseColIndex, getTable, invalidate, setTable |
| Methods inherited from interface inetsoft.report.TableLens |
|---|
addChangeListener, containsDrill, containsFormat, getAlignment, getBackground, getColBorder, getColBorderColor, getColWidth, getDefaultFormat, getDescriptor, getFont, getForeground, getInsets, getRowBorder, getRowBorderColor, getRowHeight, getXDrillInfo, isLineWrap, removeChangeListener |
| Methods inherited from interface inetsoft.uql.XTable |
|---|
dispose, getBoolean, getByte, getColCount, getColType, getDouble, getFloat, getHeaderColCount, getHeaderRowCount, getInt, getLong, getObject, getRowCount, getShort, getTrailerColCount, getTrailerRowCount, isNull, isPrimitive, moreRows, setColumnIdentifier, setObject |
| Constructor Detail |
|---|
public AbstractGroupedTable()
| Method Detail |
|---|
public abstract int getGroupColCount()
getGroupColCount in interface GroupedTablepublic abstract boolean isGroupHeaderRow(int r)
isGroupHeaderRow in interface GroupedTabler - row number.
public abstract boolean isGroupHeaderCell(int r,
int c)
isGroupHeaderCell in interface GroupedTableisGroupHeaderCell in interface RegionTabler - row number.c - column number.
public abstract int getGroupColumns(int level)
getGroupColumns in interface GroupedTablepublic abstract int getGroupLevel(int r)
getGroupLevel in interface GroupedTablegetGroupLevel in interface RegionTablepublic abstract boolean isShowGroupColumns()
isShowGroupColumns in interface GroupedTablepublic abstract void setShowGroupColumns(boolean grp)
setShowGroupColumns in interface GroupedTablegrp - show group column contents.public abstract boolean isAddGroupHeader()
isAddGroupHeader in interface GroupedTablepublic abstract void setAddGroupHeader(boolean h)
setAddGroupHeader in interface GroupedTablepublic abstract int getGroupHeaderStyle()
getGroupHeaderStyle in interface GroupedTablepublic abstract void setGroupHeaderStyle(int headerS)
setGroupHeaderStyle in interface GroupedTableheaderS - one of GROUP_HEADER_IN_PLACE, GROUP_HEADER_ROWS (default).public abstract boolean isSummaryRow(int row)
isSummaryRow in interface GroupedTableisSummaryRow in interface RegionTablerow - the row number.
public abstract boolean isSummaryCol(int col)
isSummaryCol in interface GroupedTablecol - the column number.
public abstract int getSummaryLevel(int r)
getSummaryLevel in interface GroupedTablegetSummaryLevel in interface RegionTablepublic abstract boolean hasGrandSummary()
hasGrandSummary in interface GroupedTablepublic abstract int getBaseRowIndex(int row)
getBaseRowIndex in interface GroupedTablegetBaseRowIndex in interface TableFilterrow - row index in the grouped table.
public abstract Formula getGroupFormula(int col)
getGroupFormula in interface GroupedTablecol - column index in the grouped table.
public abstract Formula getGrandFormula(int col)
getGrandFormula in interface GroupedTablecol - column index in the grouped table.
public void setMergeGroupCells(boolean merge)
setMergeGroupCells in interface GroupedTablepublic boolean isMergeGroupCells()
isMergeGroupCells in interface GroupedTablepublic void setMergedGroup(boolean[] merge)
public boolean[] getMergedGroup()
public int getRealGroupColCount()
public int getGroupFirstRow(int row,
int level)
getGroupFirstRow in interface GroupedTablerow - the specified rowlevel - the specified group level
-1 if not available
public int getGroupLastRow(int row,
int level)
getGroupLastRow in interface GroupedTablerow - the specified rowlevel - the specified group level
-1 if not availablepublic int getGroupFirstRow(int row)
getGroupFirstRow in interface GroupedTablerow - the specified row
-1 if not availablepublic int getGroupLastRow(int row)
getGroupLastRow in interface GroupedTablerow - the specified row
-1 if not availablepublic int[] getAvailableLevels(int row)
getAvailableLevels in interface GroupedTablerow - the specified row
public void clearPageBreaks()
public BitSet getPageBreakLevels()
public String getColumnIdentifier(int col)
getColumnIdentifier in interface XTablegetColumnIdentifier in class AbstractTableLenscol - the specified column index.
public Dimension getSpan(int r,
int c)
getSpan in interface TableLensgetSpan in class AbstractTableLensr - row number.c - column number.
protected int getGroupFirstRow0(int row,
int lvl)
row - the specified rowlvl - the specified group lvl
protected int getGroupLastRow0(int row,
int lvl)
row - the specified rowlvl - the specified group lvl
public int getGroupColLevel(int col)
getGroupColLevel in interface GroupedTablecol - the group col
-1 means not a group colpublic void clearCache()
public int getGroupLevel0(int r)
public int firstSummaryColumn()
protected TableDataPath getOriginalPath(TableDataPath path,
AbstractGroupedTable.BooleanObject aggregated,
boolean special)
path - the path used to get original data path.aggregated - a indicator to check the path is a summary column.special - identical to get the original path by special case, such
as remove the DateRangeRef's special prefix.
protected String getHeader2(String header,
boolean special)
header - the given header to get another header string.special - to special case of the header.
public boolean isMergedGroup(int 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 | ||||||||