Package org.buildndeploy.client.ui.file

Examples of org.buildndeploy.client.ui.file.FileIcon$DeleteCallback


    // TODO unify dnd logic?
    SimpleDropController deleteDropController = new SimpleDropController(mainPanel.trashButton) {
     
      public void onDrop(DragContext context) {
        FileIcon f = (FileIcon) context.draggable;
        f.delete(false);
        AppController.getService().deleteBlob(f.fileDetail.getBlobKey(), ignoredCallback);
        new OneTimeCssAnimator(mainPanel.trashButton, "shakes", 1000);
      }
    };
    IconPanel.dragController.registerDropController(deleteDropController);
View Full Code Here


  // ========================================================================= //
  //      HELP LOGIC                              //
  // ========================================================================= //
   
    private void setupHelp() {
      final FileIcon f = mainPanel.draggablePanel.createFakeIcon();
      IntroJS.mark("Click here to upload a file.", mainPanel.uploadButton);
      IntroJS.mark("These are your uploaded files.", "top", mainPanel.draggablePanel);
      IntroJS.mark("Click here to download.","top",  f.download);
      IntroJS.mark("Click here to view file details.","top",  f.info);
      IntroJS.mark("Click here to delete.", "top", f.delete);
      IntroJS.mark("Drag files here to delete them.", "top", mainPanel.trashButton);
      IntroJS.mark("Drag files here to download them.", "top", mainPanel.downloadButton);
      IntroJS.mark("You can send chat messages to other users here.", "top", mainPanel.chatPanel);
     
      IntroJS.setOnChange(new IntroJS.ChangeCallback() {
       
        @Override
        public void onChange(Widget w, int step) {
          switch(step) {
          case 3:
            Native.click(f.getElement());
          break;
          default:
            // Do nothing
          }
        }
      });
     
      IntroJS.setOnExit(new IntroJS.ExitCallback() {

        @Override
        public void onExit() {
          IntroJS.clearAll();
          f.delete(true);
        }
      });
     
      IntroJS.startIntro();
    }
View Full Code Here

TOP

Related Classes of org.buildndeploy.client.ui.file.FileIcon$DeleteCallback

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.