Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.webapp.table.model
Class GenericTableModel

java.lang.Object
  extended by org.nuxeo.ecm.webapp.table.sort.SortableTableModel
      extended by org.nuxeo.ecm.webapp.table.model.GenericTableModel
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
TableModel

Deprecated.

@Deprecated
public class GenericTableModel
extends SortableTableModel

A generic table model that can be used as is. Provides support for sorting columns.

Author:
Razvan Caraghin
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.nuxeo.ecm.webapp.table.sort.SortableTableModel
SORT_ASCENDING, SORT_DESCENDING
 
Constructor Summary
GenericTableModel(List<TableColHeader> columnHeaders, List<TableRow> data)
          Deprecated. Initializes a generic table model with data.
 
Method Summary
 void addRow(TableRow newRow)
          Deprecated.  
 void addRows(List<TableRow> newRows)
          Deprecated.  
 DataModel getColumnHeaders()
          Deprecated.  
 Object getCurrentCell()
          Deprecated. Returns the current cell associated with the current column.
 Object getCurrentCellDisplayedValue()
          Deprecated. Returns the displayed value from the cell associated with the curent column and current row.
 DataModel getData()
          Deprecated.  
 void setColumnHeaders(DataModel columnHeaders)
          Deprecated.  
 void setCurrentCellDisplayedValue(Object value)
          Deprecated. Sets the current column /current row cell displayed value.
 void setData(DataModel data)
          Deprecated.  
 void verifyRowConsistency(TableRow row)
          Deprecated. Checks a row for consistency.
 
Methods inherited from class org.nuxeo.ecm.webapp.table.sort.SortableTableModel
doSort, getSort, isAscending, setAscending, setSort
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericTableModel

public GenericTableModel(List<TableColHeader> columnHeaders,
                         List<TableRow> data)
                  throws ClientException
Deprecated. 
Initializes a generic table model with data.

Parameters:
columnHeaders -
data -
Throws:
ClientException
Method Detail

verifyRowConsistency

public void verifyRowConsistency(TableRow row)
                          throws ClientException
Deprecated. 
Checks a row for consistency. Null/no. cells vs no. columns.

Parameters:
row -
Throws:
ClientException

getColumnHeaders

public DataModel getColumnHeaders()
Deprecated. 

setColumnHeaders

public void setColumnHeaders(DataModel columnHeaders)
Deprecated. 

getData

public DataModel getData()
Deprecated. 

setData

public void setData(DataModel data)
Deprecated. 

getCurrentCellDisplayedValue

public Object getCurrentCellDisplayedValue()
Deprecated. 
Returns the displayed value from the cell associated with the curent column and current row.

Returns:

getCurrentCell

public Object getCurrentCell()
Deprecated. 
Returns the current cell associated with the current column. This is the table cell that represents the user clicked cell or the cell that is beign currently displayed.

Returns:

setCurrentCellDisplayedValue

public void setCurrentCellDisplayedValue(Object value)
Deprecated. 
Sets the current column /current row cell displayed value. This will usually be called by JSF itself when a row was selected to update the value for the current cell provided we go to the server.

Parameters:
value -

addRows

public void addRows(List<TableRow> newRows)
             throws ClientException
Deprecated. 
Throws:
ClientException

addRow

public void addRow(TableRow newRow)
            throws ClientException
Deprecated. 
Throws:
ClientException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.