Class SortItem
java.lang.Object
com.github.martincooper.datatable.sorting.SortItem
SortItem class. Used to perform table multi sorts.
Created by Martin Cooper on 21/07/2017.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.github.martincooper.datatable.sorting.ColumnIdentityReturns the column identity.io.vavr.control.Try<IDataColumn>Returns the column from the table.Returns the sort order.
-
Constructor Details
-
SortItem
SortItem constructor. Identify by column name.- Parameters:
columnName- The column name.
-
SortItem
SortItem constructor. Identify by column name.- Parameters:
columnName- The column name.sortOrder- The sort order.
-
SortItem
SortItem constructor. Identify by column index.- Parameters:
columnIndex- The column index.
-
SortItem
SortItem constructor. Identify by column index.- Parameters:
columnIndex- The column index.sortOrder- The sort order.
-
-
Method Details
-
sortOrder
Returns the sort order.- Returns:
- Returns the sort order.
-
columnIdentity
public com.github.martincooper.datatable.sorting.ColumnIdentity columnIdentity()Returns the column identity.- Returns:
- Returns the column identity.
-
getColumn
Returns the column from the table.- Parameters:
table- The table to get the column from.- Returns:
- Returns the column.
-