Package com.GestDB.sql

Examples of com.GestDB.sql.ConexionIFrame


        int pos2 = 0;
        try {
            for(int i=0; i < vConexiones.size(); i++)
            {
                cadena = (String)vConexiones.elementAt(i);
                ConexionIFrame conexIFrame = null;

                conexIFrame = new ConexionIFrame(this, cadena, GetLiteral("gestor.connected_to","Conexi�n con") + ": " + cadena, getConexion(cadena,pConexiones,JDBCDRIVERCLASS),
                            getConexion(cadena,pConexiones,JDBCDRIVERURL), getConexion(cadena,pConexiones,USER),
                            getConexion(cadena,pConexiones,PASSWORD));

                // si esta activa la opci�n de guarar los tabs se tiene que encargar de cargar los tabs
                if(tabsXml != null && tabsXml.indexOf("<conection><title>" + cadena + "</title>") != -1)
                {
                    pos1 = tabsXml.indexOf("<conection><title>" + cadena + "</title>");
                    pos1 = tabsXml.indexOf("</title>",pos1) + 8; // quita el title
                    pos2 = tabsXml.indexOf("</conection>",pos1);
                    if(pos2 != -1)
                    {
                        conexIFrame.putXML(tabsXml.substring(pos1,pos2));
                    }
                }

                DesktopPanel.add(conexIFrame);
                conexIFrame.setVisible(true);
            }

            // coloca las ventana en cascada
            javax.swing.JInternalFrame jif[] = DesktopPanel.getAllFrames();
            for(int i=jif.length, x=0, y=0 ;i> 0;i--,x += 20,y += 20)
View Full Code Here


                {
                    sTemp += (i > 0?";":"") + vConexionesRecientes.elementAt(i);
                }
                propiedades.put("gestor.recent_connections",sTemp);

                ConexionIFrame conexIFrame = new ConexionIFrame(this, sc.getKey(), GetLiteral("gestor.connected_to","Conexi�n con") + ": " + sc.getKey(), sc.getjdbcDriverClass(), sc.getjdbcDriverURL(), sc.getuser(), sc.getpassword());
                conexIFrame.setBounds(0, 0, DesktopPanel.getWidth(), DesktopPanel.getHeight());
                DesktopPanel.add(conexIFrame);
                boolean bPorDefecto = true;

                if((propiedades.containsKey("conexion.tabs.guardar") &&
                    propiedades.getProperty("conexion.tabs.guardar").toLowerCase().equals("true")) ||
                    !propiedades.containsKey("conexion.tabs.guardar"))
                {
                    String tabsXml = getTabs(this);
                    if(tabsXml != null && tabsXml.indexOf("<conection><title>" + sc.getKey() + "</title>") != -1)
                    {
                        int pos1 = tabsXml.indexOf("<conection><title>" + sc.getKey() + "</title>");
                        pos1 = tabsXml.indexOf("</title>",pos1) + 8; // quita el title
                        int pos2 = tabsXml.indexOf("</conection>",pos1);
                        if(pos2 != -1)
                        {
                            bPorDefecto = false;
                            conexIFrame.putXML(tabsXml.substring(pos1,pos2));
                        }
                    }
                }

                if(bPorDefecto)
                {
                    // cargamos una pesta�a de sql por defecto
                    SQLPannel sqlp = new SQLPannel(this, sc.getKey(), conexIFrame.getTitle(), sc.getjdbcDriverClass(), sc.getjdbcDriverURL(), sc.getuser(), sc.getpassword());
                    conexIFrame.jTabbedPane1.add("SQL   ", sqlp);
                    conexIFrame.jTabbedPane1.setSelectedComponent(sqlp);
                    sqlp.jTabbedPane1.grabFocus();
                }

                conexIFrame.setVisible(true);

                sc = null;
            }
        } catch(Throwable e)
        {
View Full Code Here

TOP

Related Classes of com.GestDB.sql.ConexionIFrame

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.