/**
* Returns the sort direction for this panel.
* @return
*/
private IGridSortState.Direction getSortDirection(IGridColumn column) {
IGridSortState state = getSortState();
// we are interested only in the column with highest priority and it must match this panel's sort property
if (state.getColumns().size() > 0 && state.getColumns().get(0).getPropertyName().equals(column.getSortProperty())) {
return state.getColumns().get(0).getDirection();
} else {
return null;
}
}