tryanDLS
10-06-2006, 11:51 AM
Jack,
I'm looking at your AbstractColumnModel and DefaultColumnModel classes as a template to buid something I'm working on. There's a couple things that seem a little odd - maybe just things to be cleaned up.
1) in ACM there's a couple methods that refer to DCM methods (getRenderer, getSortType). I imagine it works b/c it's not true OO, but I would think it less cofusing if they returned some dummy values e.g. maybe just an anon fn that returned blank??
2) the DCM.defaultRenderer method doesn't include 'prototype'. None of the 'sortTypes' methods do either. Is there a need for each instance to carry it's own version of these?
I don't think any of these are breaking anything - I'm a C# guy, so the OO stuff tends to stick out.
Tim
I'm looking at your AbstractColumnModel and DefaultColumnModel classes as a template to buid something I'm working on. There's a couple things that seem a little odd - maybe just things to be cleaned up.
1) in ACM there's a couple methods that refer to DCM methods (getRenderer, getSortType). I imagine it works b/c it's not true OO, but I would think it less cofusing if they returned some dummy values e.g. maybe just an anon fn that returned blank??
2) the DCM.defaultRenderer method doesn't include 'prototype'. None of the 'sortTypes' methods do either. Is there a need for each instance to carry it's own version of these?
I don't think any of these are breaking anything - I'm a C# guy, so the OO stuff tends to stick out.
Tim