ReportCat 1.1

li.netcat.print.table
Interface TableDataModel


public interface TableDataModel

The TableDataModel represents the data of the table. It specifies the number of cells, its values and its types.

Author:
Arthur Marxer

Method Summary
 int getColumnCount()
          Returns the number of columns.
 java.lang.Object getFooterAt(int columnIndex)
          Returns the value of a footer cell.
 java.lang.Object getFooterTypeAt(int columnIndex)
          Returns the type of a footer cell.
 java.lang.Object getHeaderAt(int columnIndex)
          Returns the value of a header cell.
 java.lang.Object getHeaderTypeAt(int columnIndex)
          Returns the type of a header cell.
 int getRowCount()
          Returns the number of data rows without header and footer.
 java.lang.Object getValueAt(int rowIndex, int columnIndex)
          Returns the value of a data cell.
 java.lang.Object getValueTypeAt(int rowIndex, int columnIndex)
          The type of a cell is typically used to find and configure the TableCellDrawer.
 boolean hasFooter()
          Returns true, if this model has a footer.
 boolean hasHeader()
          Returns true, if this model has a header.
 

Method Detail

getRowCount

public int getRowCount()
Returns the number of data rows without header and footer.

Returns:
The number of data rows.

getColumnCount

public int getColumnCount()
Returns the number of columns.

Returns:
The number of columns.

getValueAt

public java.lang.Object getValueAt(int rowIndex,
                                   int columnIndex)
Returns the value of a data cell.

Parameters:
rowIndex - The index of the row. It must be >= 0 and < getRowCount().
columnIndex - The index of the column. It must be >= 0 and < getColumnCount().
Returns:
The value of the data cell.

getValueTypeAt

public java.lang.Object getValueTypeAt(int rowIndex,
                                       int columnIndex)
The type of a cell is typically used to find and configure the TableCellDrawer. It must be usable as a hash key.

Parameters:
rowIndex - The index of the row. It must be >= 0 and < getRowCount().
columnIndex - The index of the column. It must be >= 0 and < getColumnCount().
Returns:
The type of the data cell.

hasHeader

public boolean hasHeader()
Returns true, if this model has a header.

Returns:
true, if this model has a header.

getHeaderAt

public java.lang.Object getHeaderAt(int columnIndex)
Returns the value of a header cell. This method can only be called, if hasHeader() returns true.

Parameters:
columnIndex - The index of the column. It must be >= 0 and < getColumnCount().
Returns:
The value of the header cell.

getHeaderTypeAt

public java.lang.Object getHeaderTypeAt(int columnIndex)
Returns the type of a header cell. The type of a cell is typically used to find and configure the TableCellDrawer. It must be usable as a hash key. This method can only be called, if hasHeader() returns true.

Parameters:
columnIndex - The index of the column. It must be >= 0 and < getColumnCount().
Returns:
The type of the header cell.

hasFooter

public boolean hasFooter()
Returns true, if this model has a footer.

Returns:
true, if this model has a footer.

getFooterAt

public java.lang.Object getFooterAt(int columnIndex)
Returns the value of a footer cell. This method can only be called, if hasFooter() returns true.

Parameters:
columnIndex - The index of the column. It must be >= 0 and < getColumnCount().
Returns:
The value of the footer cell.

getFooterTypeAt

public java.lang.Object getFooterTypeAt(int columnIndex)
Returns the type of a footer cell. The type of a cell is typically used to find and configure the TableCellDrawer. It must be usable as a hash key. This method can only be called, if hasFooter() returns true.

Parameters:
columnIndex - The index of the column. It must be >= 0 and < getColumnCount().
Returns:
The type of the footer cell.

ReportCat 1.1

Copyright 2003 - 2005 NetCat Inc.. All rights reserved. Feedback

Print,Printing,Printer,Java,Java Print,SDK,Java Printing,Printing Java,Print Java,Library,Java Library,Print Library,Report,Reports,Java Report,Java Programming,Java Output,Layout,Page,API,Preview,Print Preview,Content,A4,Free,Output,Header,Footer,Download,Package,Jar,Evaluation, Print,Printing,Printer,Java,Java Print,SDK,Java Printing,Printing Java,Print Java,Library,Java Library,Print Library,Report,Reports,Java Report,Java Programming,Java Output,Layout,Page,API,Preview,Print Preview,Content,A4,Free,Output,Header,Footer,Download,Package,Jar,Evaluation, Print,Printing,Printer,Java,Java Print,SDK,Java Printing,Printing Java,Print Java,Library,Java Library,Print Library,Report,Reports,Java Report,Java Programming,Java Output,Layout,Page,API,Preview,Print Preview,Content,A4,Free,Output,Header,Footer,Download,Package,Jar,Evaluation