Class DataTablesRequest.Order

java.lang.Object
org.apache.juneau.console.datatables.DataTablesRequest.Order
Enclosing class:
DataTablesRequest

public static class DataTablesRequest.Order extends Object
A DataTables ordering descriptor (order[i]): the index of the ordered column plus its direction.
  • Constructor Details

  • Method Details

    • getColumn

      public int getColumn()
      Returns the index (into columns) of the column to order by.
      Returns:
      The column index, or -1 if unset.
    • setColumn

      Sets the index of the column to order by.
      Parameters:
      v - The value.
      Returns:
      This object.
    • getDir

      public String 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

      public String getName()
      Returns the ordered column's name (DataTables 2.x echoes columns[column].name here). Carried for wire fidelity; the adapter resolves the column through column.
      Returns:
      The name, or null if none.
    • setName

      Sets the ordered column's name.
      Parameters:
      v - The value.
      Returns:
      This object.