Package com.moneychanger.core

Examples of com.moneychanger.core.NYM


        if (serverMap != null && serverMap.size() > 0 && jComboBox5.getSelectedIndex() > -1) {
            currentServerID = ((String[]) serverMap.get((Integer) jComboBox5.getSelectedIndex()))[1];
        }
        if (serverID != null && serverID.equals(currentServerID)) {
            nymRegisteredMap = new NYM().loadRegisteredNYM(serverID);
            Helpers.populateComboWithoutAll(nymRegisteredMap, jComboBox6);
        }
    }
View Full Code Here


    private void jButton_DownloadMailActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_DownloadMailActionPerformed
        if (jTextField_NymID.getText().trim().equals("")) {
            JOptionPane.showMessageDialog(this, "Please select NYM", "Error", JOptionPane.ERROR_MESSAGE);
            return;
        }
        NYM nym = new NYM();
        nymBox = nym.downloadNymBox(jTextField_NymID.getText());
        ((NYMBoxTableModel) jTable8.getModel()).setValue(nymBox, jTable8);
    }//GEN-LAST:event_jButton_DownloadMailActionPerformed
View Full Code Here

        if (jTable8.getSelectedRow() < 0 && jTable10.getSelectedRow() < 0) {
            JOptionPane.showMessageDialog(this, "Please select mail to delete", "Error", JOptionPane.ERROR_MESSAGE);
            return;
        }
        try {
            NYM nym = new NYM();
            if (jTabbedPane_Nymbox.getSelectedIndex() == 0) {
                boolean success = nym.deleteMail(jTextField_NymID.getText(), Integer.parseInt((String) jTable8.getModel().getValueAt(jTable8.getSelectedRow(), 3)));
                int previousSelection = jTable8.getSelectedRow();
                if (success) {
                    //JOptionPane.showMessageDialog(this, "Mail deleted successfully", "Mail Deletion Success", JOptionPane.INFORMATION_MESSAGE);
                    ((NYMBoxTableModel) jTable8.getModel()).setValue(nym.loadNymBox(jTextField_NymID.getText()), jTable8);
                    int newCount = jTable8.getModel().getRowCount();
                    if (newCount > 0) {
                        if (newCount > previousSelection) {
                            jTable8.setRowSelectionInterval(previousSelection, previousSelection);
                        } else {
                            jTable8.setRowSelectionInterval(previousSelection - 1, previousSelection - 1);
                        }
                    }
                } else {
                    JOptionPane.showMessageDialog(this, "Mail deletion failed", "Error", JOptionPane.ERROR_MESSAGE);
                }
            } else {

                boolean success = nym.deleteOutboxMail(jTextField_NymID.getText(), Integer.parseInt((String) jTable10.getModel().getValueAt(jTable10.getSelectedRow(), 3)));
                int previousSelection = jTable10.getSelectedRow();
                if (success) {
                    //JOptionPane.showMessageDialog(this, "Mail deleted successfully", "Mail Deletion Success", JOptionPane.INFORMATION_MESSAGE);
                    ((NYMOutboxTableModel) jTable10.getModel()).setValue(nym.loadNymOutBox(jTextField_NymID.getText()), jTable10);
                    int newCount = jTable10.getModel().getRowCount();
                    if (newCount > 0) {
                        if (newCount > previousSelection) {
                            jTable10.setRowSelectionInterval(previousSelection, previousSelection);
                        } else {
View Full Code Here

            serverID = ((String[]) serverMap.get((Integer) jComboBox5.getSelectedIndex()))[1];
        }

        System.out.println("Mrkets tab - nym selected index - " + jComboBox6.getSelectedIndex());

        nymRegisteredMap = new NYM().loadRegisteredNYM(serverID);
        Helpers.populateComboWithoutAll(nymRegisteredMap, jComboBox6);

        if (nymRegisteredMap != null && nymRegisteredMap.size() > 0 && jComboBox6.getSelectedIndex() > -1) {
            nymID = ((String[]) nymRegisteredMap.get((Integer) jComboBox6.getSelectedIndex()))[1];
        }
View Full Code Here

        String nymID = (String) jTable_NymsList.getModel().getValueAt(jTable_NymsList.getSelectedRow(), 1);

        int userSelection = JOptionPane.showConfirmDialog(this, "Are you sure you want to delete NYM", "NYM Deletion", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);
        System.out.println("userSelection:" + userSelection);
        NYM nym = new NYM();
        if (userSelection == 0) {

            try {
                setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
                Map registeredServers = new NYM().registeredServers(nymID);
                if (registeredServers == null || registeredServers.size() < 1) {
                    boolean status = new NYM().deleteWalletNym(nymID);
                    if (status) {
                        JOptionPane.showMessageDialog(this, "Nym deleted sucessfully from the wallet", "NYM deletion success", JOptionPane.INFORMATION_MESSAGE);
                        refreshNYMSList();
                        return;
                    } else {
View Full Code Here

                    }
                }
            }
        });

        nymMap = new NYM().loadNYM();

        jComboBox_Nyms.addItem(new ComboObject("ALL"));
        jComboBoxServerContracts.addItem(new ComboObject("ALL"));
        jComboBox_AssetContracts.addItem(new ComboObject("ALL"));
View Full Code Here

                }
                System.out.println("selectedRow:" + jTable_NymsList.getSelectedRow());
                if (jTable_NymsList.getSelectedRow() >= 0) {
                    String nymID = (String) jTable_NymsList.getModel().getValueAt(jTable_NymsList.getSelectedRow(), 1);
                    System.out.println("selected nymID:" + nymID);
                    NYM nym = new NYM();
                    nymBox = nym.loadNymBox(nymID);
                    nymOutBox = nym.loadNymOutBox(nymID);
                    System.out.println("loadNymBox loadNymOutBox data loaded");
                    populateNYMDetails(nymID, nym.getRawFileData(nymID), nymBox, nymOutBox);
                }
            }
        });
        ((NYMTableModel) jTable_NymsList.getModel()).setValue(new NYM().loadNYM(), jTable_NymsList);
    }
