/*
 * JQueryDesigner.java
 *
 *  iReport  --  Visual designer for generating JasperReports Documents
 *  Copyright (C) 2002-2003  Giulio Toffoli gt@businesslogic.it
 *
 *  This program is free software; you can redistribute  and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 *  Giulio Toffoli
 *  Via T.Aspetti, 233
 *  35100 Padova ITALY
 *  gt@businesslogic.it
 *
 *
 * Created on 20 maggio 2003, 18.58
 */

package it.businesslogic.ireport.gui;

/**
 *
 * @author  Administrator
 */
public class JQueryDesigner extends javax.swing.JFrame {
    
    /** Creates new form JQueryDesigner */
    public JQueryDesigner() {
        initComponents();
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
        private void initComponents() {//GEN-BEGIN:initComponents
                jPanel1 = new javax.swing.JPanel();
                jSplitPane1 = new javax.swing.JSplitPane();
                jScrollPane1 = new javax.swing.JScrollPane();
                jTree1 = new javax.swing.JTree();
                jPanel2 = new javax.swing.JPanel();
                jTabbedPane1 = new javax.swing.JTabbedPane();
                jPanel5 = new javax.swing.JPanel();
                jTabbedPane2 = new javax.swing.JTabbedPane();
                jPanel7 = new javax.swing.JPanel();
                jScrollPane2 = new javax.swing.JScrollPane();
                jTable1 = new javax.swing.JTable();
                jPanel11 = new javax.swing.JPanel();
                jButton1 = new javax.swing.JButton();
                jButton2 = new javax.swing.JButton();
                jPanel8 = new javax.swing.JPanel();
                jPanel12 = new javax.swing.JPanel();
                jButton3 = new javax.swing.JButton();
                jButton4 = new javax.swing.JButton();
                jScrollPane3 = new javax.swing.JScrollPane();
                jList1 = new javax.swing.JList();
                jPanel13 = new javax.swing.JPanel();
                jPanel9 = new javax.swing.JPanel();
                jPanel10 = new javax.swing.JPanel();
                jPanel4 = new javax.swing.JPanel();
                jTextArea1 = new javax.swing.JTextArea();
                jPanel6 = new javax.swing.JPanel();
                jSQLTablesPane1 = new it.businesslogic.ireport.gui.JSQLTablesPane();
                jTableFrame1 = new it.businesslogic.ireport.gui.JTableFrame();
                jTableFrame2 = new it.businesslogic.ireport.gui.JTableFrame();

                addWindowListener(new java.awt.event.WindowAdapter() {
                        public void windowClosing(java.awt.event.WindowEvent evt) {
                                exitForm(evt);
                        }
                });

                jPanel1.setMinimumSize(new java.awt.Dimension(10, 40));
                jPanel1.setPreferredSize(new java.awt.Dimension(10, 40));
                getContentPane().add(jPanel1, java.awt.BorderLayout.NORTH);

                jScrollPane1.setMinimumSize(new java.awt.Dimension(150, 22));
                jScrollPane1.setPreferredSize(new java.awt.Dimension(150, 3));
                jTree1.setMinimumSize(new java.awt.Dimension(150, 0));
                jTree1.setPreferredSize(new java.awt.Dimension(150, 72));
                jScrollPane1.setViewportView(jTree1);

                jSplitPane1.setLeftComponent(jScrollPane1);

                jPanel2.setLayout(new java.awt.BorderLayout());

                jTabbedPane1.setPreferredSize(new java.awt.Dimension(8, 250));
                jPanel5.setLayout(new java.awt.BorderLayout());

                jTabbedPane2.setTabPlacement(javax.swing.JTabbedPane.BOTTOM);
                jPanel7.setLayout(new java.awt.BorderLayout());

                jTable1.setModel(new javax.swing.table.DefaultTableModel(
                        new Object [][] {
                                {null, null, null, null, null},
                                {null, null, null, null, null},
                                {null, null, null, null, null},
                                {null, null, null, null, null}
                        },
                        new String [] {
                                "Field name/Expression", "View", "Alias", "Formula", "..."
                        }
                ) {
                        Class[] types = new Class [] {
                                java.lang.Object.class, java.lang.Boolean.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class
                        };

                        public Class getColumnClass(int columnIndex) {
                                return types [columnIndex];
                        }
                });
                jScrollPane2.setViewportView(jTable1);

                jPanel7.add(jScrollPane2, java.awt.BorderLayout.CENTER);

                jPanel11.setLayout(null);

                jPanel11.setMinimumSize(new java.awt.Dimension(10, 30));
                jPanel11.setPreferredSize(new java.awt.Dimension(10, 30));
                jButton1.setFont(new java.awt.Font("Dialog", 0, 11));
                jButton1.setText("Add expression field");
                jPanel11.add(jButton1);
                jButton1.setBounds(2, 2, 162, 23);

                jButton2.setFont(new java.awt.Font("Dialog", 0, 11));
                jButton2.setText("Remove");
                jPanel11.add(jButton2);
                jButton2.setBounds(168, 2, 82, 23);

                jPanel7.add(jPanel11, java.awt.BorderLayout.SOUTH);

                jTabbedPane2.addTab("Fields", jPanel7);

                jPanel8.setLayout(new java.awt.BorderLayout());

                jPanel12.setLayout(null);

                jPanel12.setMinimumSize(new java.awt.Dimension(10, 30));
                jPanel12.setPreferredSize(new java.awt.Dimension(10, 30));
                jButton3.setFont(new java.awt.Font("Dialog", 0, 11));
                jButton3.setText("Add condition");
                jPanel12.add(jButton3);
                jButton3.setBounds(2, 2, 162, 23);

                jButton4.setFont(new java.awt.Font("Dialog", 0, 11));
                jButton4.setText("Remove");
                jPanel12.add(jButton4);
                jButton4.setBounds(168, 2, 82, 23);

                jPanel8.add(jPanel12, java.awt.BorderLayout.SOUTH);

                jScrollPane3.setPreferredSize(new java.awt.Dimension(200, 3));
                jScrollPane3.setViewportView(jList1);

                jPanel8.add(jScrollPane3, java.awt.BorderLayout.WEST);

                jPanel13.setBorder(new javax.swing.border.TitledBorder(new javax.swing.border.EtchedBorder(), "Condition"));
                jPanel8.add(jPanel13, java.awt.BorderLayout.CENTER);

                jTabbedPane2.addTab("Conditions", jPanel8);

                jTabbedPane2.addTab("Sort", jPanel9);

                jTabbedPane2.addTab("Grouping", jPanel10);

                jPanel5.add(jTabbedPane2, java.awt.BorderLayout.CENTER);

                jTabbedPane1.addTab("Structure", jPanel5);

                jPanel4.setLayout(new java.awt.BorderLayout());

                jPanel4.add(jTextArea1, java.awt.BorderLayout.CENTER);

                jTabbedPane1.addTab("SQL", jPanel4);

                jTabbedPane1.addTab("Preview", jPanel6);

                jPanel2.add(jTabbedPane1, java.awt.BorderLayout.SOUTH);

                jTableFrame1.setVisible(true);
                jTableFrame1.setBounds(34, 44, -1, -1);
                jSQLTablesPane1.add(jTableFrame1, javax.swing.JLayeredPane.DEFAULT_LAYER);

                jTableFrame2.setVisible(true);
                jTableFrame2.setBounds(152, 54, -1, -1);
                jSQLTablesPane1.add(jTableFrame2, javax.swing.JLayeredPane.DEFAULT_LAYER);

                jPanel2.add(jSQLTablesPane1, java.awt.BorderLayout.CENTER);

                jSplitPane1.setRightComponent(jPanel2);

                getContentPane().add(jSplitPane1, java.awt.BorderLayout.CENTER);

                pack();
        }//GEN-END:initComponents
    
    /** Exit the Application */
    private void exitForm(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_exitForm
        System.exit(0);
    }//GEN-LAST:event_exitForm
    
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        new JQueryDesigner().show();
    }
    
    
        // Variables declaration - do not modify//GEN-BEGIN:variables
        private javax.swing.JButton jButton1;
        private javax.swing.JButton jButton2;
        private javax.swing.JButton jButton3;
        private javax.swing.JButton jButton4;
        private javax.swing.JList jList1;
        private javax.swing.JPanel jPanel1;
        private javax.swing.JPanel jPanel10;
        private javax.swing.JPanel jPanel11;
        private javax.swing.JPanel jPanel12;
        private javax.swing.JPanel jPanel13;
        private javax.swing.JPanel jPanel2;
        private javax.swing.JPanel jPanel4;
        private javax.swing.JPanel jPanel5;
        private javax.swing.JPanel jPanel6;
        private javax.swing.JPanel jPanel7;
        private javax.swing.JPanel jPanel8;
        private javax.swing.JPanel jPanel9;
        private it.businesslogic.ireport.gui.JSQLTablesPane jSQLTablesPane1;
        private javax.swing.JScrollPane jScrollPane1;
        private javax.swing.JScrollPane jScrollPane2;
        private javax.swing.JScrollPane jScrollPane3;
        private javax.swing.JSplitPane jSplitPane1;
        private javax.swing.JTabbedPane jTabbedPane1;
        private javax.swing.JTabbedPane jTabbedPane2;
        private javax.swing.JTable jTable1;
        private it.businesslogic.ireport.gui.JTableFrame jTableFrame1;
        private it.businesslogic.ireport.gui.JTableFrame jTableFrame2;
        private javax.swing.JTextArea jTextArea1;
        private javax.swing.JTree jTree1;
        // End of variables declaration//GEN-END:variables
    
}
