Hi,
According to the FAQ smartgwt API is generated. So, didn't you consider to use fluent setters (when setter returns this) to support chaining of methods?
In such case code will look more like in DSL-style
According to the FAQ smartgwt API is generated. So, didn't you consider to use fluent setters (when setter returns this) to support chaining of methods?
In such case code will look more like in DSL-style
PHP Code:
final DynamicForm form = new DynamicForm()
.setWidth(250)
.setFields(new FormItem[] {
new TextItem()
.setTitle("Username")
.setRequired(true)
.setDefaultValue("bob");
});
Comment