On 28/05/2010 00:33, Freddy Daoud wrote:
> 
> The question is, in which Click classes to do this, to improve the API
> without bloating it.


It's a juggle between bloat vs consistency vs practicality.

I suggest:

- html element attributes:
  Control attribute(String name, String value);
  Control style(String name, String style);
  Control class(String name);

- validation (this will depend on control types though)
  TextField maxLenght(int length);
  IntegerField maxValue(int maxValue);
  DoubleField maxValue(double maxValue);

Kind regards

Bob

Reply via email to