examples/Mvp4gShowCase/src/com/mvp4g/example/client/Mvp4gShowCase.java
public void onModuleLoad() {
    HorizontalPanel mainPanel = new HorizontalPanel();

    final MiddlePanel mPanel = new MiddlePanel();

    Tree menu = new Tree();
    menu.addSelectionHandler(new SelectionHandler<TreeItem>() {
      public void onSelection(SelectionEvent<TreeItem> event) {
        mPanel.set((MenuItem) event.getSelectedItem());
      }
    });

    initMenu(menu);
    mainPanel.add(menu);
    mainPanel.add(mPanel);
    menu.setSelectedItem(menu.getItem(0));
    mainPanel.setStyleName("mvp4gshowcase");
    RootPanel.get()
             .add(mainPanel);
  }
/**
   * This is the entry point method.
   */
This is the entry point method.
This is the entry point method .
public void onModuleLoad() {
    HorizontalPanel mainPanel = new HorizontalPanel();
    final MiddlePanel mPanel = new MiddlePanel();
    Tree menu = new Tree();
    menu.addSelectionHandler(new SelectionHandler<TreeItem>() {
      public void onSelection(SelectionEvent<TreeItem> event) {
        mPanel.set((MenuItem) event.getSelectedItem());
      }
    });
    initMenu(menu);
    mainPanel.add(menu);
    mainPanel.add(mPanel);
    menu.setSelectedItem(menu.getItem(0));
    mainPanel.setStyleName("mvp4gshowcase");
    RootPanel.get()
             .add(mainPanel);
  }
public void onModuleLoad ( ) { HorizontalPanel mainPanel = new HorizontalPanel ( ) ; final MiddlePanel mPanel = new MiddlePanel ( ) ; Tree menu = new Tree ( ) ; menu . addSelectionHandler ( new SelectionHandler < TreeItem > ( ) { public void onSelection ( SelectionEvent < TreeItem > event ) { mPanel . set ( ( MenuItem ) event . getSelectedItem ( ) ) ; } } ) ; initMenu ( menu ) ; mainPanel . add ( menu ) ; mainPanel . add ( mPanel ) ; menu . setSelectedItem ( menu . getItem ( 0 ) ) ; mainPanel . setStyleName ( "mvp4gshowcase" ) ; RootPanel . get ( ) . add ( mainPanel ) ; }
This is the entry point method.
This is the entry point method .