Examples of PopupImageLoadedEvent


Examples of com.google.livingstories.client.lsp.event.PopupImageLoadedEvent

        contentItem.getContent(),
        Window.getClientWidth() - WINDOW_PADDING,
        Window.getClientHeight() - WINDOW_PADDING) {
      @Override
      public void onImageLoad(boolean failed) {
        PopupImageLoadedEvent event;
        if (failed) {
          Label brokenLink = new Label(BROKEN_LINK_TEXT);
          brokenLink.setStylePrimaryName(Resources.INSTANCE.css().error());
          image.setWidget(brokenLink);
          image.setSize("250px", "150px");
          event = new PopupImageLoadedEvent(250, 150);
        } else {
          image.setWidget(this);
          event = new PopupImageLoadedEvent(this.getDisplayWidth(), this.getDisplayHeight());
        }
        caption.setText(contentItem.getCaption());
        if (!contentItem.getContributorIds().isEmpty()) {
          byline.setWidget(new BylineWidget(contentItem, false));
        }
View Full Code Here

Examples of com.google.livingstories.client.lsp.event.PopupImageLoadedEvent

  }
 
  @SuppressWarnings("unused")
  private void firePopupImageLoadedEvent(ImageElement image) {
    EventBus.INSTANCE.fireEvent(
        new PopupImageLoadedEvent(image.getOffsetWidth(), image.getOffsetHeight()));
  }
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.