Example usage for com.google.gwt.user.cellview.client Column isDefaultSortAscending

List of usage examples for com.google.gwt.user.cellview.client Column isDefaultSortAscending

Introduction

In this page you can find the example usage for com.google.gwt.user.cellview.client Column isDefaultSortAscending.

Prototype

boolean isDefaultSortAscending

To view the source code for com.google.gwt.user.cellview.client Column isDefaultSortAscending.

Click Source Link

Usage

From source file:com.gafactory.core.client.ui.grids.BaseListGrid.java

License:Open Source License

public void setDefaultSortingColumn(Column<?, ?> column, boolean isAsc) {
    column.setDefaultSortAscending(isAsc);

    ColumnSortList columnSortList = dataGrid.getColumnSortList();
    columnSortList.push(column);// w w w  .  j a  v  a 2s. co  m
    ColumnSortEvent.fire(this, columnSortList);

    loader.addSortInfo(new SortInfoBean(column.getDataStoreName(),
            column.isDefaultSortAscending() ? SortDir.ASC : SortDir.DESC));
}