Package com.antonytrupe.client.ui

Examples of com.antonytrupe.client.ui.HistoryView


    this.clientFactory.getPlaceController().goTo(place);
  }

  @Override
  public void start(final AcceptsOneWidget containerWidget, EventBus eventBus) {
    final HistoryView historyView = this.clientFactory.getHistoryView();

    // get page content
    this.clientFactory.getPageService().getHistory(
        this.place.getPageNameDecoded(),
        new AsyncCallback<ArrayList<Page>>() {

          @Override
          public void onFailure(Throwable caught) {
          }

          @Override
          public void onSuccess(ArrayList<Page> result) {
            // tell the view to render

            historyView.setPageName(HistoryActivity.this.place
                .getPageNameDecoded());
            historyView
                .setPresenter((HistoryView.Presenter) HistoryActivity.this);
            historyView
                .setPageService(HistoryActivity.this.clientFactory
                    .getPageService());
            historyView.setHistory(result);
            containerWidget.setWidget(historyView.asWidget());

          }
        });
  }
View Full Code Here

TOP

Related Classes of com.antonytrupe.client.ui.HistoryView

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.