|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.azalient.api.file.table.ResultsTableAdapter
public class ResultsTableAdapter
This adapter allows the creation of a results table from any table implementing TableW
| Constructor Summary | |
|---|---|
ResultsTableAdapter(IResultsPage page,
TableW tableW)
Create a new results table on the given page |
|
| Method Summary | |
|---|---|
Object[] |
colNameObjects()
Return an array of all column name objects. |
String |
columnName(Object nameObj)
Map a column name object to a printable name. |
void |
destroy()
Called when the table is no longer required, to discard references held in the table, for example to the parent page |
void |
finishedW(PageW page)
The writer is finished |
CellF |
format(Object col,
int row)
Return the format for (column, row) cell. |
int |
headerRows()
The number of header rows in this table. |
Class[] |
keyTypes()
The type and number of key columns in this table. |
void |
newPage(IPage newPage)
Move this table to a new page |
void |
newResultsPage(IResultsPage page)
Move this table to be included in the given page. |
IPage |
page()
The page to which this table belongs |
String |
pageName()
The name of the page on which this table is found |
PageType |
pageType()
|
RecordW[] |
recordArray()
Return an array all records. |
IResultsPage |
resultsPage()
A reference to the results page that contains this table |
boolean |
save()
save the table to current open file |
void |
save(SavingStatus ss)
save the table to current open file |
String |
tableName()
|
int |
width(Object col)
Set the width of a column, return -1 to get default width |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResultsTableAdapter(IResultsPage page,
TableW tableW)
page - the results page that will hold the tabletableW - the table of data used to create the results table.| Method Detail |
|---|
public void newResultsPage(IResultsPage page)
ResultsTable
newResultsPage in interface ResultsTablepublic IResultsPage resultsPage()
ResultsTable
resultsPage in interface ResultsTablepublic String columnName(Object nameObj)
TableW
columnName in interface TableWnameObj - the column key, which may be the same as the name
public CellF format(Object col,
int row)
TableW
format in interface TableWcol - The key specifying the column of the cell to be formattedrow - The row index for the cell to be formatted
public RecordW[] recordArray()
TableW
recordArray in interface TableWpublic boolean save()
TableW
save in interface TableWpublic int width(Object col)
TableW
width in interface TableWpublic int headerRows()
Table
headerRows in interface Tablepublic Class[] keyTypes()
TableIf you create a table/object definition with more than one key column, and the uniqueness of the name depends on the key columns after the first, then the name() function should return a concatenation of the key column objects otherwise the lookup() function will fail, the objects which have the same first column value but differ in the others will not be added to the store, as they will appear to be duplicate entries.
See TypeObject.keyString(Object[])
See IRecord.name()
keyTypes in interface Tablepublic IPage page()
ITable
page in interface ITablepublic String pageName()
ITable
pageName in interface ITablepublic Object[] colNameObjects()
ITableType
colNameObjects in interface ITableTypepublic PageType pageType()
pageType in interface ITableTypepublic String tableName()
tableName in interface ITableTypepublic void finishedW(PageW page)
TableW
finishedW in interface TableWpublic void newPage(IPage newPage)
TableW
newPage in interface TableWpublic void save(SavingStatus ss)
TableW
save in interface TableWpublic void destroy()
Table
destroy in interface Table
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||