public class

ColumnSortList

extends Object
java.lang.Object
   ↳ com.google.gwt.user.cellview.client.ColumnSortList

Class Overview

An ordered list containing the sort history of Columns in a table. The 0th item is the ColumnSortList.ColumnSortInfo of the most recently sorted column.

Summary

Nested Classes
class ColumnSortList.ColumnSortInfo Information about the sort order of a specific column in a table. 
interface ColumnSortList.Delegate The delegate that handles modifications to the list. 
Public Constructors
ColumnSortList()
Construct a new ColumnSortList without a ColumnSortList.Delegate.
ColumnSortList(ColumnSortList.Delegate delegate)
Construct a new ColumnSortList with the specified ColumnSortList.Delegate.
Public Methods
void clear()
Removes all of the elements from this list.
boolean equals(Object obj)
Check if the specified object equals this list.
ColumnSortList.ColumnSortInfo get(int index)
Get the ColumnSortList.ColumnSortInfo at the specified index.
int hashCode()
void insert(int index, ColumnSortList.ColumnSortInfo sortInfo)
Inserts the specified ColumnSortList.ColumnSortInfo at the specified position in this list.
ColumnSortList.ColumnSortInfo push(Column<?, ?> column)
Push a Column onto the list at index zero, setting ascending to true.
void push(ColumnSortList.ColumnSortInfo sortInfo)
Push a ColumnSortList.ColumnSortInfo onto the list at index zero.
boolean remove(ColumnSortList.ColumnSortInfo sortInfo)
Remove a ColumnSortList.ColumnSortInfo from the list.
int size()
Get the size of the list.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ColumnSortList ()

Construct a new ColumnSortList without a ColumnSortList.Delegate.

public ColumnSortList (ColumnSortList.Delegate delegate)

Construct a new ColumnSortList with the specified ColumnSortList.Delegate.

Parameters
delegate the ColumnSortList.Delegate to inform of modifications

Public Methods

public void clear ()

Removes all of the elements from this list.

public boolean equals (Object obj)

Check if the specified object equals this list. Two ColumnSortList are equals if they are the same size, and all entries are equals and in the same order.

public ColumnSortList.ColumnSortInfo get (int index)

Get the ColumnSortList.ColumnSortInfo at the specified index.

Parameters
index the index

public int hashCode ()

public void insert (int index, ColumnSortList.ColumnSortInfo sortInfo)

Inserts the specified ColumnSortList.ColumnSortInfo at the specified position in this list. If the column already exists in the sort info, the index will be adjusted to account for any removed entries.

Parameters
sortInfo the ColumnSortList.ColumnSortInfo to add

public ColumnSortList.ColumnSortInfo push (Column<?, ?> column)

Push a Column onto the list at index zero, setting ascending to true. If the column already exists, it will be removed from its current position and placed at the start of the list. If the Column is already at the start of the list, its ascending bit will be flipped (ascending to descending and vice versa).

Parameters
column the Column to push
Returns

public void push (ColumnSortList.ColumnSortInfo sortInfo)

Push a ColumnSortList.ColumnSortInfo onto the list at index zero. If the column already exists, it will be removed from its current position and placed at the start of the list.

Parameters
sortInfo the ColumnSortList.ColumnSortInfo to push

public boolean remove (ColumnSortList.ColumnSortInfo sortInfo)

Remove a ColumnSortList.ColumnSortInfo from the list.

Parameters
sortInfo the ColumnSortList.ColumnSortInfo to remove

public int size ()

Get the size of the list.

Returns