Nuxeo ECM Projects 5.4.3-SNAPSHOT

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

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

Deprecated.

@Deprecated
public class TableModel
extends GenericTableModel

New custom data model implementation. In the beginning will be able to maintain user selections.

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
TableModel(List<TableColHeader> columnHeaders, List<TableRow> data)
          Deprecated.  
 
Method Summary
 int computeSelectionColumnIndex()
          Deprecated. Returns the index of the first special selection row in the model.
 TableRow getCurrentRow()
          Deprecated.  
 List<TableRow> getSelectedRows()
          Deprecated. Returns the list of selected rows.
 int getSelectionColumnIndex()
          Deprecated.  
 void process(ActionEvent event)
          Deprecated. Saves the current user selected row.
 void selectAllRows(ActionEvent event)
          Deprecated. Selects all rows from the table.
 void selectAllRows(boolean checked)
          Deprecated.  
 void setCurrentRow(TableRow currentRow)
          Deprecated.  
 void verifyRowConsistency(TableRow row)
          Deprecated. Also checks if the selection cell is in the same position as the selection column.
 
Methods inherited from class org.nuxeo.ecm.webapp.table.model.GenericTableModel
addRow, addRows, getColumnHeaders, getCurrentCell, getCurrentCellDisplayedValue, getData, setColumnHeaders, setCurrentCellDisplayedValue, setData
 
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

TableModel

public TableModel(List<TableColHeader> columnHeaders,
                  List<TableRow> data)
           throws ClientException
Deprecated. 
Throws:
ClientException
Method Detail

verifyRowConsistency

public void verifyRowConsistency(TableRow row)
                          throws ClientException
Deprecated. 
Also checks if the selection cell is in the same position as the selection column. Also delegates to the parent class method.

Overrides:
verifyRowConsistency in class GenericTableModel
Throws:
ClientException

process

public void process(ActionEvent event)
Deprecated. 
Saves the current user selected row. This could be useful for various operations based on the last user selection.

This method is also used as a marker for a round trip to the server each time a row is selected so that the value associated with the selection cell from that row gets updated.

Parameters:
event -

getCurrentRow

public TableRow getCurrentRow()
Deprecated. 

setCurrentRow

public void setCurrentRow(TableRow currentRow)
Deprecated. 

getSelectionColumnIndex

public int getSelectionColumnIndex()
                            throws ClientException
Deprecated. 
Throws:
ClientException

computeSelectionColumnIndex

public int computeSelectionColumnIndex()
                                throws ClientException
Deprecated. 
Returns the index of the first special selection row in the model.

Returns:
either the index or -1 if not found
Throws:
ClientException

getSelectedRows

public List<TableRow> getSelectedRows()
                               throws ClientException
Deprecated. 
Returns the list of selected rows.

Returns:
Throws:
ClientException

selectAllRows

public void selectAllRows(ActionEvent event)
                   throws ClientException
Deprecated. 
Selects all rows from the table. This should be called when the checkbox on the selection column header is clicked.

Parameters:
event -
Throws:
ClientException

selectAllRows

public void selectAllRows(boolean checked)
                   throws ClientException
Deprecated. 
Throws:
ClientException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.