Class QAbstractHtmlTableDataColumn
An abstract column designed to work with QDataGrid and other tables that require more than basic columns. Supports post processing of cell contents for further formatting, and OrderBy clauses.
- QBaseClass
- QAbstractHtmlTableColumn
- QAbstractHtmlTableDataColumn
Direct known subclasses
QHtmlTableCallableColumn, QHtmlTableCheckBoxColumn, QHtmlTableIndexedColumn, QHtmlTableLinkColumn, QHtmlTablePropertyColumn, QVirtualAttributeColumnIndirect known subclasses
ComplexColumn, ExampleCheckColumn1, ExampleCheckColumn2, QDataGrid_CheckBoxColumn, QHtmlTableNodeColumn
public
mixed|string
|
#
FetchCellValue( mixed $item )
Return the raw string that represents the cell value. This version uses a combination of post processing strategies so that you can set column options to format the raw data. If no options are set, then $item will just pass through, or __toString() will be called if its an object. If none of these work for you, just override FetchCellObject and return your formatted string from there. |
abstract public
|
#
FetchCellObject( mixed $item )
Return the value of the cell. FetchCellValue will process this more if needed. Default returns an entire data row and relies on FetchCellValue to extract the needed data. |
public
|
|
public
|
|
public
boolean|integer|mixed|
|
|
public
mixed|
|
OverrideAttributes(),
__call()
|
protected
mixed
|
$objOrderByClause
Order By information. Can be a QQ::Clause, or any kind of object depending on your need |
#
null
|
protected
mixed
|
$objReverseOrderByClause
|
#
null
|
protected
string
|
$strFormat
|
#
null
|
protected
string
|
$strPostMethod
|
#
null
|
protected
callable
|
$objPostCallback
|
#
null
|
$blnHtmlEntities,
$blnRenderAsHeader,
$blnVisible,
$cellParamsCallback,
$intSpan,
$objCellStyler,
$objColStyler,
$objHeaderCellStyler,
$objParentTable,
$strCssClass,
$strHeaderCssClass,
$strId,
$strName
|
public
mixed
|
$OrderByClause
order by info for sorting the column in ascending order. Used by subclasses. Most often this is a QQ::Clause, but can be any data needed. |
public
mixed
|
$ReverseOrderByClause
order by info for sorting the column in descending order. |
public
string
|
$Format
the default format to use for FetchCellValueFormatted(). Used by QDataTables plugin. For date columns it should be a format accepted by QDateTime::qFormat() |
public write-only
string
|
$PostMethod
after the cell object is retrieved, call this method on the obtained object |
public write-only
callable
|
$PostCallback
after the cell object is retrieved, call this callback on the obtained object. If $PostMethod is also set, this will be called after that method call. |
$CellParamsCallback,
$CellStyler,
$ColStyler,
$CssClass,
$HeaderCellStyler,
$HeaderCssClass,
$HtmlEntities,
$Id,
$Name,
$ParentTable,
$RenderAsHeader,
$Span,
$Visible,
$_ParentTable
|