Class DataTablesRequest.Order
java.lang.Object
org.apache.juneau.console.datatables.DataTablesRequest.Order
- Enclosing class:
- DataTablesRequest
A DataTables ordering descriptor (
order[i]): the index of the ordered column plus its direction.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the index (intocolumns) of the column to order by.getDir()Returns the sort direction ("asc"or"desc").getName()Returns the ordered column'sname(DataTables 2.x echoescolumns[column].namehere).setColumn(int v) Sets the index of the column to order by.Sets the sort direction.Sets the ordered column's name.
-
Constructor Details
-
Order
public Order()
-
-
Method Details
-
getColumn
Returns the index (intocolumns) of the column to order by.- Returns:
- The column index, or
-1if unset.
-
setColumn
Sets the index of the column to order by.- Parameters:
v- The value.- Returns:
- This object.
-
getDir
Returns the sort direction ("asc"or"desc").- Returns:
- The direction, or
null if none.
-
setDir
Sets the sort direction.- Parameters:
v- The value.- Returns:
- This object.
-
getName
Returns the ordered column'sname(DataTables 2.x echoescolumns[column].namehere). Carried for wire fidelity; the adapter resolves the column throughcolumn.- Returns:
- The name, or
null if none.
-
setName
Sets the ordered column's name.- Parameters:
v- The value.- Returns:
- This object.
-