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

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

public static class TableModel.ColumnSortInfo
extends java.lang.Object
implements com.google.gwt.user.client.rpc.IsSerializable

Information about the sort order of a specific column in a table.


Constructor Summary
TableModel.ColumnSortInfo()
          Default Constructor.
TableModel.ColumnSortInfo(int column, boolean ascending)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 boolean equals(TableModel.ColumnSortInfo csi)
          Check if this object is equal to another.
 int getColumn()
           
 int hashCode()
           
 boolean isAscending()
           
 void setAscending(boolean ascending)
          Set whether or not the sorting is ascending or descending.
 void setColumn(int column)
          Set the column index.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableModel.ColumnSortInfo

public TableModel.ColumnSortInfo()
Default Constructor.


TableModel.ColumnSortInfo

public TableModel.ColumnSortInfo(int column,
                                 boolean ascending)
Constructor.

Parameters:
column - the column index
ascending - true if sorted ascending
Method Detail

equals

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

equals

public boolean equals(TableModel.ColumnSortInfo csi)
Check if this object is equal to another. The objects are equal if the column and ascending values are equal.

Parameters:
csi - the other object
Returns:
true if objects are the same

getColumn

public int getColumn()
Returns:
the column index

hashCode

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

isAscending

public boolean isAscending()
Returns:
true if ascending, false if descending

setAscending

public void setAscending(boolean ascending)
Set whether or not the sorting is ascending or descending.

Parameters:
ascending - true if ascending, false if descending

setColumn

public void setColumn(int column)
Set the column index.

Parameters:
column - the column index