Let's make brainstorm about "What could we do to reduce code size in GWT, GXT, SmartGWt etc.?"
For Example; To use a button;
Button b = new Button();
b.setText("Ok");
b.setListener(this);
b.setEnabled(false);
Button b2 = new Button();
b2.setText("Ok2");
b2.setListener(this);
b2.setEnabled(false);
But we could a pattern like factory to create button.
public static createButton(String name, Listener listener, boolean enable){
Button b = new Button();
b.setText("Ok");
b.setListener(this);
b.setEnabled(false);
}
Button b = createButton("ok",this, false);
Button b2 = createButton("ok2",this, false);
For more buttons I think code size really shows difference, What do you think about this example? Or have you any idea like this?