* @see net.pleso.framework.client.ui.controls.dataGrid.interfaces.ISortableColumnHeaderListener#fireOrder(net.pleso.framework.client.ui.controls.dataGrid.SortableColumnHeader)
*/
public void fireOrder(SortableColumnHeader columnHeader) {
if (columns[columnHeader.getColumnIndex()] instanceof IRBDataColumn) {
// get IRBDataColumn from columns array by columnHeader
IRBDataColumn rbDataColumn = (IRBDataColumn) columns[columnHeader.getColumnIndex()];
// set new column for order
params.setOrderByColumnName(rbDataColumn.getDataColumn().getName());
// if this is same column, than change order direction
if (rbDataColumn.getDataColumn().getName().equals(params.getOrderByColumnName()))
params.setOrderByDirection(!params.getOrderByDirection());
// reload data
loadData();
}
}