[flexcoders] Reusability question

2007-12-26 Thread markgoldin_2000
I am designing a custom ListGrid. Most of functionality will be in the base class. But some will deppend on a specific instatiation. For example, when new row is added to the ListGrid I need to run additional code for each object being instatiated from the base class. And that code is unique

Re: [flexcoders] Reusability question

2007-12-26 Thread Frederico Garcia
markgoldin_2000 escreveu: I am designing a custom ListGrid. Most of functionality will be in the base class. But some will deppend on a specific instatiation. For example, when new row is added to the ListGrid I need to run additional code for each object being instatiated from the base

Re: [flexcoders] Reusability question

2007-12-26 Thread mark goldin
Yes, I can create a generic method for my Grid: public function doSomethingAfterRowIsAdded():void { } But I can't have any code there because it is specific to an object instatiation. Frederico Garcia [EMAIL PROTECTED] wrote: markgoldin_2000 escreveu: I am designing a

Re: [flexcoders] Reusability question

2007-12-26 Thread Frederico Garcia
mark goldin escreveu: Yes, I can create a generic method for my Grid: public function doSomethingAfterRowIsAdded():void { } But I can't have any code there because it is specific to an object instatiation. */Frederico Garcia [EMAIL PROTECTED]/* wrote: markgoldin_2000 escreveu:

Re: [flexcoders] Reusability question

2007-12-26 Thread mark goldin
I think I understand what you are saying. But I am already extending Flex' s native DataGrid. I thought I could have added a custom method somehow without creating as many classes as many grids I am going to have in my project. Am I understanding you correctly? I will need to extend my base

Re: [flexcoders] Reusability question

2007-12-26 Thread Frederico Garcia
mark goldin escreveu: I think I understand what you are saying. But I am already extending Flex' s native DataGrid. I thought I could have added a custom method somehow without creating as many classes as many grids I am going to have in my project. Am I understanding you correctly? I will

RE: [flexcoders] Reusability question

2007-12-26 Thread Alex Harui
: Wednesday, December 26, 2007 1:03 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Reusability question I think I understand what you are saying. But I am already extending Flex' s native DataGrid. I thought I could have added a custom method somehow without creating as many classes