|
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.CORBATableLens
public class CORBATableLens
The CORBATableLens is an interface to present a CORBA structure list as the content of a table. It extends the AttributeTableLens so the attributes of the table can be controlled by the users.
It takes an array of CORBA structure, and turns each object into a row in the table. By default it uses all public member of the object as columns, in the same order as they are defined in the class. A list of columns can be set by calling setColumns(). The indexes passed into the setColumns() decide which data member to extract from the structure, and how they are ordered.
The column headers are extracted from the data member name by default. Since the variable names are normally not suitable for displaying, a name mapping is maintained in the CORBATableLens to map a member name to this displaying header, e.g.,
CORBATableLens table = new CORBATableLens(recArray);
table.addNameMapping("firstName", "First Name");
table.addNameMapping("lastName", "Last Name");
table.addNameMapping("addr", "Address");
| 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 | |
|---|---|
CORBATableLens(Object[] data)
Create a table lens from the result of a CORBA call. |
|
CORBATableLens(Vector data)
Create a table lens from the result of a CORBA call. |
|
| Method Summary | |
|---|---|
void |
addNameMapping(String fieldname,
String colname)
Map a field name to a column header. |
int[] |
getColumns()
Get the column indexes to extract from fields in the structure. |
String |
getName(String fieldname)
Get the column header for the field. |
void |
setColumns(int[] columns)
Set the columns to use from the structure. |
| 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 CORBATableLens(Vector data)
data - array of CORBA structure objects.public CORBATableLens(Object[] data)
data - array of CORBA structure objects.| Method Detail |
|---|
public void setColumns(int[] columns)
columns - field indexes.public int[] getColumns()
public void addNameMapping(String fieldname,
String colname)
fieldname - field name in the structure.colname - column header.public String getName(String fieldname)
fieldname - structure field name.
|
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 | ||||||||