com.arsdigita.bebop
Class Table.MatrixTableModelBuilder

java.lang.Object
  extended bycom.arsdigita.util.LockableImpl
      extended bycom.arsdigita.bebop.table.AbstractTableModelBuilder
          extended bycom.arsdigita.bebop.Table.MatrixTableModelBuilder
All Implemented Interfaces:
Lockable, TableModelBuilder
Enclosing class:
Table

public static class Table.MatrixTableModelBuilder
extends AbstractTableModelBuilder

An internal class that creates a table model around a set of data given as a Object[][]. The table models produced by this builder use row numbers, converted to strings, as the key for each column of a row.


Field Summary
 
Fields inherited from class com.arsdigita.bebop.table.AbstractTableModelBuilder
versionId
 
Constructor Summary
Table.MatrixTableModelBuilder(Object[][] data)
           
 
Method Summary
 TableModel makeModel(Table t, PageState s)
          Return a table model for the request represented by s.
 
Methods inherited from class com.arsdigita.util.LockableImpl
isLocked, lock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.arsdigita.util.Lockable
isLocked, lock
 

Constructor Detail

Table.MatrixTableModelBuilder

public Table.MatrixTableModelBuilder(Object[][] data)
Method Detail

makeModel

public TableModel makeModel(Table t,
                            PageState s)
Description copied from class: AbstractTableModelBuilder
Return a table model for the request represented by s. The table model contains all the data that is to be displayed in a table. The returned table model is used only during the duration of that request.

Specified by:
makeModel in interface TableModelBuilder
Specified by:
makeModel in class AbstractTableModelBuilder
Parameters:
t - the table which will use this table model
s - represents the current request
Returns:
the data to be displayed in the table


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC