Package org.buildndeploy.client.model

Examples of org.buildndeploy.client.model.BlobInfoJS


 
  public List<BlobInfoJS> getFiles() {
    List<BlobInfoJS> files = new LinkedList<BlobInfoJS>();
    for (int i = 0; i < contentPanel.getWidgetCount(); i++) {
      FileIcon f = (FileIcon) contentPanel.getWidget(i);
      BlobInfoJS d = f.fileDetail;
      files.add(d);
    }
    return files;
  }
View Full Code Here


  public void showDetail() {
    new DetailPopup(fileDetail);
  }

  public static FileIcon createDummyFileIcon() {
    BlobInfoJS x = JsonUtils.safeEval("{\"blobKey\":{\"blobKey\":\"AAAAAAAAAAAAAAAAAAAAAA\"},\"contentType\":\"text\",\"creation\":\"Jun 22, 2013 1:35:56 AM\",\"filename\":\"example.txt\",\"size\":0,\"md5Hash\":\"70582b12bb0cd5876abf5761896b1577\"}");
    return new FileIcon(x);
  }
View Full Code Here

        IconPanel iconPanel = mainPanel.draggablePanel;
        switch(t) {
        case AddEvent:
          JsArray<BlobInfoJS> c = JsonUtils.safeEval(s);
          for (int i = 0; i < c.length(); i++) {
            BlobInfoJS x = c.get(i);
            iconPanel.add(x);
          }
        break;
        case MoveEvent:
          AutoBean<MoveEvent> moveBean = AutoBeanCodex.decode(factory, MoveEvent.class, s);
View Full Code Here

  }
 
  private void moveIcon(String blobKey, int oldIndex, int newIndex) {
    IconPanel iconPanel = mainPanel.draggablePanel;
    List<BlobInfoJS> oldFiles = iconPanel.getFiles();
    BlobInfoJS toAdd = oldFiles.get(oldIndex);
    if (toAdd.getBlobKey().equals(blobKey)) {
      iconPanel.insert(toAdd, newIndex);
      // Increment to account for shift after insert
      if (oldIndex > newIndex)
        oldIndex++;
      iconPanel.delete(oldIndex, false);
View Full Code Here

 
  private void populateFilePanel(JsArray<BlobInfoJS> c) {
    IconPanel iconPanel = mainPanel.draggablePanel;
   
    for (int i = 0; i < c.length(); i++) {
      BlobInfoJS x = c.get(i);
      iconPanel.add(x);
    }
  }
View Full Code Here

TOP

Related Classes of org.buildndeploy.client.model.BlobInfoJS

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.