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 / export / jdbc / swing / panels / PostCreatingStatementPanelLayout.java @ 43925
History | View | Annotate | Download (4.39 KB)
1 | 41638 | jjdelcerro | /*
|
---|---|---|---|
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 | 43925 | jjdelcerro | package org.gvsig.export.jdbc.swing.panels; |
8 | 41638 | jjdelcerro | |
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 | |||
18 | /**
|
||
19 | *
|
||
20 | * @author usuario
|
||
21 | */
|
||
22 | public class PostCreatingStatementPanelLayout extends javax.swing.JPanel { |
||
23 | |||
24 | /**
|
||
25 | * Creates new form PostCreatingStatementPanelLayout
|
||
26 | */
|
||
27 | public PostCreatingStatementPanelLayout() {
|
||
28 | initComponents(); |
||
29 | } |
||
30 | |||
31 | /**
|
||
32 | * This method is called from within the constructor to
|
||
33 | * initialize the form.
|
||
34 | * WARNING: Do NOT modify this code. The content of this method is
|
||
35 | * always regenerated by the Form Editor.
|
||
36 | */
|
||
37 | @SuppressWarnings("unchecked") |
||
38 | // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
|
||
39 | private void initComponents() { |
||
40 | GridBagConstraints gridBagConstraints;
|
||
41 | |||
42 | lblHeader = new JLabel(); |
||
43 | filler1 = new Box.Filler(new Dimension(16, 0), new Dimension(16, 0), new Dimension(16, 32767)); |
||
44 | jScrollPane1 = new JScrollPane(); |
||
45 | txtPostCreatingStatement = new JTextArea(); |
||
46 | filler2 = new Box.Filler(new Dimension(16, 16), new Dimension(16, 16), new Dimension(16, 16)); |
||
47 | chkUsePostCreatingStatement = new JCheckBox(); |
||
48 | filler3 = new Box.Filler(new Dimension(16, 0), new Dimension(16, 0), new Dimension(16, 32767)); |
||
49 | |||
50 | GridBagLayout layout = new GridBagLayout(); |
||
51 | layout.columnWidths = new int[] {0, 4, 0, 4, 0, 4, 0}; |
||
52 | layout.rowHeights = new int[] {0, 4, 0, 4, 0, 4, 0, 4, 0}; |
||
53 | setLayout(layout); |
||
54 | |||
55 | 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 |
||
56 | gridBagConstraints = new GridBagConstraints(); |
||
57 | gridBagConstraints.gridx = 2;
|
||
58 | gridBagConstraints.gridy = 2;
|
||
59 | gridBagConstraints.gridwidth = 3;
|
||
60 | gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
|
||
61 | add(lblHeader, gridBagConstraints); |
||
62 | gridBagConstraints = new GridBagConstraints(); |
||
63 | gridBagConstraints.gridx = 6;
|
||
64 | gridBagConstraints.gridy = 0;
|
||
65 | add(filler1, gridBagConstraints); |
||
66 | |||
67 | txtPostCreatingStatement.setColumns(20);
|
||
68 | txtPostCreatingStatement.setRows(5);
|
||
69 | jScrollPane1.setViewportView(txtPostCreatingStatement); |
||
70 | |||
71 | gridBagConstraints = new GridBagConstraints(); |
||
72 | gridBagConstraints.gridx = 4;
|
||
73 | gridBagConstraints.gridy = 6;
|
||
74 | gridBagConstraints.fill = GridBagConstraints.BOTH;
|
||
75 | gridBagConstraints.anchor = GridBagConstraints.FIRST_LINE_START;
|
||
76 | gridBagConstraints.weightx = 0.1;
|
||
77 | gridBagConstraints.weighty = 0.1;
|
||
78 | add(jScrollPane1, gridBagConstraints); |
||
79 | gridBagConstraints = new GridBagConstraints(); |
||
80 | gridBagConstraints.gridx = 0;
|
||
81 | gridBagConstraints.gridy = 8;
|
||
82 | gridBagConstraints.fill = GridBagConstraints.VERTICAL;
|
||
83 | add(filler2, gridBagConstraints); |
||
84 | |||
85 | chkUsePostCreatingStatement.setText("Introducir sentencia a ejecutar tras la creacion de la tabla");
|
||
86 | gridBagConstraints = new GridBagConstraints(); |
||
87 | gridBagConstraints.gridx = 2;
|
||
88 | gridBagConstraints.gridy = 4;
|
||
89 | gridBagConstraints.gridwidth = 3;
|
||
90 | gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
|
||
91 | add(chkUsePostCreatingStatement, gridBagConstraints); |
||
92 | gridBagConstraints = new GridBagConstraints(); |
||
93 | gridBagConstraints.gridx = 2;
|
||
94 | gridBagConstraints.gridy = 6;
|
||
95 | add(filler3, gridBagConstraints); |
||
96 | }// </editor-fold>//GEN-END:initComponents
|
||
97 | |||
98 | |||
99 | // Variables declaration - do not modify//GEN-BEGIN:variables
|
||
100 | public JCheckBox chkUsePostCreatingStatement; |
||
101 | public Box.Filler filler1; |
||
102 | public Box.Filler filler2; |
||
103 | public Box.Filler filler3; |
||
104 | public JScrollPane jScrollPane1; |
||
105 | public JLabel lblHeader; |
||
106 | public JTextArea txtPostCreatingStatement; |
||
107 | // End of variables declaration//GEN-END:variables
|
||
108 | } |