> Can anyone tell how and when is updateDisplayList called ? 

 

updateDisplayList() is called during the next 'render' event that occurs
after invalidateDisplayList() is called.

 

> I always call super.updateDisplayList() when ever I override it. 

 

This is generally a good idea.

 

> Now once I removed super.updateDisplayList() from the my itemrenderer
and still it was working . 

 

This may have been because UIComponent's implementation of
updateDisplayList() doesn't currently do anything. But it might in some
future release, so it's a good idea to call the supermethod.

 

> if i want to change property of some component like color do i want to
call invalidateDisplayList()?

 

You should call invalidateDisplayList() from a property setter if
changing the property should cause the component to redraw or re-layout
its children. However, colors are usually implemented using styles, not
properties.

 

- Gordon

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of arpan srivastava
Sent: Friday, February 02, 2007 7:40 AM
To: Flex Coders
Subject: [flexcoders] how and when is updateDisplayList called ?

 

  Hi all,
    
          Can anyone tell how and when is updateDisplayList called ? I
always call super.updateDisplayList() when ever I override it. I created
a datagrid which contains line graph in one of it's columns. Now once I
removed super.updateDisplayList() from the my itemrenderer and still it
was working . 

Also if i want to change property of some component like color do i want
to call invalidateDisplayList()?


Thanks,

 

________________________________

Don't get soaked. Take a quick peak at the forecast 
with theYahoo! Search weather shortcut.

 

Reply via email to