Examples of DisplayView


Examples of com.antonytrupe.client.ui.DisplayView

  /**
   * Invoked by the ActivityManager to start a new Activity
   */
  @Override
  public void start(final AcceptsOneWidget containerWidget, EventBus eventBus) {
    final DisplayView displayView = this.clientFactory.getDisplayView();

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

          @Override
          public void onFailure(Throwable caught) {
          }

          @Override
          public void onSuccess(Page result) {
            displayView.setPageName(result.getName());
            displayView.setContent(SafeHtmlUtils
                .fromTrustedString(result.getContent()));
            displayView.setPresenter(DisplayActivity.this);
            containerWidget.setWidget(displayView.asWidget());

          }
        });
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.