Package com.google.livingstories.client.util

Examples of com.google.livingstories.client.util.DecoratedBoundedImagePanel$DecoratedBoundedImage


  public SlideshowPreview(AssetContentItem contentItem) {
    this.contentItem = contentItem;
   
    initWidget(uiBinder.createAndBindUi(this));

    DecoratedBoundedImagePanel imagePanel = new DecoratedBoundedImagePanel(
        contentItem.getPreviewUrl(), Constants.MAX_IMAGE_PREVIEW_WIDTH, Integer.MAX_VALUE,
        Constants.ZOOM_ICON, Constants.ZOOM_WIDTH, Constants.ZOOM_HEIGHT,
        IconPlacement.LOWER_RIGHT);
    imagePanel.addStyleName(Resources.INSTANCE.css().clickable());
    previewImage.add(imagePanel);
  }
View Full Code Here


    initWidget(uiBinder.createAndBindUi(this));   
  }
 
  @Override
  protected DecoratedBoundedImagePanel createPreviewImage(AssetContentItem contentItem) {
    return new DecoratedBoundedImagePanel(
        contentItem.getPreviewUrl(), MAX_PREVIEW_WIDTH, Integer.MAX_VALUE, PLAY_ICON,
        PLAY_WIDTH, PLAY_HEIGHT, IconPlacement.CENTER);
  }
View Full Code Here

  protected Widget createPreviewImage(AssetContentItem contentItem) {
    if (hasContent()) {
      // TODO: Change the DecoratedBoundedImagePanel class to allow decoration
      // of an existing bounded image, rather than extending AbsolutePanel and doing it separately.
      // Should result in cleaner and nicer code.
      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

Related Classes of com.google.livingstories.client.util.DecoratedBoundedImagePanel$DecoratedBoundedImage

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.