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 / UpdateTableStatisticsPanelLayout.java @ 41638

History | View | Annotate | Download (3.31 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 org.jdesktop.layout.GroupLayout;
16

    
17
/**
18
 *
19
 * @author usuario
20
 */
21
public class UpdateTableStatisticsPanelLayout extends javax.swing.JPanel {
22

    
23
    /**
24
     * Creates new form PackPanelLayout
25
     */
26
    public UpdateTableStatisticsPanelLayout() {
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
        filler1 = new Box.Filler(new Dimension(16, 0), new Dimension(16, 0), new Dimension(16, 32767));
43
        chkUpdateStatisticsTableAfterInserts = new JCheckBox();
44
        filler2 = new Box.Filler(new Dimension(16, 16), new Dimension(16, 16), new Dimension(16, 16));
45

    
46
        GridBagLayout layout = new GridBagLayout();
47
        layout.columnWidths = new int[] {0, 4, 0, 4, 0};
48
        layout.rowHeights = new int[] {0, 4, 0, 4, 0, 4, 0};
49
        setLayout(layout);
50

    
51
        lblHeader.setText("<html>\nAlgunos gestores de base de datos tienen la opcion de recopilar estadisticas de los datos de  las tablas para optimizar el acceso a los datos tras una insercion masiva de estos.<br>\nPuede indicar aqui si desea que se realice esta operacion al final de la exportacion.\n</html>"); // NOI18N
52
        gridBagConstraints = new GridBagConstraints();
53
        gridBagConstraints.gridx = 2;
54
        gridBagConstraints.gridy = 2;
55
        gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
56
        add(lblHeader, gridBagConstraints);
57
        gridBagConstraints = new GridBagConstraints();
58
        gridBagConstraints.gridx = 4;
59
        gridBagConstraints.gridy = 0;
60
        add(filler1, gridBagConstraints);
61

    
62
        chkUpdateStatisticsTableAfterInserts.setText("Recalcular estadisticas de  la tabla al terminar");
63
        gridBagConstraints = new GridBagConstraints();
64
        gridBagConstraints.gridx = 2;
65
        gridBagConstraints.gridy = 4;
66
        gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
67
        gridBagConstraints.weightx = 0.1;
68
        add(chkUpdateStatisticsTableAfterInserts, gridBagConstraints);
69
        gridBagConstraints = new GridBagConstraints();
70
        gridBagConstraints.gridx = 0;
71
        gridBagConstraints.gridy = 6;
72
        gridBagConstraints.fill = GridBagConstraints.VERTICAL;
73
        gridBagConstraints.weighty = 0.1;
74
        add(filler2, gridBagConstraints);
75
    }// </editor-fold>//GEN-END:initComponents
76

    
77

    
78
    // Variables declaration - do not modify//GEN-BEGIN:variables
79
    public JCheckBox chkUpdateStatisticsTableAfterInserts;
80
    public Box.Filler filler1;
81
    public Box.Filler filler2;
82
    public JLabel lblHeader;
83
    // End of variables declaration//GEN-END:variables
84
}