Nuxeo ECM Projects 5.4.3-SNAPSHOT

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

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
              extended by org.nuxeo.ecm.webapp.table.model.DocModelTableModel
All Implemented Interfaces:
Serializable

Deprecated.

@Deprecated
public class DocModelTableModel
extends TableModel

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
DocModelTableModel(List<TableColHeader> columnHeaders, List<TableRow> data)
          Deprecated.  
 
Method Summary
 void addRow(DocumentModel doc)
          Deprecated. Accept method.
 void documentRemove(DocumentModel docModel)
          Deprecated.  
 void documentRemoved(String fqn)
          Deprecated.  
 void documentUpdate(DocumentModel docModel, boolean pre)
          Deprecated.  
 DocumentModel getSelectedDocModel()
          Deprecated.  
 List<DocumentModel> getSelectedDocs()
          Deprecated.  
 DocModelTableModelVisitor getVisitor()
          Deprecated.  
 void process(ActionEvent event)
          Deprecated. Saves the current user selected row.
 boolean removeRow(DocumentModel doc)
          Deprecated.  
 void setSelectedDocModel(DocumentModel selectedDocModel)
          Deprecated.  
 void setVisitor(DocModelTableModelVisitor visitor)
          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.TableModel
computeSelectionColumnIndex, getCurrentRow, getSelectedRows, getSelectionColumnIndex, selectAllRows, selectAllRows, setCurrentRow
 
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

DocModelTableModel

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

getSelectedDocModel

public DocumentModel getSelectedDocModel()
Deprecated. 
Returns:
Returns the selectedDocModel.

setSelectedDocModel

public void setSelectedDocModel(DocumentModel selectedDocModel)
Deprecated. 
Parameters:
selectedDocModel - The selectedDocModel to set.

verifyRowConsistency

public void verifyRowConsistency(TableRow row)
                          throws ClientException
Deprecated. 
Description copied from class: TableModel
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 TableModel
Throws:
ClientException

process

public void process(ActionEvent event)
Deprecated. 
Description copied from class: TableModel
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.

Overrides:
process in class TableModel

getSelectedDocs

public List<DocumentModel> getSelectedDocs()
                                    throws ClientException
Deprecated. 
Throws:
ClientException

removeRow

public boolean removeRow(DocumentModel doc)
                  throws ClientException
Deprecated. 
Parameters:
doc -
Returns:
true if the document was successfuly removed from this structure
Throws:
ClientException

getVisitor

public DocModelTableModelVisitor getVisitor()
Deprecated. 

setVisitor

public void setVisitor(DocModelTableModelVisitor visitor)
Deprecated. 

addRow

public void addRow(DocumentModel doc)
            throws ClientException
Deprecated. 
Accept method. Calls visit method from the visitor inside if there is a visitor available.
Called when a new document needs to be added to the table model.

Parameters:
doc -
Throws:
ClientException

documentRemove

public void documentRemove(DocumentModel docModel)
Deprecated. 

documentRemoved

public void documentRemoved(String fqn)
Deprecated. 

documentUpdate

public void documentUpdate(DocumentModel docModel,
                           boolean pre)
Deprecated. 

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.