Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.richfaces.model.internal
Class ComponentSortableDataModel

    java.lang.Object
      javax.faces.model.DataModel
          org.ajax4jsf.model.ExtendedDataModel
              org.richfaces.model.ScrollableTableDataModel
                  org.richfaces.model.internal.ComponentSortableDataModel

    public class ComponentSortableDataModel

extends org.richfaces.model.ScrollableTableDataModel

Author:
  Maksim Kaszynski

Nested Class Summary

Nested classes/interfaces inherited from class org.richfaces.model.ScrollableTableDataModel
`org.richfaces.model.ScrollableTableDataModel.SimpleRowKey`

Constructor Summary
`ComponentSortableDataModel(java.lang.String var, java.lang.Object value)`

Method Summary
`int` | `getRowCount()`
`java.lang.Object` | `getWrappedData()`
`java.util.List` | `loadData(int startRow, int endRow, org.richfaces.model.SortOrder sortOrder)`
`protected java.util.List` | `prepareCollection(javax.faces.context.FacesContext context, java.util.List collection, org.richfaces.model.SortOrder sortOrder)` Wrap every list element with reflective sorting object, perform sorting, and then unwrap.
`void` | `setWrappedData(java.lang.Object value)`

Methods inherited from class org.richfaces.model.ScrollableTableDataModel
`getId, getObjectById, getRowData, getRowIndex, getRowKey, isRowAvailable, setRowIndex, setRowKey, walk`

Methods inherited from class org.ajax4jsf.model.ExtendedDataModel
`getSerializableModel`

Methods inherited from class javax.faces.model.DataModel
`addDataModelListener, getDataModelListeners, removeDataModelListener`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ComponentSortableDataModel

    public ComponentSortableDataModel(java.lang.String var,
                                      java.lang.Object value)

Method Detail

### prepareCollection

    protected java.util.List prepareCollection(javax.faces.context.FacesContext context,
                                               java.util.List collection,
                                               org.richfaces.model.SortOrder sortOrder)

  Wrap every list element with reflective sorting object, perform sorting, and then unwrap.

  Parameters:
    `context` -
    `collection` -
    `sortOrder` -
  Returns:

### loadData

    public java.util.List loadData(int startRow,
                                   int endRow,
                                   org.richfaces.model.SortOrder sortOrder)

  Specified by:
    `loadData` in class `org.richfaces.model.ScrollableTableDataModel`

### getRowCount

    public int getRowCount()

  Specified by:
    `getRowCount` in class `javax.faces.model.DataModel`

### getWrappedData

    public java.lang.Object getWrappedData()

  Specified by:
    `getWrappedData` in class `javax.faces.model.DataModel`

### setWrappedData

    public void setWrappedData(java.lang.Object value)

  Specified by:
    `setWrappedData` in class `javax.faces.model.DataModel`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2008. All Rights Reserved.