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 / SelectPkPanelLayout.java @ 41487
History | View | Annotate | Download (3.79 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 |
/**
|
10 |
*
|
11 |
* @author jjdelcerro
|
12 |
*/
|
13 |
public class SelectPkPanelLayout extends javax.swing.JPanel { |
14 |
|
15 |
/**
|
16 |
* Creates new form SelectPkPanelLayout
|
17 |
*/
|
18 |
public SelectPkPanelLayout() {
|
19 |
initComponents(); |
20 |
} |
21 |
|
22 |
/**
|
23 |
* This method is called from within the constructor to initialize the form.
|
24 |
* WARNING: Do NOT modify this code. The content of this method is always
|
25 |
* regenerated by the Form Editor.
|
26 |
*/
|
27 |
@SuppressWarnings("unchecked") |
28 |
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
|
29 |
private void initComponents() { |
30 |
java.awt.GridBagConstraints gridBagConstraints; |
31 |
|
32 |
lblHeader = new javax.swing.JLabel();
|
33 |
chkCreatePrimaryKey = new javax.swing.JCheckBox();
|
34 |
lblPrimaryKeyName = new javax.swing.JLabel();
|
35 |
txtPrimaryKeyName = new javax.swing.JTextField();
|
36 |
|
37 |
java.awt.GridBagLayout layout = new java.awt.GridBagLayout();
|
38 |
layout.columnWidths = new int[] {0, 5, 0, 5, 0}; |
39 |
layout.rowHeights = new int[] {0, 5, 0, 5, 0, 5, 0}; |
40 |
setLayout(layout); |
41 |
|
42 |
lblHeader.setText("<html>\nPara que gvSIG pueda trabajar correctamente con tablas de BBDD es muy\nrecomendable que esta disponga de una clave primaria definida. Si no \nla tiene e intenta cargarla en gvSIG puede que algunas operaciones no\nfuncionen adecuadamente\n</html>"); // NOI18N |
43 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
44 |
gridBagConstraints.gridx = 0;
|
45 |
gridBagConstraints.gridy = 0;
|
46 |
gridBagConstraints.gridwidth = 3;
|
47 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
48 |
add(lblHeader, gridBagConstraints); |
49 |
|
50 |
chkCreatePrimaryKey.setSelected(true);
|
51 |
chkCreatePrimaryKey.setText("Generar una clave primaria con un serial");
|
52 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
53 |
gridBagConstraints.gridx = 0;
|
54 |
gridBagConstraints.gridy = 2;
|
55 |
gridBagConstraints.gridwidth = 3;
|
56 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
57 |
add(chkCreatePrimaryKey, gridBagConstraints); |
58 |
|
59 |
lblPrimaryKeyName.setText("Indique el nombre de a usar para la clave primaria");
|
60 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
61 |
gridBagConstraints.gridx = 2;
|
62 |
gridBagConstraints.gridy = 4;
|
63 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
64 |
add(lblPrimaryKeyName, gridBagConstraints); |
65 |
|
66 |
txtPrimaryKeyName.setText("pk");
|
67 |
txtPrimaryKeyName.addActionListener(new java.awt.event.ActionListener() {
|
68 |
public void actionPerformed(java.awt.event.ActionEvent evt) { |
69 |
txtPrimaryKeyNameActionPerformed(evt); |
70 |
} |
71 |
}); |
72 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
73 |
gridBagConstraints.gridx = 2;
|
74 |
gridBagConstraints.gridy = 6;
|
75 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
76 |
add(txtPrimaryKeyName, gridBagConstraints); |
77 |
}// </editor-fold>//GEN-END:initComponents
|
78 |
|
79 |
private void txtPrimaryKeyNameActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtPrimaryKeyNameActionPerformed |
80 |
// TODO add your handling code here:
|
81 |
}//GEN-LAST:event_txtPrimaryKeyNameActionPerformed
|
82 |
|
83 |
|
84 |
// Variables declaration - do not modify//GEN-BEGIN:variables
|
85 |
protected javax.swing.JCheckBox chkCreatePrimaryKey;
|
86 |
protected javax.swing.JLabel lblHeader;
|
87 |
protected javax.swing.JLabel lblPrimaryKeyName;
|
88 |
protected javax.swing.JTextField txtPrimaryKeyName;
|
89 |
// End of variables declaration//GEN-END:variables
|
90 |
} |