|
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.AttributeTableLens
inetsoft.report.lens.DefaultTableLens
public class DefaultTableLens
The DefaultTableLens class provides a default implementation of the TableLens interface. It allows users to store the values of the table as well as the attributes in the object. Since table data is normally retrieved from other sources, it is usually more appropriate to use one of the built-in table lens or creating an application specific table lens to map a data result to a table. Using a DefaultTableLens to created a table will create a copy of the original data.
| Field Summary |
|---|
| Fields inherited from class inetsoft.report.lens.AttributeTableLens |
|---|
alignmap, attritable, backgroundmap, cache, check, colborderCmap, colbordermap, fontmap, foregroundmap, insetsmap, linkmap, presentermap, rowborderCmap, rowbordermap, table, wrapmap |
| 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 | |
|---|---|
DefaultTableLens()
Create an empty table. |
|
DefaultTableLens(int rows,
int cols)
Create a table width specified number of rows and columns. |
|
DefaultTableLens(Object[][] data)
Create a table with initial data. |
|
DefaultTableLens(TableLens lens)
Create a copy of a table lens. |
|
DefaultTableLens(TableLens lens,
boolean dataonly)
Create a copy of a table lens. |
|
| Method Summary | |
|---|---|
void |
addColumn()
Add a column to the end of the table. |
void |
addRow()
Add a row to the end of the table. |
Object |
clone()
Make a copy of this table. |
protected Object |
cloneObject(Object obj)
Perform object level post clone operation. |
TableDataDescriptor |
getDescriptor()
Get internal table data descriptor which contains table structural infos. |
Dimension |
getSpan(int r,
int c)
Return the spanning setting for the cell. |
void |
insertColumn(int col)
Insert a new column to the left of the specified column. |
void |
insertColumn(int col,
int n)
Insert a new column to the left of the specified column. |
void |
insertRow(int row)
Insert a new row above the specified row. |
void |
insertRow(int row,
int n)
Insert a new row above the specified row. |
void |
invalidate()
Invalidate the table filter forcely, and the table filter will perform filtering calculation to validate itself. |
void |
removeColumn(int col)
Remove a column at the specified location. |
void |
removeColumn(int col,
int n)
Remove a column at the specified location. |
void |
removeRow(int row)
Remove the specified row. |
void |
removeRow(int row,
int n)
Remove the specified row. |
void |
setColCount(int cols)
Set the number of columns. |
void |
setData(Object[][] data)
Set the data in this table. |
void |
setDimension(int rows,
int cols)
Set the number of rows and columns. |
void |
setHeaderColCount(int ncol)
Set the number of header columns. |
void |
setHeaderRowCount(int nrow)
Set the number of header rows. |
void |
setObject(int r,
int c,
Object v)
Set the cell value. |
void |
setRowCount(int rows)
Set the number of rows. |
void |
setTable(TableLens table)
Set the base table to be used with the attribute table table. |
void |
setTrailerColCount(int ncol)
Set the number of tail columns. |
void |
setTrailerRowCount(int nrow)
Set the number of tail rows. |
void |
setXMetaInfo(int row,
int col,
XMetaInfo minfo)
Set table meta info. |
| Methods inherited from class inetsoft.report.lens.AbstractTableLens |
|---|
addChangeListener, containsDrill, containsFormat, findColumnByIdentifier, fireChangeEvent, getBoolean, getByte, getDefaultFormat, getDouble, getFloat, getInt, getLong, getShort, getXDrillInfo, isNull, isPrimitive, 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 |
|---|
getBoolean, getByte, getDouble, getFloat, getInt, getLong, getShort, isNull, isPrimitive, setColumnIdentifier |
| Constructor Detail |
|---|
public DefaultTableLens()
public DefaultTableLens(int rows,
int cols)
rows - number of rows.cols - number of columns.public DefaultTableLens(TableLens lens)
public DefaultTableLens(TableLens lens,
boolean dataonly)
dataonly - true if only copy the data from table lens.public DefaultTableLens(Object[][] data)
data - table data.| Method Detail |
|---|
public void setTable(TableLens table)
setTable in interface TableFiltersetTable in class AttributeTableLenstable - base table.
public void setDimension(int rows,
int cols)
rows - number of rows.cols - number of columns.public void setRowCount(int rows)
setRowCount in class AttributeTableLensrows - number of rows.public void setColCount(int cols)
setColCount in class AttributeTableLenscols - number of columns.public void setHeaderRowCount(int nrow)
setHeaderRowCount in class AttributeTableLensnrow - number of header.public void setHeaderColCount(int ncol)
setHeaderColCount in class AttributeTableLensncol - number of header.public void setTrailerRowCount(int nrow)
setTrailerRowCount in class AttributeTableLensnrow - number of tail.public void setTrailerColCount(int ncol)
setTrailerColCount in class AttributeTableLensncol - number of tail.
public void setObject(int r,
int c,
Object v)
setObject in interface XTablesetObject in class AttributeTableLensr - row number.c - column number.v - cell value.public void setData(Object[][] data)
data - table data.public void addRow()
public void insertRow(int row)
public void insertRow(int row,
int n)
row - row index to insert to.n - number of rows to insert.public void removeRow(int row)
public void removeRow(int row,
int n)
public void addColumn()
public void insertColumn(int col)
public void insertColumn(int col,
int n)
col - column index to insert to.n - number of columns to insert.public void removeColumn(int col)
public void removeColumn(int col,
int n)
public Dimension getSpan(int r,
int c)
getSpan in interface TableLensgetSpan in class AttributeTableLensr - row number.c - column number.
public Object clone()
AttributeTableLens
clone in class AttributeTableLens
public void setXMetaInfo(int row,
int col,
XMetaInfo minfo)
row - row number.col - column number.public void invalidate()
invalidate in interface TableFilterinvalidate in class AttributeTableLenspublic TableDataDescriptor getDescriptor()
getDescriptor in interface TableLensgetDescriptor in interface XTablegetDescriptor in class AttributeTableLensprotected Object cloneObject(Object obj)
|
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 | ||||||||