Package muntjac :: Package ui :: Module table :: Class ICellStyleGenerator
[hide private]
[frames] | no frames]

Class ICellStyleGenerator

source code

object --+
         |
        ICellStyleGenerator

Allow to define specific style on cells (and rows) contents. Implements this interface and pass it to Table.setCellStyleGenerator. Row styles are generated when porpertyId is null. The CSS class name that will be added to the cell content is v-table-cell-content-[style name], and the row style will be v-table-row-[style name].

Instance Methods [hide private]
 
getStyle(self, itemId, propertyId)
Called by Table when a cell (and row) is painted.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

getStyle(self, itemId, propertyId)

source code 

Called by Table when a cell (and row) is painted.

Parameters:
  • itemId - The itemId of the painted cell
  • propertyId - The propertyId of the cell, null when getting row style
Returns:
The style name to add to this cell or row. (the CSS class name will be v-table-cell-content-[style name], or v-table-row-[style name] for rows)