Following LiveDocs overview on ItemRenderer usage is fairly clear. I'm
able to reproduce the Inline itemrender that shows State/Capitals/link
to popup.

But i'm trying to implement something with the complexity (outlined at
http://www.colettas.org/?p=85) of adding a decorator to existing
labels (adapt text label to display the associated accelerator key).

Dave offers this high-level view of what's required in the itemrenderer...

2. Subclass MenuItemRenderer, and override createChildren(),
measure(), updateDisplayList(), and the data setter function. In the
createChildren() override, create a UITextField and add it as a child.
In measure(), adjust measuredWidth by the textWidth of the
UITextField. In updateDisplayList(), set your UITextField's x
position, and in the data setter, get the accelerator decoration text
out of the value object and set it into your UITextField.

Would very much appreciate seeing that  implemented in metacode or
viewable sample.

thx
--steve...

Reply via email to