On 17/05/2010 22:51, Malcolm Edgar wrote:
> 
> 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 :)


I think Freddy had the idea of creating chaining methods without the "set" 
prefix in order to
preserve the JavaBean setter notation. So the above example becomes:

TextField passwordField = new 
PasswordField("password").maxLength(20).minLength(5).required(true);

Column column = new 
Column("age").format(""{0,number,#,###}").textAlign("right");

Kind regards

Bob

Reply via email to