Package muntjac :: Package ui :: Module abstract_select :: Class ItemDescriptionGenerator
[hide private]
[frames] | no frames]

Class ItemDescriptionGenerator

source code

object --+
         |
        ItemDescriptionGenerator

Implement this interface and pass it to Tree.setItemDescriptionGenerator or Table.setItemDescriptionGenerator to generate mouse over descriptions ("tooltips") for the rows and cells in Table or for the items in Tree.

Instance Methods [hide private]
 
generateDescription(self, source, itemId, propertyId)
Called by Table when a cell (and row) is painted or a item is painted in Tree
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]

generateDescription(self, source, itemId, propertyId)

source code 

Called by Table when a cell (and row) is painted or a item is painted in Tree

Parameters:
  • source - The source of the generator, the Tree or Table the generator is attached to
  • itemId - The itemId of the painted cell
  • propertyId - The propertyId of the cell, null when getting row description
Returns:
The description or "tooltip" of the item.