org.kuali.rice.krad.uif.util
Class ColumnSort

java.lang.Object
  extended by org.kuali.rice.krad.uif.util.ColumnSort

public class ColumnSort
extends Object

Holds the information for sorting a table by a column.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Nested Class Summary
static class ColumnSort.Direction
          Sort direction, either ASCending or DESCending.
 
Constructor Summary
ColumnSort(int columnIndex, ColumnSort.Direction direction, String sortType)
          Constructs a ColumnSort instance.
 
Method Summary
 boolean equals(Object o)
           
 int getColumnIndex()
          Get the column index.
 ColumnSort.Direction getDirection()
          Get the sort direction.
 String getSortType()
          Get the sort type.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColumnSort

public ColumnSort(int columnIndex,
                  ColumnSort.Direction direction,
                  String sortType)
Constructs a ColumnSort instance.

Parameters:
columnIndex - the index of the column to sort on
direction - the direction of the sort
sortType - the type of the sort -- see UifConstants.TableToolsValues.
Method Detail

getColumnIndex

public int getColumnIndex()
Get the column index.

Returns:
the column index

getDirection

public ColumnSort.Direction getDirection()
Get the sort direction.

Returns:
the sort direction

getSortType

public String getSortType()
Get the sort type.

Returns:
the sort type

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.