flex3 - Unable to select custom item renderer (flex) -
Hi I have created the following item render in MXML, but when I use it in the list for some reason I can not select it Am I doing something wrong?
& lt; Mx: hbox xmlns: mx = "http://www.adobe.com/2006/mxml" horizontal ScrollPolicy = "off" & gt; & Lt; Mx: script & gt; & Lt ;! [Cdata [import com. PBSMDIA.Compci.domain. CLAVENT Calligraphy type; [Bindabal] Private Vaier Calvert Type: Calant Type; Override public function set data (value: object): zero {if (value! = Null) {calEventType = value as CalEventType; ColorBar.setStyle ("background color", calEventType.eventColor); }}]] & Gt; & Lt; / Mx: script & gt; & Lt; Mx: image source = "{calEventType.icon}" /> & Lt; Mx: label text = "{calEventType.name}" selection = "true" /> & Lt; Mx: HBox height = "100%" width = "100%" horizontal alliance = "true" padding right = "20" & gt; & Lt; Mx: box id = "color b" width = "50" height = "100%" & gt; & Lt; / Mx: box & gt;
The renderer is set up on the creation of the basic components of the list as the following.
private function cc (): zero {if (_itemRenderer! = Zero) {lt.itemRenderer = getItemRendererFactory (); }} Private Event getItemRendererFactory (): ClassFactory {New ClassFactory Return (_itemRenderer); }
I do not see any reason because I can not choose it, no signals.
sorted it. I forgot to call super.data = value in override.
Comments
Post a Comment