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);
Wouldn't this be a better approach?
https://issues.apache.org/jira/browse/CLK-565

i.e. to do the chaining only in the corresponding Builder classes,
and to let the Click core API as it is?

Adrian.

Reply via email to