click-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob Schellink <>
Subject Re: Click and Method Chaining
Date Sat, 29 May 2010 01:58:42 GMT
On 28/05/2010 16:26, Adrian A. wrote:
> Wouldn't this be a better approach?
> i.e. to do the chaining only in the corresponding Builder classes,
> and to let the Click core API as it is?

While those patterns are useful they add another layer of complexity and don't fit well at
framework level. ControlFactory for example will be tied with the application being built.
If you
want all your fields to have a specific CSS class it could be encapsulated inside the factory.
CLK-565 would make for a good example on how to centralize control creation.



View raw message