Hi All,
I have been playing around with some new concepts for Click and been
writing code using method chaining. Its something I have argued
against for a long time, as its something I would never recommend
developers do in their application code because you can get the train
wreak anti-pattern. However its an idea I have finally come around
to. I think it would be really handy if the Click control setter
method returned their instance, so that you could write code like the
following:
TextField passwordField = new
PasswordField("password").setMaxLength(20).setMinLength(5).setRequired(true);
Column column = new
Column("age").setFormat(""{0,number,#,###}").setTextAlign("right");
This would alleviate the requirement for using builder/factory
patterns in many instance, which are very useful in their own right.
Any thoughts? Frederic Daoud :)
regards Malcolm Edgar