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.apache.tapestry5.grid
Interface GridSortModel

    public interface GridSortModel

Models the sorting applied to the a `GridDataSource`.

Method Summary
`void` | `clear()`
`ColumnSort` | `getColumnSort(java.lang.String columnId)` Identifies how (or if) a column is sorted.
`java.util.List<SortConstraint>` | `getSortConstraints()` Returns a list of sort constraints, identifying which columns are sorted, and how.
`void` | `updateSort(java.lang.String columnId)` Updates the column sort.

Method Detail

### getColumnSort

    ColumnSort getColumnSort(java.lang.String columnId)

  Identifies how (or if) a column is sorted.

  Parameters:
    `columnId` -
  Returns:
    the sort for the indicated column or `ColumnSort.UNSORTED` if the column is not used for sorting

### updateSort

    void updateSort(java.lang.String columnId)

  Updates the column sort. The receiver determines how to handle the sort request.

  Parameters:
    `columnId` - property id of column to sort on

### getSortConstraints

    java.util.List<SortConstraint> getSortConstraints()

  Returns a list of sort constraints, identifying which columns are sorted, and how. May return an empty list (but won't return null).

  See Also:
    `GridDataSource.prepare(int, int, java.util.List)`

### clear

    void clear()

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 © 2003-2012 The Apache Software Foundation.