Package realcix20.guis.views

Examples of realcix20.guis.views.ObjectInfo


            JTree tree = getContainer().getTree();
       
            if (tree.getLastSelectedPathComponent() != null) {
                DefaultMutableTreeNode node = (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
                if (node.getUserObject() instanceof ObjectInfo) {
                    ObjectInfo oj = (ObjectInfo)node.getUserObject();
                    if (oj.flag.equals("layout")) {

                        DAO dao = DAO.getInstance();
                        dao.query(Resources.SELECT_CL_SQL);
                        dao.setInt(1, getContainer().getCurrentObject().getClsId());
View Full Code Here


            int rowCount = tree.getRowCount();
            for (int i = 0; i < rowCount; i++) {
               
                TreePath treePath = tree.getPathForRow(i);
                DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)treePath.getLastPathComponent();
                ObjectInfo objectInfo = (ObjectInfo)treeNode.getUserObject();
                if (objectInfo.flag.equals("account")) {
                   accountPath = treePath;
                   break;
                }
               
View Full Code Here

            int rowCount = tree.getRowCount();
            for (int i = 0; i < rowCount; i++) {
               
                TreePath treePath = tree.getPathForRow(i);
                DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)treePath.getLastPathComponent();
                ObjectInfo objectInfo = (ObjectInfo)treeNode.getUserObject();
                if (objectInfo.flag.equals("accountSettings")) {
                   accountSettingPath = treePath;
                   break;
                }
               
View Full Code Here

       
            JTree tree = getContainer().getTree();
            TreePath specifyTreePath = null;
               
            DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)treePath.getLastPathComponent();
            ObjectInfo objectInfo = (ObjectInfo)treeNode.getUserObject();
            if ( (objectInfo.flag.equals("object")) && (objectInfo.clsId == clsId) )
                specifyTreePath = treePath;
           
            if (specifyTreePath == null) {
                boolean expanded = tree.isExpanded(treePath);
View Full Code Here

           
            JTree tree = getContainer().getTree();
            for (int i = 1; i <= tree.getRowCount(); i++) {
                DefaultMutableTreeNode node = (DefaultMutableTreeNode)tree.getPathForRow(i).getLastPathComponent();
                if (node != null) {
                    ObjectInfo oj = (ObjectInfo)node.getUserObject();                   
                    //If it is a corresponedence class
                    if ( (oj.flag.equals("object")) && (oj.clsId == 520) ) {                           
                            tree.setSelectionPath(tree.getPathForRow(i));                               
                            break;
                    }
View Full Code Here

            JTree tree = getContainer().getTree();
            //test
            for (int i = 1; i <= tree.getRowCount(); i++) {
                DefaultMutableTreeNode node = (DefaultMutableTreeNode)tree.getPathForRow(i).getLastPathComponent();
                if (node != null) {
                    ObjectInfo oj = (ObjectInfo)node.getUserObject();                   
                    //If it is a reg class
                    if ( (oj.flag.equals("object")) && (oj.clsId == 250) ) {                           
                            tree.setSelectionPath(tree.getPathForRow(i));                               
                            break;
                    }
View Full Code Here

            JTree tree = getContainer().getTree();
            //test
            for (int i = 1; i <= tree.getRowCount(); i++) {
                DefaultMutableTreeNode node = (DefaultMutableTreeNode)tree.getPathForRow(i).getLastPathComponent();
                if (node != null) {
                    ObjectInfo oj = (ObjectInfo)node.getUserObject();                   
                    //If it is a reg class
                    if ( (oj.flag.equals("object")) && (oj.clsId == 250) ) {                           
                            tree.setSelectionPath(tree.getPathForRow(i));                               
                            break;
                    }
View Full Code Here

                JTree tree = container.getTree();
                for (int i = 1; i <= tree.getRowCount(); i++) {
                   
                    DefaultMutableTreeNode node = (DefaultMutableTreeNode)tree.getPathForRow(i).getLastPathComponent();
                    if (node != null) {
                        ObjectInfo oj = (ObjectInfo)node.getUserObject();
                        //If it is a partner class
                        if ( (oj.flag.equals("object")) && (oj.clsId == 250) ) {                           
                            tree.setSelectionPath(tree.getPathForRow(i));
                            container.getListener().initialObjectAdd(this, "Confirm Add Account Request");     
                            break;
View Full Code Here

               
                for (int i = 1; i <= tree.getRowCount(); i++) {
                                                        
                    DefaultMutableTreeNode node = (DefaultMutableTreeNode)tree.getPathForRow(i).getLastPathComponent();
                    if (node != null) {
                        ObjectInfo oj = (ObjectInfo)node.getUserObject();
                        //It's partner class
                        if ( (oj.flag.equals("object")) && (oj.clsId == 250) ) {                           
                            tree.setSelectionPath(tree.getPathForRow(i));
                            //This will be updated
                            Iterator rowIter = container.getCurrentObject().getRows().iterator();
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

TOP

Related Classes of realcix20.guis.views.ObjectInfo

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.