Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Fluent Setters

    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

    PHP Code:
    final DynamicForm form = new DynamicForm()
        .
    setWidth(250)
        .
    setFields(new FormItem[] {
            new 
    TextItem()
                .
    setTitle("Username")
                .
    setRequired(true)
                .
    setDefaultValue("bob"); 
        }); 

    #2
    We're looking into this, but it's not a simple change as some of our APIs inherit from existing GWT APIs.

    Comment

    Working...
    X