View Full Code Here

    public static void refreshNYMSList() {

        System.out.println("IN refreshNYMSList");

        ((NYMTableModel) jTable_NymsList.getModel()).setValue(new NYM().loadNYM(), jTable_NymsList);
        nymMap = new NYM().loadNYM();

        String serverID = "ALL";

        if (serverMap != null && serverMap.size() > 0 && jComboBox5.getSelectedIndex() > -1) {
            serverID = ((String[]) serverMap.get((Integer) jComboBox5.getSelectedIndex()))[1];
        }

        nymRegisteredMap = new NYM().loadRegisteredNYM(serverID);

        ((NYMTableModel) jTable6.getModel()).setValue(new NYM().loadNYM(), jTable6);
       
        Helpers.populateCombo(nymMap, jComboBox_Nyms);
        Helpers.populateComboWithoutAll(nymRegisteredMap, jComboBox6);
    }
View Full Code Here

        if (serverMap != null && serverMap.size() > 0 && jComboBox5.getSelectedIndex() > -1) {
            serverID = ((String[]) serverMap.get((Integer) jComboBox5.getSelectedIndex()))[1];
        }

        nymRegisteredMap = new NYM().loadRegisteredNYM(serverID);
        Helpers.populateComboWithoutAll(nymRegisteredMap, jComboBox6);

        jTable14.getSelectionModel().addListSelectionListener(new ListSelectionListener() {

            public void valueChanged(ListSelectionEvent e) {
View Full Code Here

        setCustomWidthPayments();
        NYMTableModel.removeCols(jTable6);
       
        Helpers.populateComboWithoutAll(serverMap, jComboSrvPay);

        ((NYMTableModel) jTable6.getModel()).setValue(new NYM().loadNYM(), jTable6);

        jTable6.getSelectionModel().addListSelectionListener(new ListSelectionListener() {

            @Override
            public void valueChanged(ListSelectionEvent e) {
View Full Code Here

TOP

Related Classes of com.moneychanger.core.NYM

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.