|
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.MaxRowsTableLens
public class MaxRowsTableLens
Max rows table lens returns limited table rows.
| Field Summary | |
|---|---|
static int |
ALL
A flag indicates all rows included. |
| 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 | |
|---|---|
MaxRowsTableLens()
Constructor. |
|
MaxRowsTableLens(TableLens table)
Constructor. |
|
MaxRowsTableLens(TableLens table,
int max)
Constructor. |
|
| Method Summary | |
|---|---|
void |
cancel()
Cancel the table lens and running queries if supported. |
void |
dispose()
Dispose the distinct table lens. |
protected void |
finalize()
Finalize the distinct table lens. |
int |
getAlignment(int r,
int c)
Return the per cell alignment. |
int |
getAppliedMaxRows()
Get the applied max rows. |
Color |
getBackground(int r,
int c)
Return the per cell background color. |
int |
getBaseColIndex(int c)
Get the base table column index corresponding to the filtered table. |
int |
getBaseRowIndex(int r)
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. |
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. |
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. |
long |
getLong(int r,
int c)
Get the long value in one row. |
int |
getMaxRows()
Get the max row count. |
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 r)
Get the current row heights setting. |
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()
Get the original table. |
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. |
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. |
boolean |
isTimeoutTable()
Check if a table is a result of timeout. |
boolean |
moreRows(int row)
Check if there are more rows. |
void |
setMaxRows(int max)
Set the max row count. |
void |
setObject(int r,
int c,
Object v)
Set the cell value. |
void |
setTable(TableLens table)
Set the base table lenses. |
| 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, 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 |
| Field Detail |
|---|
public static final int ALL
| Constructor Detail |
|---|
public MaxRowsTableLens()
public MaxRowsTableLens(TableLens table)
public MaxRowsTableLens(TableLens table,
int max)
| Method Detail |
|---|
public TableLens getTable()
getTable in interface TableFilterpublic void setTable(TableLens table)
setTable in interface TableFiltertable - the specified base table lens, null is not
allowed.public int getMaxRows()
public void setMaxRows(int max)
max - the specified max row count, header rows excluded.public TableDataDescriptor getDescriptor()
getDescriptor in interface TableLensgetDescriptor in interface XTablegetDescriptor in class AbstractTableLenspublic 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 TableFilterpublic boolean moreRows(int row)
moreRows in interface XTablemoreRows in class AbstractTableLensrow - 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 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 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 Class getColType(int col)
getColType in interface XTablegetColType in class AbstractTableLenscol - 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 int getRowHeight(int r)
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 int getBaseRowIndex(int r)
getBaseRowIndex in interface TableFilterr - row index in the filtered table.
public int getBaseColIndex(int c)
getBaseColIndex in interface TableFilterc - column index in the filtered table.
protected void finalize()
throws Throwable
finalize in class ObjectThrowablepublic void dispose()
dispose in interface XTabledispose in class AbstractTableLenspublic int getAppliedMaxRows()
public boolean isTimeoutTable()
public 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 | ||||||||