Class DataTablesRequest.Column

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

public static class DataTablesRequest.Column extends Object
A DataTables column descriptor (columns[i]).
  • Constructor Details

  • Method Details

    • getData

      Returns the column's data source (the row-data key / bean-property name).
      Returns:
      The data source, or null if none.
    • getDataProperty

      @BeanProp("data") public Object getDataProperty()
      Bean-property view of data typed as Object, so the property type matches setData(Object) and the parser accepts a bare JSON number as well as a string.
      Returns:
      The data source, or null if none.
    • setData

      Sets the column's data source.

      DataTables sends data as a string (object source) or a bare JSON number (array source), so this accepts any value and normalizes it to its string form; getData() always returns a string.

      Parameters:
      v - The value (a string or a number).
      Returns:
      This object.
    • getName

      public String getName()
      Returns the column's name (a fallback key when data is absent).
      Returns:
      The name, or null if none.
    • setName

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

      public boolean isSearchable()
      Returns whether this column may be searched (default true).
      Returns:
      true if searchable.
    • setSearchable

      Sets whether this column may be searched.
      Parameters:
      v - The value.
      Returns:
      This object.
    • isOrderable

      public boolean isOrderable()
      Returns whether this column may be ordered (default true).
      Returns:
      true if orderable.
    • setOrderable

      Sets whether this column may be ordered.
      Parameters:
      v - The value.
      Returns:
      This object.
    • getSearch

      Returns this column's search descriptor.
      Returns:
      The column search, or null if none.
    • setSearch

      Sets this column's search descriptor.
      Parameters:
      v - The value.
      Returns:
      This object.