Class ColumnSort

java.lang.Object
org.kuali.rice.krad.uif.util.ColumnSort
All Implemented Interfaces:
Serializable

public class ColumnSort extends Object implements Serializable
Holds the information for sorting a table by a column.
  • column index
  • direction
  • sort type
Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
  • Constructor Details

    • 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 Details

    • 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