Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.exportto / org.gvsig.exportto.swing / org.gvsig.exportto.swing.prov / org.gvsig.exportto.swing.prov.jdbc / src / main / java / org / gvsig / exportto / swing / prov / jdbc / panel / PostCreatingStatementPanelLayout.java @ 41638

History | View | Annotate | Download (4.44 KB)

1
/*
2
 * To change this license header, choose License Headers in Project Properties.
3
 * To change this template file, choose Tools | Templates
4
 * and open the template in the editor.
5
 */
6

    
7
package org.gvsig.exportto.swing.prov.jdbc.panel;
8

    
9
import java.awt.Dimension;
10
import java.awt.GridBagConstraints;
11
import java.awt.GridBagLayout;
12
import javax.swing.Box;
13
import javax.swing.JCheckBox;
14
import javax.swing.JLabel;
15
import javax.swing.JScrollPane;
16
import javax.swing.JTextArea;
17
import org.jdesktop.layout.GroupLayout;
18

    
19
/**
20
 *
21
 * @author usuario
22
 */
23
public class PostCreatingStatementPanelLayout extends javax.swing.JPanel {
24

    
25
    /**
26
     * Creates new form PostCreatingStatementPanelLayout
27
     */
28
    public PostCreatingStatementPanelLayout() {
29
        initComponents();
30
    }
31

    
32
    /**
33
     * This method is called from within the constructor to
34
     * initialize the form.
35
     * WARNING: Do NOT modify this code. The content of this method is
36
     * always regenerated by the Form Editor.
37
     */
38
    @SuppressWarnings("unchecked")
39
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
40
    private void initComponents() {
41
        GridBagConstraints gridBagConstraints;
42

    
43
        lblHeader = new JLabel();
44
        filler1 = new Box.Filler(new Dimension(16, 0), new Dimension(16, 0), new Dimension(16, 32767));
45
        jScrollPane1 = new JScrollPane();
46
        txtPostCreatingStatement = new JTextArea();
47
        filler2 = new Box.Filler(new Dimension(16, 16), new Dimension(16, 16), new Dimension(16, 16));
48
        chkUsePostCreatingStatement = new JCheckBox();
49
        filler3 = new Box.Filler(new Dimension(16, 0), new Dimension(16, 0), new Dimension(16, 32767));
50

    
51
        GridBagLayout layout = new GridBagLayout();
52
        layout.columnWidths = new int[] {0, 4, 0, 4, 0, 4, 0};
53
        layout.rowHeights = new int[] {0, 4, 0, 4, 0, 4, 0, 4, 0};
54
        setLayout(layout);
55

    
56
        lblHeader.setText("<html>\nPuede indicar una sentencia SQL a ejecutar tras la creacion de la tabla en la base de datos.<br>\nEsto puede ser de utilidad para asignar una configuracion de permisos peculiar, para crear algun tipo de indice que no cree la aplicacion por defecto o a?adir alguna columna a la tabla que no este en la tabla original.\n</html>"); // NOI18N
57
        gridBagConstraints = new GridBagConstraints();
58
        gridBagConstraints.gridx = 2;
59
        gridBagConstraints.gridy = 2;
60
        gridBagConstraints.gridwidth = 3;
61
        gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
62
        add(lblHeader, gridBagConstraints);
63
        gridBagConstraints = new GridBagConstraints();
64
        gridBagConstraints.gridx = 6;
65
        gridBagConstraints.gridy = 0;
66
        add(filler1, gridBagConstraints);
67

    
68
        txtPostCreatingStatement.setColumns(20);
69
        txtPostCreatingStatement.setRows(5);
70
        jScrollPane1.setViewportView(txtPostCreatingStatement);
71

    
72
        gridBagConstraints = new GridBagConstraints();
73
        gridBagConstraints.gridx = 4;
74
        gridBagConstraints.gridy = 6;
75
        gridBagConstraints.fill = GridBagConstraints.BOTH;
76
        gridBagConstraints.anchor = GridBagConstraints.FIRST_LINE_START;
77
        gridBagConstraints.weightx = 0.1;
78
        gridBagConstraints.weighty = 0.1;
79
        add(jScrollPane1, gridBagConstraints);
80
        gridBagConstraints = new GridBagConstraints();
81
        gridBagConstraints.gridx = 0;
82
        gridBagConstraints.gridy = 8;
83
        gridBagConstraints.fill = GridBagConstraints.VERTICAL;
84
        add(filler2, gridBagConstraints);
85

    
86
        chkUsePostCreatingStatement.setText("Introducir  sentencia a ejecutar tras la creacion de la tabla");
87
        gridBagConstraints = new GridBagConstraints();
88
        gridBagConstraints.gridx = 2;
89
        gridBagConstraints.gridy = 4;
90
        gridBagConstraints.gridwidth = 3;
91
        gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
92
        add(chkUsePostCreatingStatement, gridBagConstraints);
93
        gridBagConstraints = new GridBagConstraints();
94
        gridBagConstraints.gridx = 2;
95
        gridBagConstraints.gridy = 6;
96
        add(filler3, gridBagConstraints);
97
    }// </editor-fold>//GEN-END:initComponents
98

    
99

    
100
    // Variables declaration - do not modify//GEN-BEGIN:variables
101
    public JCheckBox chkUsePostCreatingStatement;
102
    public Box.Filler filler1;
103
    public Box.Filler filler2;
104
    public Box.Filler filler3;
105
    public JScrollPane jScrollPane1;
106
    public JLabel lblHeader;
107
    public JTextArea txtPostCreatingStatement;
108
    // End of variables declaration//GEN-END:variables
109
}