/*
* Ext GWT 2.2.4 - Ext for GWT
* Copyright(c) 2007-2010, Ext JS, LLC.
* licensing@extjs.com
*
* http://extjs.com/license
*/
package com.extjs.gxt.ui.client.data;
import com.extjs.gxt.ui.client.Style.SortDir;
/**
* A <code>TreeLoader</code> subclass that adds support for remote sorting.
*
* @param <M> the model data type
*/
public interface RemoteSortTreeLoader<M extends ModelData> extends TreeLoader<M> {
/**
* Returns <code>true</code> if remote sorting is enabled.
*
* @return the remote sort state
*/
public boolean isRemoteSort();
/**
* Returns the current sort direction.
*
* @return the sort direction
*/
public SortDir getSortDir();
/**
* Returns the current sort field.
*
* @return the sort field
*/
public String getSortField();
/**
* Sets the current sort direction.
*
* @param dir the sort direction
*/
public void setSortDir(SortDir dir);
/**
* Sets the current sort field.
*
* @param field the sort field
*/
public void setSortField(String field);
/**
* Sets the remote sort state.
*
* @param remote true for remote sort, false for local sorting
*/
public void setRemoteSort(boolean remote);
}