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 / IdentifiersOptionsPanelLayout.java @ 41642
History | View | Annotate | Download (4.08 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.GroupLayout; |
14 |
import javax.swing.JCheckBox; |
15 |
import javax.swing.JLabel; |
16 |
|
17 |
/**
|
18 |
*
|
19 |
* @author usuario
|
20 |
*/
|
21 |
public class IdentifiersOptionsPanelLayout extends javax.swing.JPanel { |
22 |
|
23 |
/**
|
24 |
* Creates new form IdentifiersOptionsPanelLayout
|
25 |
*/
|
26 |
public IdentifiersOptionsPanelLayout() {
|
27 |
initComponents(); |
28 |
} |
29 |
|
30 |
/**
|
31 |
* This method is called from within the constructor to
|
32 |
* initialize the form.
|
33 |
* WARNING: Do NOT modify this code. The content of this method is
|
34 |
* always regenerated by the Form Editor.
|
35 |
*/
|
36 |
@SuppressWarnings("unchecked") |
37 |
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
|
38 |
private void initComponents() { |
39 |
GridBagConstraints gridBagConstraints;
|
40 |
|
41 |
lblHeader = new JLabel(); |
42 |
chkTraslateToLowerCase = new JCheckBox(); |
43 |
chkRemoveSpaces = new JCheckBox(); |
44 |
filler1 = new Box.Filler(new Dimension(16, 16), new Dimension(16, 16), new Dimension(16, 16)); |
45 |
jLabel1 = new JLabel(); |
46 |
|
47 |
GridBagLayout layout = new GridBagLayout(); |
48 |
layout.columnWidths = new int[] {0, 4, 0, 4, 0}; |
49 |
layout.rowHeights = new int[] {0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0}; |
50 |
setLayout(layout); |
51 |
|
52 |
lblHeader.setText("<html>\nAlgunas bases de datos precisan tratar los identificadores de tabla o campo que tienen mayusculas y minusculas mezcladas, o espacios en blanco de forma especial a la hora de referirse a ellos. \nEs recomendable que no los utilice para evitar problemas.<br>\nPuede indicar al asistente que traslade todos los nombres de campo a minusculas y que use \"_\" en lugar de espacios en blanco en el nombre de tabla si los hubiese.\n</html>"); // NOI18N |
53 |
gridBagConstraints = new GridBagConstraints(); |
54 |
gridBagConstraints.gridx = 2;
|
55 |
gridBagConstraints.gridy = 2;
|
56 |
gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
|
57 |
gridBagConstraints.anchor = GridBagConstraints.LINE_START;
|
58 |
add(lblHeader, gridBagConstraints); |
59 |
|
60 |
chkTraslateToLowerCase.setText("Trasladar identificadores de campo y tabla a minusculas");
|
61 |
gridBagConstraints = new GridBagConstraints(); |
62 |
gridBagConstraints.gridx = 2;
|
63 |
gridBagConstraints.gridy = 4;
|
64 |
gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
|
65 |
gridBagConstraints.anchor = GridBagConstraints.LINE_START;
|
66 |
gridBagConstraints.weightx = 0.1;
|
67 |
add(chkTraslateToLowerCase, gridBagConstraints); |
68 |
|
69 |
chkRemoveSpaces.setText("Trasladar espacios en blanco en los identificadores a \"_\"");
|
70 |
gridBagConstraints = new GridBagConstraints(); |
71 |
gridBagConstraints.gridx = 2;
|
72 |
gridBagConstraints.gridy = 6;
|
73 |
gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
|
74 |
gridBagConstraints.anchor = GridBagConstraints.LINE_START;
|
75 |
gridBagConstraints.weightx = 0.1;
|
76 |
add(chkRemoveSpaces, gridBagConstraints); |
77 |
gridBagConstraints = new GridBagConstraints(); |
78 |
gridBagConstraints.gridx = 0;
|
79 |
gridBagConstraints.gridy = 8;
|
80 |
gridBagConstraints.fill = GridBagConstraints.VERTICAL;
|
81 |
add(filler1, gridBagConstraints); |
82 |
gridBagConstraints = new GridBagConstraints(); |
83 |
gridBagConstraints.gridx = 2;
|
84 |
gridBagConstraints.gridy = 8;
|
85 |
gridBagConstraints.anchor = GridBagConstraints.LINE_START;
|
86 |
gridBagConstraints.weighty = 0.1;
|
87 |
add(jLabel1, gridBagConstraints); |
88 |
}// </editor-fold>//GEN-END:initComponents
|
89 |
|
90 |
|
91 |
// Variables declaration - do not modify//GEN-BEGIN:variables
|
92 |
protected JCheckBox chkRemoveSpaces; |
93 |
protected JCheckBox chkTraslateToLowerCase; |
94 |
protected Box.Filler filler1; |
95 |
protected JLabel jLabel1; |
96 |
protected JLabel lblHeader; |
97 |
// End of variables declaration//GEN-END:variables
|
98 |
} |