Package realcix20.guis.views.settings.tools

Examples of realcix20.guis.views.settings.tools.GV


                StringBuffer factValueBuffer = new StringBuffer();
                for (int i = 1; i< rsmd.getColumnCount(); i++) {
                    factValueBuffer.append(rs.getObject(i) + "-");
                }
                factValueBuffer.append(rs.getObject(rsmd.getColumnCount()));
                Item item = new Item(factValueBuffer.toString(), displayValue);
                ((JComboBox)component).addItem(item);
            }
           
            rs.close();
View Full Code Here


        }
        //Users GUI Theme       
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {                       
                if (GlobalValueManager.getValue("firsttime").equals("TRUE")) {                   
                    new LicenseView();
                } else {
                    Resources.LANGUAGE = GlobalValueManager.getApplicationLang();
                    new LoginFrame();
                }
            }
View Full Code Here

            public void run() {                       
                if (GlobalValueManager.getValue("firsttime").equals("TRUE")) {                   
                    new LicenseView();
                } else {
                    Resources.LANGUAGE = GlobalValueManager.getApplicationLang();
                    new LoginFrame();
                }
            }
        });      
    }   
View Full Code Here

                                        newRow.getRowSet().getRows().add(childRow);
                                        listener.getContainer().getCurrentObject().getRows().add(childRow);
                                    }
                                }
                                listener.getContainer().getCurrentObject().getRows().add(newRow);
                                new ObjectEdit(listener.getContainer(), listener.getContainer().getCurrentObject(), newRow, "Add", "Add");                   
                                listener.getContainer().setEnabled(false);
                            }
                        }
                    }
                }
View Full Code Here

        private void restoreDefault() {
           
                Iterator groupComponentsIter = groupComponents.iterator();
                Iterator gvsIter = currentGVGroup.getGvs().iterator();
                while (gvsIter.hasNext()) {
                    GV gv = (GV)gvsIter.next();
                    JComponent component = (JComponent)groupComponentsIter.next();
                    if (component instanceof JComboBox) {
                        JComboBox comboBox = (JComboBox)component;
                        for (int i = 0; i < comboBox.getItemCount(); i++) {
                            Item item = (Item)comboBox.getItemAt(i);
                            if (item.getFactValue().equals(gv.getDefvalue())) {
                                comboBox.setSelectedIndex(i);
                                break;
                            }
                        }
                    }
View Full Code Here

        private void apply() {
           
                Iterator groupComponentsIter = groupComponents.iterator();
                Iterator gvsIter = currentGVGroup.getGvs().iterator();
                while (gvsIter.hasNext()) {
                    GV gv = (GV)gvsIter.next();
                    JComponent component = (JComponent)groupComponentsIter.next();
                    if (component instanceof JComboBox) {
                        JComboBox comboBox = (JComboBox)component;
                        Item item = (Item)comboBox.getSelectedItem();
                        GlobalValueManager.setValue(gv.getVid(), (String)item.getFactValue());
                    }
                }                               
           
        }
View Full Code Here

               
                n = 1;
                groupComponents = new Vector();
                for (int i = 1; i <= currentGVGroup.getGvs().size(); i++) {
                   
                        GV gv = (GV)currentGVGroup.getGvs().get(i - 1);
                        JPanel panel = new JPanel();
                        panel.setBorder(new TitledBorder(TxtManager.getTxt("VIEW.GV." + gv.getVid())));
                        panel.setLayout(new FormLayout(
                                new ColumnSpec[] {
                                        new ColumnSpec("10px"),
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                        new ColumnSpec("150px"),
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                        new ColumnSpec("150px")
                                },
                                RowSpec.decodeSpecs("5px, default, 5px")));
                       
                        JLabel label = new JLabel(TxtManager.getTxt("VIEW.GV." + gv.getVid()));
                        panel.add(label, cc.xy(3, 2));
                        JComponent component = GVManager.getComponent(gv);
                        groupComponents.add(component);
                        panel.add(component, cc.xy(5, 2));
                                               
View Full Code Here

       
        try {
            KeyPairGenerator keyGen = KeyPairGenerator.getInstance(KEY_GENERATE_ALGORITHM);
            keyGen.initialize(1024);
            KeyPair key = keyGen.generateKeyPair();
            DAO dao = DAO.getInstance();
            dao.update(Resources.GENERATE_KEY_SQL);
            dao.setObject(1, (Object)key.getPublic());
            dao.setObject(2, (Object)key.getPrivate());
            dao.executeUpdate();
        } catch (Exception e) {
            e.printStackTrace();
        }              
       
    }
View Full Code Here

       
    }
   
    public static void updateKeyPair(PublicKey publicKey, PrivateKey privateKey) {
       
        DAO dao = DAO.getInstance();
        dao.update(Resources.GENERATE_KEY_SQL);
        dao.setObject(1, (Object)publicKey);
        dao.setObject(2, (Object)privateKey);
        dao.executeUpdate();
       
    }      
View Full Code Here

   
    public static PublicKey getPublicKey() {    
       
        PublicKey key = null;
       
        DAO dao = DAO.getInstance();
        dao.query(Resources.SELECT_PUB_AND_PRI_KEY_SQL);
        ResultSet rs = dao.executeQuery();
        try {
           
            if (rs.next())
                key = (PublicKey)rs.getObject("PUBKEY");
           
View Full Code Here

TOP

Related Classes of realcix20.guis.views.settings.tools.GV

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.