Package net.suberic.util

Examples of net.suberic.util.VariableBundle


      if (getMessageUI() != null){
        //Liao-
        MessageUI msgUI = getMessageUI();
        CryptoStatusDisplay cryptoLCD = msgUI.getCryptoStatusDisplay();
        VariableBundle vars = Pooka.getResources();
        String status = "(Encryption Status)";
        switch(cryptoLCD.getEncryptionStatus()){
        case CryptoStatusDisplay.UNCHECKED_ENCRYPTED:
          status = vars.getProperty("CryptoPanel.uncheckedEncrypted.Tooltip", "Encrypted Message");
          break;
        case CryptoStatusDisplay.DECRYPTED_UNSUCCESSFULLY:
          status = vars.getProperty("CryptoPanel.decryptedUnsuccessfully.Tooltip", "Message Failed Decryption");
          break;
        case CryptoStatusDisplay.DECRYPTED_SUCCESSFULLY:
          status = vars.getProperty("CryptoPanel.decryptedSuccessfully.Tooltip", "Message Decrypted with Key");
          break;
        }

        //Liao+
View Full Code Here


      if (getMessageUI() != null){
        //Liao-
        MessageUI msgUI = getMessageUI();
        CryptoStatusDisplay cryptoLCD = msgUI.getCryptoStatusDisplay();
        VariableBundle vars = Pooka.getResources();
        String status = "(Signature Status)";
        switch(cryptoLCD.getSignatureStatus()){
        case CryptoStatusDisplay.UNCHECKED_SIGNED:
          status = vars.getProperty("CryptoPanel.uncheckedSigned.Tooltip", "Signed");
          break;
        case CryptoStatusDisplay.SIGNATURE_BAD:
          status = vars.getProperty("CryptoPanel.signatureBad.Tooltip", "Signature Failed Verification by Key");
          break;
        case CryptoStatusDisplay.SIGNATURE_VERIFIED:
          status = vars.getProperty("CryptoPanel.signatureVerified.Tooltip", "Signature Verified with Key");
          break;
        case CryptoStatusDisplay.SIGNATURE_FAILED_VERIFICATION:
          status = vars.getProperty("CryptoPanel.signatureFailedVerification.Tooltip", "Unable to Verfify Signature");
          break;
        }

        //Liao+
        getMessageUI().showMessageDialog(status, "Signature Status");
View Full Code Here

      return;

    try {
      URL configUrl = new URL(urlString);
      InputStream is = configUrl.openStream();
      VariableBundle newBundle = new FileVariableBundle(is, Pooka.getResources());
      Pooka.setResources(newBundle);
    } catch (MalformedURLException mue) {
      JOptionPane.showMessageDialog(mFrame, "Malformed URL.");
      showChoices();
    } catch (java.io.IOException ioe) {
View Full Code Here

    sourceBundle.addValueChangeListener(this, key + ".smime.keyStore.private.filename");
    sourceBundle.addValueChangeListener(this, key + ".smime.keyStore.private.password");

    sourceBundle.addValueChangeListener(this, key + ".savePasswordsForSession");

    final VariableBundle fBundle = sourceBundle;
    final String fKey = key;
    Thread storeLoadingThread = new Thread(new Runnable() {
  public void run() {
    // load the given pgp and smime stores.
    loadStores(fBundle, fKey);
View Full Code Here

        //sigh
        url = new Pooka().getClass().getResource("/net/suberic/pooka/Pookarc");
      }

      java.io.InputStream is = url.openStream();
      VariableBundle resources = new net.suberic.util.FileVariableBundle(is, "net.suberic.pooka.Pooka");
      sManager.setResources(resources);
    } catch (Exception e) {
      System.err.println("caught exception loading system resources:  " + e);
      e.printStackTrace();
      System.exit(-1);
View Full Code Here

TOP

Related Classes of net.suberic.util.VariableBundle

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.