Examples of BoundedImage


Examples of com.google.livingstories.client.util.BoundedImage

  @Override
  public Widget renderTiny() {
    if (assetType == AssetType.LINK) {
      return new Label(getContent());
    } else if (previewUrl != null && !previewUrl.isEmpty()) {
      return new BoundedImage(previewUrl, MAX_TINY_WIDTH, MAX_TINY_HEIGHT);
    } else {
      return new HTML(caption);
    }
  }
View Full Code Here

Examples of com.google.livingstories.client.util.BoundedImage

  @UiField SimplePanel byline;

  public ImagePopupView(final AssetContentItem contentItem) {
    initWidget(uiBinder.createAndBindUi(this));
   
    new BoundedImage(
        contentItem.getContent(),
        Window.getClientWidth() - WINDOW_PADDING,
        Window.getClientHeight() - WINDOW_PADDING) {
      @Override
      public void onImageLoad(boolean failed) {
View Full Code Here

Examples of com.google.livingstories.client.util.BoundedImage

      return new DecoratedBoundedImagePanel(
          contentItem.getPreviewUrl(), Constants.MAX_IMAGE_PREVIEW_WIDTH, Integer.MAX_VALUE,
          Constants.ZOOM_ICON, Constants.ZOOM_WIDTH, Constants.ZOOM_HEIGHT,
          IconPlacement.LOWER_RIGHT);     
    } else {
      return new BoundedImage(contentItem.getPreviewUrl(), Constants.MAX_IMAGE_PREVIEW_WIDTH);
    }
  }
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.