|
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.xnode.XNodeTableLens
public class XNodeTableLens
Table lens used to convert a data tree to a table. If the data tree is already a table, the table is used directly. Otherwise, if the data tree is a sequence, each item in the sequence is transformed into a row. Otherwise, the tree is converted into a one row table, with the columns from each branch of the tree.
Note: only after setNode is called could we access it as a table lens.
| Field Summary | |
|---|---|
protected XTable |
table
|
| Fields inherited from class inetsoft.report.lens.AbstractTableLens |
|---|
isLeftAlign |
| Fields inherited from interface inetsoft.report.TableLens |
|---|
BREAK_BORDER, NULL |
| Fields inherited from interface inetsoft.uql.XTable |
|---|
EOT |
| Constructor Summary | |
|---|---|
XNodeTableLens()
Create an empty XNodeTableLens. |
|
XNodeTableLens(XNode root)
Create a table from a data tree. |
|
| Method Summary | |
|---|---|
void |
cancel()
Cancel the lens and running queries if supported |
void |
clearCache()
Clear all cached data. |
XNodeTableLens |
cloneShared()
Make a clone of the table with shared data. |
void |
dispose()
Dispose the table lens. |
int |
getAppliedMaxRows()
Get the applied max rows. |
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 |
getColCount()
Return the number of columns in the table. |
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. |
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. |
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 |
getRowCount()
Return the number of rows in the table. |
short |
getShort(int r,
int c)
Get the short value in one row. |
inetsoft.uql.table.XSwappableTable |
getSwappableTable()
Get swappable 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. |
boolean |
isCancelled()
Check the XNodeTableLens to see if it is cancelled. |
boolean |
isNull(int r,
int c)
Check if the value at one cell is null. |
boolean |
isPrimitive(int col)
Check if is primitive. |
boolean |
isRecursiveDispose()
Check if should dispose tables recursively when dispose this table. |
boolean |
isTimeoutTable()
Check if a table is a result of timeout. |
boolean |
isValid()
Check if this table lens is valid for use. |
boolean |
moreRows(int row)
Check if there are more rows. |
void |
setNode(XNode root)
Set the data tree used to create a table. |
void |
setObject(int r,
int c,
Object v)
Set the cell value. |
void |
setRecursiveDispose(boolean rdispose)
Set whether should dispose tables recursively when dispose this table. |
| Methods inherited from class inetsoft.report.lens.AbstractTableLens |
|---|
addChangeListener, clone, containsDrill, containsFormat, findColumnByIdentifier, fireChangeEvent, getAlignment, getBackground, getColBorder, getColBorderColor, getColType, getColumnIdentifier, getColWidth, getDefaultFormat, getFont, getForeground, getInsets, getRowBorder, getRowBorderColor, getRowHeight, getSpan, getXDrillInfo, isLineWrap, 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, getAlignment, getBackground, getColBorder, getColBorderColor, getColWidth, getDefaultFormat, getFont, getForeground, getInsets, getRowBorder, getRowBorderColor, getRowHeight, getSpan, getXDrillInfo, isLineWrap, removeChangeListener |
| Methods inherited from interface inetsoft.uql.XTable |
|---|
getColType, getColumnIdentifier, setColumnIdentifier |
| Field Detail |
|---|
protected XTable table
| Constructor Detail |
|---|
public XNodeTableLens()
public XNodeTableLens(XNode root)
| Method Detail |
|---|
public void setNode(XNode root)
public void cancel()
cancel in interface inetsoft.report.internal.table.CancellableTableLenspublic boolean isCancelled()
isCancelled in interface inetsoft.report.internal.table.CancellableTableLenspublic boolean isValid()
public void clearCache()
clearCache in interface inetsoft.report.internal.table.CachedTableLenspublic void setRecursiveDispose(boolean rdispose)
public boolean isRecursiveDispose()
public void dispose()
dispose in interface XTabledispose in class AbstractTableLenspublic 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 final 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 XNodeTableLens cloneShared()
public TableDataDescriptor getDescriptor()
getDescriptor in interface TableLensgetDescriptor in interface XTablegetDescriptor in class AbstractTableLenspublic int getAppliedMaxRows()
public boolean isTimeoutTable()
public inetsoft.uql.table.XSwappableTable getSwappableTable()
|
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 | ||||||||