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

Class IColumnGenerator

source code

object --+
         |
        IColumnGenerator

Used to create "generated columns"; columns that exist only in the Table, not in the underlying IContainer. Implement this interface and pass it to Table.addGeneratedColumn along with an id for the column to be generated.

Instance Methods [hide private]
 
generateCell(self, source, itemId, columnId)
Called by Table when a cell in a generated column needs to be generated.
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]

generateCell(self, source, itemId, columnId)

source code 

Called by Table when a cell in a generated column needs to be generated.

Parameters:
  • source - the source Table
  • itemId - the itemId (aka rowId) for the of the cell to be generated
  • columnId - the id for the generated column (as specified in addGeneratedColumn)
Returns:
A IComponent that should be rendered in the cell or a string that should be displayed in the cell. Other return values are not supported.