com.jidesoft.grid
Interface SortItemSupport.SortOrderHandler
- All Known Subinterfaces:
- SortableTableModel.SortOrderHandler
- Enclosing class:
- SortItemSupport
public static interface SortItemSupport.SortOrderHandler
A handler to handle the toggling of sort order. Usually the first click on the table header will sort that column
ascendingly. Clicking again will sort it descendingly. The third click will unsort. However there are cases that
you want a different behavior. For example, you might not want the unsorted state on the third click. In those
cases, you can use SortItemSupport.SortOrderHandler
and SortableTableModel.setSortOrderHandler(com.jidesoft.grid.SortableTableModel.SortOrderHandler)
to provide your own way to toggle the sort order.
toggleSortOrder
void toggleSortOrder(int column,
boolean extend)