Package com.moneychanger.core

Examples of com.moneychanger.core.Contract


            return;
        }

        int userSelection = JOptionPane.showConfirmDialog(this, "Are you sure you want to delete Asset Contract", "Asset Contract Deletion", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);
        System.out.println("userSelection:" + userSelection);
        Contract contract = new Contract();
        if (userSelection == 0) {
            boolean status = contract.deleteAssetContract((String) jTable_AssetList.getModel().getValueAt(jTable_AssetList.getSelectedRow(), 1));
            if (status) {
                JOptionPane.showMessageDialog(this, "Asset Contract deleted successfully", "Asset Contract Deletion", JOptionPane.INFORMATION_MESSAGE);
                refreshAssetContractList();
            } else {
                JOptionPane.showMessageDialog(this, "Asset Contract cannot be deleted", "Asset Contract Deletion", JOptionPane.ERROR_MESSAGE);
View Full Code Here


            return;
        }

        int userSelection = JOptionPane.showConfirmDialog(this, "Are you sure you want to delete Server Contract", "Server Contract Deletion", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);
        System.out.println("userSelection:" + userSelection);
        Contract contract = new Contract();
        if (userSelection == 0) {
            boolean status = contract.deleteServerContract((String) jTable_ServerList.getModel().getValueAt(jTable_ServerList.getSelectedRow(), 1));
            if (status) {
                JOptionPane.showMessageDialog(this, "Server Contract deleted successfully", "Server Contract Deletion", JOptionPane.INFORMATION_MESSAGE);
                refreshServerContractList();
            } else {
                JOptionPane.showMessageDialog(this, "Server Contract cannot be deleted", "Server Contract Deletion", JOptionPane.ERROR_MESSAGE);
View Full Code Here

        jComboBoxServerContracts.addItem(new ComboObject("ALL"));
        jComboBox_AssetContracts.addItem(new ComboObject("ALL"));

        Helpers.populateCombo(nymMap, jComboBox_Nyms);

        Contract contract = new Contract();

        serverMap = contract.loadServerContract();
        Helpers.populateCombo(serverMap, jComboBoxServerContracts);

        assetMap = contract.loadAssetContract();
        Helpers.populateCombo(assetMap, jComboBox_AssetContracts);


        Account account = null;
        for (int i = 0; i < Account.allAccounts.length; i++) {
View Full Code Here

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

    private void initContractsTab() {
        Contract contract = new Contract();
        jTable_AssetList.getSelectionModel().addListSelectionListener(new ListSelectionListener() {

            public void valueChanged(ListSelectionEvent e) {
                if (e.getValueIsAdjusting()) {
                    return;
                }
                System.out.println("valueChanged:" + jTable_AssetList.getSelectedRow() + "e:" + e.getSource());
                if (jTable_AssetList.getSelectedRow() >= 0) {
                    String assetID = (String) jTable_AssetList.getModel().getValueAt(jTable_AssetList.getSelectedRow(), 1);
                    populateAssetContractDetails(assetID, new Contract().getRawAssetFileData(assetID));
                }
            }
        });
        jTable_ServerList.getSelectionModel().addListSelectionListener(new ListSelectionListener() {

            public void valueChanged(ListSelectionEvent e) {
                if (e.getValueIsAdjusting()) {
                    return;
                }
                System.out.println("valueChanged:" + jTable_ServerList.getSelectedRow() + "e:" + e.getSource());
                if (jTable_ServerList.getSelectedRow() >= 0) {
                    String serverID = (String) jTable_ServerList.getModel().getValueAt(jTable_ServerList.getSelectedRow(), 1);
                    populateServerContractDetails(serverID, new Contract().getRawServerFileData(serverID));
                }
            }
        });
        ((AssetContractTableModel) jTable_AssetList.getModel()).setValue(contract.loadAssetContract(), jTable_AssetList);
        ((ServerContractTableModel) jTable_ServerList.getModel()).setValue(contract.loadServerContract(), jTable_ServerList);
    }
View Full Code Here

        Helpers.populateComboWithoutAll(nymRegisteredMap, jComboBox6);
    }

    private static void refreshAssetContractList() {

        Contract contract = new Contract();
        ((AssetContractTableModel) jTable_AssetList.getModel()).setValue(contract.loadAssetContract(), jTable_AssetList);
        assetMap.clear();
        assetMap = contract.loadAssetContract();
        Helpers.populateCombo(assetMap, jComboBox_AssetContracts);

    }
View Full Code Here

        Helpers.populateCombo(assetMap, jComboBox_AssetContracts);

    }

    private void refreshServerContractList() {
        Contract contract = new Contract();
        ((ServerContractTableModel) jTable_ServerList.getModel()).setValue(contract.loadServerContract(), jTable_ServerList);
        serverMap.clear();
        serverMap = contract.loadServerContract();
        System.out.println("serverv" + serverMap.entrySet());
        Helpers.populateCombo(serverMap, jComboBoxServerContracts);
        Helpers.populateComboWithoutAll(serverMap, jComboBox5);

    }
View Full Code Here

            }
        });
    }

    private void initValues() {
        assetMap = new Contract().loadAssetContract();
        Helpers.populateCombo(assetMap, jComboBox1);
        Helpers.populateCombo(assetMap, jComboBox2);
    }
View Full Code Here

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        boolean status = new Contract().editLabel(assetID, "Asset", jTextField1.getText());
        if (status) {
            JOptionPane.showMessageDialog(this, "Asset Contract edited successfully", "Edit Success", JOptionPane.INFORMATION_MESSAGE);
            MainPage.setBasketAssetName(jTextField1.getText());
        } else {
            JOptionPane.showMessageDialog(this, "Asset Contract could not be edited", "Failure", JOptionPane.ERROR_MESSAGE);
View Full Code Here

    // End of variables declaration//GEN-END:variables

    private void initValues() {
        nymMap = new NYM().loadNYM();
        Helpers.populateCombo(nymMap, jComboBox2);
        serverMap = new Contract().loadServerContract();
        Helpers.populateCombo(serverMap, jComboBox1);
    }
View Full Code Here

        nymMap = new NYM().loadNYM();

        Helpers.populateCombo(nymMap, jComboBox1);

        Contract contract = new Contract();

        serverMap = contract.loadServerContract();
        Helpers.populateCombo(serverMap, jComboBox2);

        assetMap = contract.loadAssetContract();
        Helpers.populateCombo(assetMap, jComboBox3);
    }
View Full Code Here

TOP

Related Classes of com.moneychanger.core.Contract

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.