Package org.waveprotocol.wave.media.model

Examples of org.waveprotocol.wave.media.model.Attachment$ImageMetadata


      view.setFullSizeMode(ImageThumbnail.STYLE_FULL.equals(newValue));
    } else if (ImageThumbnail.ATTACHMENT_ATTR.equals(name)) {
      ImageThumbnailWrapper w = ImageThumbnailWrapper.of(element);
      assert w != null;

      Attachment newAttachment = manager.getAttachment(newValue);
      Attachment oldAttachment = w.getAttachment();
      if (newAttachment != oldAttachment) {
        if (oldAttachment != null) {
          attachmentHandler.cleanup(element, oldAttachment);
        }
        if (newAttachment != null) {
View Full Code Here


    String url = c.getAttachmentUrl();
    if (url != null) {
      renderer.getView(e).setAttachmentUrl(url);
    }

    ImageMetadata metadata = c.getContentImageMetadata();
    if (metadata != null) {
      renderer.getView(e).setAttachmentSize(metadata.getWidth(), metadata.getHeight());
    }
  }
View Full Code Here

    String url = c.getThumbnailUrl();
    if (url != null) {
      renderer.getView(e).setThumbnailUrl(url);
    }

    ImageMetadata metadata = c.getThumbnailImageMetadata();
    if (metadata != null) {
      renderer.getView(e).setThumbnailSize(metadata.getWidth(), metadata.getHeight());
    }

    if (metadata == null && c.getUploadStatusCode() == UploadStatusCode.FAILED_AND_NOT_RETRYABLE) {
      renderer.getView(e).displayDeadImage(
          attachmentLoadingFailedTooltip);
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.media.model.Attachment$ImageMetadata

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.