Package realcix20.guis.views

Examples of realcix20.guis.views.LayoutEditView$columnAllModel


                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


//        defAction.putValue(Action.SMALL_ICON, ImageManager.getImage(ImageManager.NEW_REPORT_IMAGE));
       
       
        Action addAction=new AbstractAction(){
      public void actionPerformed(ActionEvent e) {
        new LayoutEditView(getContainer(), -1, "ADD");
      }
        };
        addAction.putValue(Action.NAME, MnemonicGenerator.generateMnemonicString(TxtManager.getTxt("VIEW.MAINFRAME.TREE.POPUPMENU.NEWREPORT"),KeyEvent.VK_N));
        addAction.putValue(Action.SMALL_ICON, ImageManager.getImage(ImageManager.NEW_REPORT_IMAGE));
       
        Action editAction = new AbstractAction() {
      public void actionPerformed(ActionEvent e) {       
        new LayoutEditView(getContainer(),getCurrentLayout(), "EDIT");
      }
    };
    editAction.putValue(Action.NAME,MnemonicGenerator.generateMnemonicString(TxtManager.getTxt("VIEW.MAINFRAME.TREE.POPUPMENU.EDITREPORT"),KeyEvent.VK_E));
    editAction.putValue(Action.SMALL_ICON, ImageManager.getImage(ImageManager.EDIT_REPORT_IMAGE));
    reportOpts.add(editAction);
       
        Action rnAction = new AbstractAction() {
      public void actionPerformed(ActionEvent e) {       
        new LayoutRenameView(XTable.this,getCurrentLayout());
      }
    };
    rnAction.putValue(Action.NAME,MnemonicGenerator.generateMnemonicString(TxtManager.getTxt("VIEW.MAINFRAME.TREE.POPUPMENU.RENAMEREPORT"),KeyEvent.VK_R));
    rnAction.putValue(Action.SMALL_ICON,ImageManager.getImage(ImageManager.RENAME_REPORT_IMAGE));
    reportOpts.add(rnAction);
   
    Action copyAction = new AbstractAction() {
      public void actionPerformed(ActionEvent e) {
        new LayoutEditView(getContainer(),getCurrentLayout(), "COPY");
      }
    };
    copyAction.putValue(Action.NAME,MnemonicGenerator.generateMnemonicString(TxtManager.getTxt("VIEW.MAINFRAME.TREE.POPUPMENU.COPYREPORT"),KeyEvent.VK_C));
    copyAction.putValue(Action.SMALL_ICON, ImageManager.getImage(ImageManager.COPY_REPORT_IMAGE));
    reportOpts.add(copyAction);
View Full Code Here

                DefaultMutableTreeNode node = (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
                if (node.getUserObject() instanceof ObjectInfo) {
                    ObjectInfo oj = (ObjectInfo)node.getUserObject();
                    if (command.equals("EDIT")) {
                        if (oj.flag.equals("report")) {
                            new LayoutEditView(getContainer(), oj.layout, command);
                            getContainer().setEnabled(false);
                        }
                    } else if (command.equals("ADD")) {
                        if (oj.flag.equals("object")) {
                            new LayoutEditView(getContainer(), -1, command);
                            getContainer().setEnabled(false);
                        }
                    }           
                }
            }
View Full Code Here

                DefaultMutableTreeNode node = (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
                if (node.getUserObject() instanceof ObjectInfo) {
                    ObjectInfo oj = (ObjectInfo)node.getUserObject();
                    if (command.equals("EDIT")) {
                        if (oj.flag.equals("layout")) {
                            new LayoutEditView(getContainer(), oj.layout, command);
                            getContainer().setEnabled(false);
                        }
                    } else if (command.equals("ADD")) {
                        if ( (oj.flag.equals("layout")) || (oj.flag.equals("object")) ) {
                            new LayoutEditView(getContainer(), -1, command);
                            getContainer().setEnabled(false);
                        }
                    }           
                }
            }
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

       
        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.LayoutEditView$columnAllModel

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.