from : http://www.gwtproject.org/articles/mvp-architecture.html
onModuleLoad() appViewer.go(RootPanel.get()); AppController.go(container) onValueChange() requestToServer onSuccess() // view is null createViewImpl new Presenter(eventBus, view, ...).go(container) Presenter.go(container) container.clear() container.add(view.asWidget()) fetchContactDetails() // request to server onSuccess view.setRowData(result); // create Table to show result //@UiField HTML contactsTable; contactsTable.setHTML(table.getInnerHTML());
MVP 예제 소스 : http://www.mediafire.com/download/ppj44pfu2bemt2p/GWT-TestMvp-template.zip
댓글 없음:
댓글 쓰기