Package org.kuali.rice.krad.uif.util
Class ColumnSort
java.lang.Object
org.kuali.rice.krad.uif.util.ColumnSort
- All Implemented Interfaces:
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumSort direction, either ASCending or DESCending. -
Constructor Summary
ConstructorsConstructorDescriptionColumnSort(int columnIndex, ColumnSort.Direction direction, String sortType) Constructs a ColumnSort instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanintGet the column index.Get the sort direction.Get the sort type.inthashCode()
-
Constructor Details
-
ColumnSort
Constructs a ColumnSort instance.- Parameters:
columnIndex- the index of the column to sort ondirection- the direction of the sortsortType- the type of the sort -- seeUifConstants.TableToolsValues.
-
-
Method Details
-
getColumnIndex
public int getColumnIndex()Get the column index.- Returns:
- the column index
-
getDirection
Get the sort direction.- Returns:
- the sort direction
-
getSortType
Get the sort type.- Returns:
- the sort type
-
equals
-
hashCode
public int hashCode()
-