Examples of CancelListener


Examples of org.openstreetmap.josm.gui.progress.ProgressMonitor.CancelListener

            }
            if (gpxData) {
                addDownloadTask(new DownloadGpsTask(), td, i, n);
            }
        }
        progressMonitor.addCancelListener(new CancelListener() {
            @Override
            public void operationCanceled() {
                for (DownloadTask dt : tasks) {
                    dt.cancel();
                }
View Full Code Here

Examples of unibg.overencrypt.client.view.CancelListener

    }
    String fileName = fileChooser.getSelectedFile().getName();
    String realFilePath = fileChooser.getSelectedFile().getParent();

    JFrame frame = new JFrame();
    IndefiniteProgressDialog inpd = new IndefiniteProgressDialog(frame, "File encryption process", "Encrypting file...", new CancelListener(frame));
    inpd.setVisible(true);

    inpd.setMessage("Retrieve local resources...");
    LocalPrivateResource localPrivateResource = new LocalPrivateResource();
    try {
View Full Code Here

Examples of unibg.overencrypt.client.view.CancelListener

    folderName = folderField.getText();
    hasSEL = hasSELBox.isSelected();

    JFrame frame = new JFrame();
    IndefiniteProgressDialog inpd = new IndefiniteProgressDialog(frame, "Creating new folder...", "Retrieving your friends...", new CancelListener(frame));
    LocalPrivateResource localPrivateResource = new LocalPrivateResource();
    try {
      owner = localPrivateResource.retrieveValue("UserInfo.userId");
      passphrase = localPrivateResource.retrieveValue("UserInfo.pin");
    } catch (Exception e) {
View Full Code Here

Examples of unibg.overencrypt.client.view.CancelListener

  /** Logger for this class. */
  private static final Logger LOGGER = Logger.getLogger(ClientTokensManager.class);

  public static String[] getACLsFromToken(String path, OperationType type, TokenStruct token){
    JFrame frame = new JFrame();
    IndefiniteProgressDialog inpd = new IndefiniteProgressDialog(frame, new CancelListener(frame));
    switch (type) {
    case DOWNLOAD:
      inpd.setTitle("Download process");     
      break;
    case EDIT:
View Full Code Here

Examples of unibg.overencrypt.client.view.CancelListener

      System.exit(0);
    }
   
   
    JFrame frame = new JFrame();
    IndefiniteProgressDialog inst = new IndefiniteProgressDialog(frame, "Logout", "Wait until logout from server...", new CancelListener(frame));
    inst.setVisible(true);

    LocalPrivateResource localPrivateResource = new LocalPrivateResource();
    try {
View Full Code Here

Examples of unibg.overencrypt.client.view.CancelListener

    Object[] obj = {"Insert pass phrase:", pinField};

    if (JOptionPane.showOptionDialog(null, obj, realm, JOptionPane.OK_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, null, null) == JOptionPane.OK_OPTION) {

      JFrame frame = new JFrame();
      IndefiniteProgressDialog inst = new IndefiniteProgressDialog(frame, "Passphrase check", "Waiting for server response...", new CancelListener(frame));
      inst.setVisible(true);

      pin = String.valueOf(pinField.getPassword());

      //generating double hash of pin
View Full Code Here

Examples of unibg.overencrypt.client.view.CancelListener

    //Reset private local fields
    userID = "";

    //Start message dialog
    JFrame frame = new JFrame();
    inpd = new IndefiniteProgressDialog(frame, "Dowload file: " + fileName, "Retrieving decryption BEL and SEL keys...", new CancelListener(frame));
    inpd.setVisible(true);

   
    //Retrieve user id from local resource
    LocalPrivateResource localPrivateResource = new LocalPrivateResource();
View Full Code Here

Examples of unibg.overencrypt.client.view.CancelListener

 
  @SuppressWarnings("static-access")
  public static void updatePermissionsManager(String path, String friends, String infos){
    String result = "";
    JFrame frame = new JFrame();
    IndefiniteProgressDialog inst = new IndefiniteProgressDialog(frame, "Update permissions", "Retrieving your permissions...", new CancelListener(frame));
    inst.setVisible(true);

    //Divide infos in relative json object
    String[] jsons = infos.split("---");
View Full Code Here

Examples of unibg.overencrypt.client.view.CancelListener

 
  private static ArrayList<String> users = new ArrayList<String>();
 
  public static void generateProperties(String path, String folderName) {
    JFrame frame = new JFrame();
    IndefiniteProgressDialog inpd = new IndefiniteProgressDialog(frame, "Properties", "Retrive properties...", new CancelListener(frame));
   
    if(OverEncryptRequest.generateRequest(ClientPrimitives.OE_GET_USERNAMES, OverEncryptRequestType.LOCK, owner, path)) {
      String[] returnedValues = ResponseManager.retrieveCommunication(path, ServerPrimitives.OE_LOCK, "value");       
      LOGGER.debug("returned values [0]: " + returnedValues[0]);
      if (!Boolean.parseBoolean(returnedValues[0])) {
View Full Code Here

Examples of unibg.overencrypt.client.view.CancelListener

      return;
    }
   
    //Start message dialog
    JFrame frame = new JFrame();
    inpd = new IndefiniteProgressDialog(frame, "Deleting folder", "Your folder will be deleted...", new CancelListener(frame));
    inpd.setMessage("Retrieve local resources...");
    LocalPrivateResource localPrivateResource = new LocalPrivateResource();
    try {
      userId = localPrivateResource.retrieveValue("UserInfo.userId");
      passphrase = localPrivateResource.retrieveValue("UserInfo.pin");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.