I hate saying something so unimaginable, but MVC works - it's not final, but it may start organizing you.
EDIT: while searching for a topic related to gender, I came across this , which has similar ideas for mine, but in more detail.
What this means from the point of view of GWT is that you should think about simply decomposing the GUI components in one class, moving all the event processing in a second and placing the object model objects separately from the other two.
- GUI. , , , - /, , .
:
. , , . / , . , , - "" , , . , - , , - , , .
GUI Trick, , -, GUI -, , , . , . , , .
:
GUI - . , , . , , , , , , , - 3 ( , ).
"" , - . , , , , . XML-. , .
MVC:
, , MVC MILLION.
MAIN:
- MyView
- MyModel
- MyController (myView, myModel)
- myView.setVisible()
MyView
- Frame
- (public final Button b = new Button())
- , getters - EXACT-, .
- , .
- , reset(), MyController .
MyController
- myView myModel
- myView, (. ).
- myView myModel
- "done" myView myModel
- myModel , .
MyModel:
, - ( , GUI MyController. -, updated(), - . GUI - "" -.
GUI update() - , - - ...
, , MyController, - , , .
, View Controller . Swing - , - .