public final class SortItem extends Object
| Constructor and Description |
|---|
SortItem(Integer columnIndex)
SortItem constructor.
|
SortItem(Integer columnIndex,
SortOrder sortOrder)
SortItem constructor.
|
SortItem(String columnName)
SortItem constructor.
|
SortItem(String columnName,
SortOrder sortOrder)
SortItem constructor.
|
| Modifier and Type | Method and Description |
|---|---|
com.github.martincooper.datatable.sorting.ColumnIdentity |
columnIdentity()
Returns the column identity.
|
io.vavr.control.Try<IDataColumn> |
getColumn(DataTable table)
Returns the column from the table.
|
SortOrder |
sortOrder()
Returns the sort order.
|
public SortItem(String columnName)
columnName - The column name.public SortItem(String columnName, SortOrder sortOrder)
columnName - The column name.sortOrder - The sort order.public SortItem(Integer columnIndex)
columnIndex - The column index.public SortOrder sortOrder()
public com.github.martincooper.datatable.sorting.ColumnIdentity columnIdentity()
public io.vavr.control.Try<IDataColumn> getColumn(DataTable table)
table - The table to get the column from.Copyright © 2017. All rights reserved.