|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class enables to describe a report that is presented as a table. This interface makes it quick and easy to plug a report in a TableModel. Classes that implement this interface should be careful not to reference any GUI class or object, so that they can be used in a graphic free environment (such as a unix webserver for instance).
Method Summary | |
void |
addReportChangeListener(ReportChangeListener listener)
Adds a listener to the report. |
void |
clear()
This method enables to clear the report lines. |
java.lang.Class |
getColumnClass(int columnIndex)
This method enables to access the class of the objects returned by the getValueAt for this column. |
int |
getColumnCount()
This enables to know the range of values for the column indexes. |
int |
getColumnIndex(java.lang.String columnName)
This method enables to get the column index from its name. |
java.lang.String |
getColumnName(int index)
This is a convenience method to recover the name of the column from its index. |
java.lang.String[] |
getColumnNames()
This method enables to get the names of the columns present in the Report. |
ReportFilter |
getFilter()
This methods returns a filter to apply to this report. |
int |
getRowCount()
This enables to know the range of values for the row indexes. |
java.lang.String |
getTitle()
This method enables to access the title of the Report. |
java.lang.Object |
getValueAt(int row,
int column)
This method gives access to the value at the given row and column for this report. |
void |
removeReportChangeListener(ReportChangeListener listener)
Removes a listener from the list. |
void |
setFilter(ReportFilter filter)
This method enables to change the filter that applies to this report. |
Method Detail |
public java.lang.String getTitle()
public java.lang.String[] getColumnNames()
public int getColumnIndex(java.lang.String columnName)
columnName
- the name of the column for which we search the index.
public java.lang.String getColumnName(int index)
index
- the index of the column for which we search the name.
public int getColumnCount()
public int getRowCount()
public java.lang.Object getValueAt(int row, int column)
row
- the row for which we want a value.column
- the column for which we want a value.
public void addReportChangeListener(ReportChangeListener listener)
listener
- the listener that will receive ReportChangeEvents.public void removeReportChangeListener(ReportChangeListener listener)
listener
- the listener to remove from the list of listeners on this
report.public void clear()
public ReportFilter getFilter()
public void setFilter(ReportFilter filter)
filter
- the new filter to use on this report.public java.lang.Class getColumnClass(int columnIndex)
columnIndex
- the index of the queried column.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |