Package org.waveprotocol.wave.client.doodad.attachment.render

Examples of org.waveprotocol.wave.client.doodad.attachment.render.ImageThumbnailView


    ContentElement e = getElement(c);
    if (e == null) {
      return;
    }

    ImageThumbnailView v = renderer.getView(e);
    switch (c.getStatus()) {
      case NOT_UPLOADING:
      case SUCCEEDED:
        v.hideUploadProgress();
        break;
      case IN_PROGRESS:
      case FAILED_AND_RETRYABLE:
        v.setUploadProgress(((double)c.getUploadedByteCount())/c.getSize());
        v.showUploadProgress();
        break;
      case FAILED_AND_NOT_RETRYABLE:
        v.hideUploadProgress();
        v.displayDeadImage(attachmentLoadingFailedTooltip);
        break;
      default:
        throw new IllegalStateException();
    }
  }
View Full Code Here


    ContentElement e = getElement(c);
    if (e == null) {
      return;
    }

    ImageThumbnailView v = renderer.getView(e);
    switch (c.getUploadStatusCode()) {
      case NOT_UPLOADING:
      case SUCCEEDED:
        v.hideUploadProgress();
        break;
      case IN_PROGRESS:
      case FAILED_AND_RETRYABLE:
        v.setUploadProgress(c.getUploadStatusProgress());
        v.showUploadProgress();
        break;
      case FAILED_AND_NOT_RETRYABLE:
        v.hideUploadProgress();
        v.displayDeadImage(attachmentLoadingFailedTooltip);
        break;
      default:
        throw new IllegalStateException();
    }
  }
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.client.doodad.attachment.render.ImageThumbnailView

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.