|
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.SetTableLens
public abstract class SetTableLens
Set table lens implements most of the functions to do a set operation on one/two tables. The sub class may vary its function in table supply and visitor implementation.
| Nested Class Summary | |
|---|---|
protected static class |
SetTableLens.Row
Row locates a row in a table. |
| Field Summary |
|---|
| Fields inherited from interface inetsoft.report.TableLens |
|---|
BREAK_BORDER, NULL |
| Fields inherited from interface inetsoft.uql.XTable |
|---|
EOT |
| Constructor Summary | |
|---|---|
SetTableLens()
Constructor. |
|
SetTableLens(TableLens ltable,
TableLens rtable)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addChangeListener(TableChangeListener listener)
Add table change listener to the filtered table. |
protected void |
addSetRow(SetTableLens.Row row)
|
void |
cancel()
Cancel the table lens and running queries if supported. |
boolean |
containsDrill()
Check if contains drill. |
boolean |
containsFormat()
Check if contains format. |
protected inetsoft.report.internal.table.MergedTable |
createMergedTable()
Create a merged table. |
void |
dispose()
Dispose the set table lens. |
protected void |
finalize()
Finalize the set table lens. |
protected void |
fireChangeEvent()
Fire change event when filtered table changed. |
int |
getAlignment(int r,
int c)
Return the per cell alignment. |
Color |
getBackground(int r,
int c)
Return the per cell background color. |
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. |
String |
getColumnIdentifier(int col)
Get the column identifier of a column. |
int |
getColWidth(int col)
Get the current column width setting. |
Format |
getDefaultFormat(int row,
int col)
Return the per cell format. |
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. |
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. |
TableLens |
getLeftTable()
Get the left base table lens. |
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. |
TableLens |
getRightTable()
Get the right base table lens. |
protected SetTableLens.Row |
getRow(int row)
Get the associated row object of a row index. |
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 r)
Get the current row heights setting. |
protected int |
getSetRowCount()
|
short |
getShort(int r,
int c)
Get the short value in one row. |
Dimension |
getSpan(int r,
int c)
Return the spanning setting for the cell. |
TableLens |
getTable(int index)
Gets the specified base table. |
int |
getTableCount()
Gets the number of base tables. |
List |
getTables()
Get all base tables. |
int |
getTrailerColCount()
Return the number of columns on the right of the table to be treated as trailer columns. |
int |
getTrailerRowCount()
Return the number of rows on the bottom of the table to be treated as trailer rows. |
protected abstract inetsoft.report.internal.table.MergedTable.Visitor |
getVisitor()
Get the merged table visitor. |
XDrillInfo |
getXDrillInfo(int row,
int col)
Get table drill info. |
void |
invalidate()
Invalidate the table filter forcely, and the table filter will perform filtering calculation to validate itself. |
boolean |
isCancelled()
Check the TableLens to see if it is cancelled. |
boolean |
isLineWrap(int r,
int c)
Return the per cell line wrap mode. |
boolean |
isNull(int r,
int c)
Check if the value at one cell is null. |
boolean |
isPrimitive(int col)
Check if is primitive. |
protected boolean |
isSetRowsInitialized()
|
boolean |
moreRows(int row)
Check if there are more rows. |
void |
removeChangeListener(TableChangeListener listener)
Remove table change listener from the filtered table. |
void |
setColumnIdentifier(int col,
String identifier)
Set the column identifier of a column. |
void |
setObject(int r,
int c,
Object v)
Set the cell value. |
void |
setTable(int index,
TableLens table)
|
void |
setTables(TableLens ltable,
TableLens rtable)
Set the base table lenses. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SetTableLens()
public SetTableLens(TableLens ltable,
TableLens rtable)
| Method Detail |
|---|
public void addChangeListener(TableChangeListener listener)
addChangeListener in interface TableLenslistener - the specified TableChangeListenerpublic void removeChangeListener(TableChangeListener listener)
removeChangeListener in interface TableLenslistener - the specified TableChangeListener to be removedprotected void fireChangeEvent()
public TableLens getLeftTable()
getLeftTable in interface BinaryTableFilterpublic TableLens getRightTable()
getRightTable in interface BinaryTableFilterpublic TableLens getTable(int index)
index - the index of the table.
public int getTableCount()
public List getTables()
public XDrillInfo getXDrillInfo(int row,
int col)
getXDrillInfo in interface TableLensrow - the row number.col - the col number.
public Format getDefaultFormat(int row,
int col)
getDefaultFormat in interface TableLensrow - row number.col - column number.
public boolean containsFormat()
containsFormat in interface TableLenspublic boolean containsDrill()
containsDrill in interface TableLenspublic TableDataDescriptor getDescriptor()
getDescriptor in interface TableLensgetDescriptor in interface XTable
public void setTables(TableLens ltable,
TableLens rtable)
ltable - the specified left base table lens, null is not
allowed.rtable - the specified right base table lens, null is
allowed.
public void setTable(int index,
TableLens table)
public void cancel()
cancel in interface inetsoft.report.internal.table.CancellableTableLenspublic boolean isCancelled()
isCancelled in interface inetsoft.report.internal.table.CancellableTableLenspublic void invalidate()
invalidate in interface BinaryTableFilter
protected inetsoft.report.internal.table.MergedTable createMergedTable()
throws Exception
Exceptionpublic boolean moreRows(int row)
moreRows in interface XTablerow - row number. If EOT is passed in, this method should wait
until the table is fully loaded.
public int getRowCount()
getRowCount in interface XTablepublic int getColCount()
getColCount in interface XTablepublic int getHeaderRowCount()
getHeaderRowCount in interface XTablepublic int getHeaderColCount()
getHeaderColCount in interface XTablepublic int getTrailerRowCount()
getTrailerRowCount in interface XTablepublic int getTrailerColCount()
getTrailerColCount in interface XTablepublic final boolean isPrimitive(int col)
isPrimitive in interface XTable
public final boolean isNull(int r,
int c)
isNull in interface XTabler - 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 XTabler - the specified row index.c - column number.
public final float getFloat(int r,
int c)
getFloat in interface XTabler - the specified row index.c - column number.
public final long getLong(int r,
int c)
getLong in interface XTabler - the specified row index.c - column number.
public final int getInt(int r,
int c)
getInt in interface XTabler - the specified row index.c - column number.
public final short getShort(int r,
int c)
getShort in interface XTabler - the specified row index.c - column number.
public final byte getByte(int r,
int c)
getByte in interface XTabler - the specified row index.c - column number.
public final boolean getBoolean(int r,
int c)
getBoolean in interface XTabler - the specified row index.c - column number.
public Class getColType(int col)
getColType in interface XTablecol - column number.
public void setObject(int r,
int c,
Object v)
setObject in interface XTabler - row number.c - column number.v - cell value.public int getRowHeight(int r)
getRowHeight in interface TableLenspublic int getColWidth(int col)
getColWidth in interface TableLens
public Color getRowBorderColor(int r,
int c)
getRowBorderColor in interface TableLensr - row number.c - column number.
public Color getColBorderColor(int r,
int c)
getColBorderColor in interface TableLensr - row number.c - column number.
public int getRowBorder(int r,
int c)
getRowBorder in interface TableLensr - row number.c - column number.
public int getColBorder(int r,
int c)
getColBorder in interface TableLensr - row number.c - column number.
public Insets getInsets(int r,
int c)
getInsets in interface TableLensr - row number.c - column number.
public Dimension getSpan(int r,
int c)
getSpan in interface TableLensr - row number.c - column number.
public int getAlignment(int r,
int c)
getAlignment in interface TableLensr - row number.c - column number.
public Font getFont(int r,
int c)
getFont in interface TableLensr - row number.c - column number.
public boolean isLineWrap(int r,
int c)
isLineWrap in interface TableLensr - row number.c - column number.
public Color getForeground(int r,
int c)
getForeground in interface TableLensr - row number.c - column number.
public Color getBackground(int r,
int c)
getBackground in interface TableLensr - row number.c - column number.
protected abstract inetsoft.report.internal.table.MergedTable.Visitor getVisitor()
protected void finalize()
throws Throwable
finalize in class ObjectThrowablepublic void dispose()
dispose in interface XTablepublic String getColumnIdentifier(int col)
getColumnIdentifier in interface XTablecol - the specified column index.
public void setColumnIdentifier(int col,
String identifier)
setColumnIdentifier in interface XTablecol - the specified column index.identifier - the column indentifier of the column. The identifier
might be different from the column name, for it may contain more
locating information than the column name.protected SetTableLens.Row getRow(int row)
row - the specified row index.
protected boolean isSetRowsInitialized()
protected void addSetRow(SetTableLens.Row row)
protected int getSetRowCount()
|
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 | ||||||||