Class DataTablesRequest.Column
java.lang.Object
org.apache.juneau.console.datatables.DataTablesRequest.Column
- Enclosing class:
- DataTablesRequest
A DataTables column descriptor (
columns[i]).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetData()Returns the column's data source (the row-data key / bean-property name).Bean-property view ofdatatyped asObject, so the property type matchessetData(Object)and the parser accepts a bare JSON number as well as a string.getName()Returns the column's name (a fallback key whendatais absent).Returns this column's search descriptor.booleanReturns whether this column may be ordered (defaulttrue ).booleanReturns whether this column may be searched (defaulttrue ).Sets the column's data source.Sets the column's name.setOrderable(boolean v) Sets whether this column may be ordered.Sets this column's search descriptor.setSearchable(boolean v) Sets whether this column may be searched.
-
Constructor Details
-
Column
public Column()
-
-
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
Bean-property view ofdatatyped asObject, so the property type matchessetData(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
dataas 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
Returns the column's name (a fallback key whendatais absent).- Returns:
- The name, or
null if none.
-
setName
Sets the column's name.- Parameters:
v- The value.- Returns:
- This object.
-
isSearchable
Returns whether this column may be searched (defaulttrue ).- Returns:
true if searchable.
-
setSearchable
Sets whether this column may be searched.- Parameters:
v- The value.- Returns:
- This object.
-
isOrderable
Returns whether this column may be ordered (defaulttrue ).- 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.
-