aspose file tools*
The moose likes Flex and the fly likes Why and when to override data method in Action script using flex comp or event ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Flex
Bookmark "Why and when to override data method in Action script using flex comp or event ?" Watch "Why and when to override data method in Action script using flex comp or event ?" New topic
Author

Why and when to override data method in Action script using flex comp or event ?

Prabhat Ranjan
Ranch Hand

Joined: Oct 04, 2006
Posts: 387
Hi,

override public function set data(valuebject):void {

Regards,
Prabhat
Iftikhar Arain
Ranch Hand

Joined: Jul 17, 2002
Posts: 95

This is usually used in ItemRenderer.

For complete understanding read the blog.
http://blogs.adobe.com/aharui/2008/02/checkbox_selection_in_datagrid.html

Scenario.

List of check boxes with labels. Values retuned from the server are date of birth.

12-12-2010 <check box>
12-11-2010 <check box>
12-10-2010 <check box>
12-05-2010 <check box>

intead of above we want to show.

10 years old <check box>
5 years old <check box>
2 years old <check box>
8 years old <check box>

set data() can be used for this purpose.

e.g - 2

Values returned from teh server are first name and last name and you want to show them as one label.

set data() can be override to display the First Name , Last Name as one string.


Hope this will help.





SCJP,SCWCD,IBM UML,FLEX & AIR,MCAD,MCSD, Adobe ACE
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why and when to override data method in Action script using flex comp or event ?
 
Similar Threads
member data between subclass and base class
how to load the values in one object?
JavaDoc DB Interface & DuplicateKeyException
JComboBox
Override CSS