org.tigris.scarab.util
Class TableModel

java.lang.Object
  extended byorg.tigris.scarab.util.TableModel
Direct Known Subclasses:
ReportTableModel

public abstract class TableModel
extends java.lang.Object

A model that provides for an application to present a set of tabular data. Can be used along with a velocity macro to create a table.

Version:
$Id: TableModel.java 7502 2003-03-28 00:02:24Z jon $
Author:
John D. McNally

Nested Class Summary
 class TableModel.ColumnHeading
           
 class TableModel.Heading
           
 class TableModel.RowHeading
           
 
Constructor Summary
TableModel()
           
 
Method Summary
abstract  int getColumnCount()
           
 java.util.List getHeadings()
          Get the value of headings.
abstract  int getRowCount()
           
 java.util.List getRows()
          Get the value of rows.
abstract  java.lang.Object getValueAt(int row, int column)
           
static boolean isColumnHeading(java.lang.Object obj)
           
static boolean isDate(java.lang.Object obj)
           
static boolean isHeading(java.lang.Object obj)
           
 void setHeadings(java.util.List v)
          Set the value of headings.
 void setRows(java.util.List v)
          Set the value of rows.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableModel

public TableModel()
Method Detail

isDate

public static boolean isDate(java.lang.Object obj)

isHeading

public static boolean isHeading(java.lang.Object obj)

isColumnHeading

public static boolean isColumnHeading(java.lang.Object obj)

getColumnCount

public abstract int getColumnCount()

getRowCount

public abstract int getRowCount()

getValueAt

public abstract java.lang.Object getValueAt(int row,
                                            int column)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

getHeadings

public java.util.List getHeadings()
Get the value of headings.

Returns:
value of headings.

setHeadings

public void setHeadings(java.util.List v)
Set the value of headings.

Parameters:
v - Value to assign to headings.

getRows

public java.util.List getRows()
Get the value of rows.

Returns:
value of rows.

setRows

public void setRows(java.util.List v)
Set the value of rows.

Parameters:
v - Value to assign to rows.


Copyright © 2000-2004 Tigris.org. All Rights Reserved.