[컴][웹] GWT 사용하기 - MVP 예제 분석

GWT MVP 예제 / MVP template / GWT template / GWT 예제




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


See Also


  1. MVP, MVC 차이



댓글 없음:

댓글 쓰기