|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.webapp.table.sort.SortableTableModel org.nuxeo.ecm.webapp.table.model.GenericTableModel org.nuxeo.ecm.webapp.table.model.TableModel
@Deprecated public class TableModel
New custom data model implementation. In the beginning will be able to maintain user selections.
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 |
---|
public TableModel(List<TableColHeader> columnHeaders, List<TableRow> data) throws ClientException
ClientException
Method Detail |
---|
public void verifyRowConsistency(TableRow row) throws ClientException
verifyRowConsistency
in class GenericTableModel
ClientException
public void process(ActionEvent event)
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.
event
- public TableRow getCurrentRow()
public void setCurrentRow(TableRow currentRow)
public int getSelectionColumnIndex() throws ClientException
ClientException
public int computeSelectionColumnIndex() throws ClientException
ClientException
public List<TableRow> getSelectedRows() throws ClientException
ClientException
public void selectAllRows(ActionEvent event) throws ClientException
event
-
ClientException
public void selectAllRows(boolean checked) throws ClientException
ClientException
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |