com.google.gwt.widgetideas.table.client
Class TableModel.ColumnSortList

java.lang.Object
  extended by com.google.gwt.widgetideas.table.client.TableModel.ColumnSortList
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable, java.lang.Iterable<TableModel.ColumnSortInfo>
Enclosing class:
TableModel<R>

public static class TableModel.ColumnSortList
extends java.lang.Object
implements com.google.gwt.user.client.rpc.IsSerializable, java.lang.Iterable<TableModel.ColumnSortInfo>

An ordered list of sorting info where each entry tells us how to sort a single column. The first entry is the primary sort order, the second entry is the first tie-breaker, and so on.


Constructor Summary
TableModel.ColumnSortList()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 boolean equals(TableModel.ColumnSortList csl)
          Check if this object is equal to another.
 int getPrimaryColumn()
          Get the primary (first) TableModel.ColumnSortInfo's column index.
 TableModel.ColumnSortInfo getPrimaryColumnSortInfo()
          Get the primary (first) TableModel.ColumnSortInfo.
 int hashCode()
           
 boolean isPrimaryAscending()
          Get the primary (first) TableModel.ColumnSortInfo's sort order.
 java.util.Iterator<TableModel.ColumnSortInfo> iterator()
           
 int size()
          Returns the number of TableModel.ColumnSortInfo in the list.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableModel.ColumnSortList

public TableModel.ColumnSortList()
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

equals

public boolean equals(TableModel.ColumnSortList csl)
Check if this object is equal to another.

Parameters:
csl - the other object
Returns:
true if objects are equal

getPrimaryColumn

public int getPrimaryColumn()
Get the primary (first) TableModel.ColumnSortInfo's column index.

Returns:
the primary column or -1 if not sorted

getPrimaryColumnSortInfo

public TableModel.ColumnSortInfo getPrimaryColumnSortInfo()
Get the primary (first) TableModel.ColumnSortInfo.

Returns:
the primary column sort info

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

isPrimaryAscending

public boolean isPrimaryAscending()
Get the primary (first) TableModel.ColumnSortInfo's sort order.

Returns:
true if ascending, false if descending

iterator

public java.util.Iterator<TableModel.ColumnSortInfo> iterator()
Specified by:
iterator in interface java.lang.Iterable<TableModel.ColumnSortInfo>

size

public int size()
Returns the number of TableModel.ColumnSortInfo in the list.

Returns:
the size of the list