Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.exportto / org.gvsig.exportto.swing / org.gvsig.exportto.swing.impl / src / main / java / org / gvsig / exportto / swing / impl / panel / ExportFilterPanelLayout.java @ 41537

History | View | Annotate | Download (7.33 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.impl.panel;
8

    
9
/**
10
 *
11
 * @author jjdelcerro
12
 */
13
public class ExportFilterPanelLayout extends javax.swing.JPanel {
14

    
15
    /**
16
     * Creates new form ExportFilterPanelLayout
17
     */
18
    public ExportFilterPanelLayout() {
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
        buttonGroup1 = new javax.swing.ButtonGroup();
33
        rdbAllRows = new javax.swing.JRadioButton();
34
        rdbSelectedRows = new javax.swing.JRadioButton();
35
        rdbFilteredRows = new javax.swing.JRadioButton();
36
        lblName = new javax.swing.JLabel();
37
        lblExpresion = new javax.swing.JLabel();
38
        txtName = new javax.swing.JTextField();
39
        jScrollPane2 = new javax.swing.JScrollPane();
40
        txtExpresion = new javax.swing.JTextArea();
41
        jScrollPane1 = new javax.swing.JScrollPane();
42
        lstFilters = new javax.swing.JList();
43
        butTest = new javax.swing.JButton();
44
        filler1 = new javax.swing.Box.Filler(new java.awt.Dimension(16, 16), new java.awt.Dimension(16, 16), new java.awt.Dimension(16, 16));
45
        lblHeader = new javax.swing.JLabel();
46

    
47
        java.awt.GridBagLayout layout = new java.awt.GridBagLayout();
48
        layout.columnWidths = new int[] {0, 5, 0, 5, 0, 5, 0};
49
        layout.rowHeights = new int[] {0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0};
50
        setLayout(layout);
51

    
52
        buttonGroup1.add(rdbAllRows);
53
        rdbAllRows.setText("Todos los registros");
54
        gridBagConstraints = new java.awt.GridBagConstraints();
55
        gridBagConstraints.gridx = 2;
56
        gridBagConstraints.gridy = 4;
57
        gridBagConstraints.gridwidth = 3;
58
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
59
        gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
60
        gridBagConstraints.weightx = 0.1;
61
        add(rdbAllRows, gridBagConstraints);
62

    
63
        buttonGroup1.add(rdbSelectedRows);
64
        rdbSelectedRows.setText("Los registros seleccionados");
65
        gridBagConstraints = new java.awt.GridBagConstraints();
66
        gridBagConstraints.gridx = 2;
67
        gridBagConstraints.gridy = 6;
68
        gridBagConstraints.gridwidth = 3;
69
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
70
        gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
71
        gridBagConstraints.weightx = 0.1;
72
        add(rdbSelectedRows, gridBagConstraints);
73

    
74
        buttonGroup1.add(rdbFilteredRows);
75
        rdbFilteredRows.setText("Los registros que cumplan el critrio seleccionado");
76
        gridBagConstraints = new java.awt.GridBagConstraints();
77
        gridBagConstraints.gridx = 2;
78
        gridBagConstraints.gridy = 8;
79
        gridBagConstraints.gridwidth = 3;
80
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
81
        gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
82
        gridBagConstraints.weightx = 0.1;
83
        add(rdbFilteredRows, gridBagConstraints);
84

    
85
        lblName.setText("Nombre");
86
        gridBagConstraints = new java.awt.GridBagConstraints();
87
        gridBagConstraints.gridx = 4;
88
        gridBagConstraints.gridy = 12;
89
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
90
        gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
91
        gridBagConstraints.weightx = 0.1;
92
        add(lblName, gridBagConstraints);
93

    
94
        lblExpresion.setText("Expresion");
95
        gridBagConstraints = new java.awt.GridBagConstraints();
96
        gridBagConstraints.gridx = 4;
97
        gridBagConstraints.gridy = 16;
98
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
99
        gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
100
        gridBagConstraints.weightx = 0.1;
101
        add(lblExpresion, gridBagConstraints);
102
        gridBagConstraints = new java.awt.GridBagConstraints();
103
        gridBagConstraints.gridx = 4;
104
        gridBagConstraints.gridy = 14;
105
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
106
        gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
107
        gridBagConstraints.weightx = 0.1;
108
        add(txtName, gridBagConstraints);
109

    
110
        txtExpresion.setColumns(20);
111
        txtExpresion.setRows(5);
112
        jScrollPane2.setViewportView(txtExpresion);
113

    
114
        gridBagConstraints = new java.awt.GridBagConstraints();
115
        gridBagConstraints.gridx = 4;
116
        gridBagConstraints.gridy = 18;
117
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
118
        gridBagConstraints.weightx = 0.1;
119
        gridBagConstraints.weighty = 0.1;
120
        add(jScrollPane2, gridBagConstraints);
121

    
122
        lstFilters.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
123
        jScrollPane1.setViewportView(lstFilters);
124

    
125
        gridBagConstraints = new java.awt.GridBagConstraints();
126
        gridBagConstraints.gridx = 4;
127
        gridBagConstraints.gridy = 10;
128
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
129
        gridBagConstraints.weightx = 0.1;
130
        gridBagConstraints.weighty = 0.4;
131
        add(jScrollPane1, gridBagConstraints);
132

    
133
        butTest.setText("Test");
134
        gridBagConstraints = new java.awt.GridBagConstraints();
135
        gridBagConstraints.gridx = 4;
136
        gridBagConstraints.gridy = 20;
137
        gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END;
138
        add(butTest, gridBagConstraints);
139
        gridBagConstraints = new java.awt.GridBagConstraints();
140
        gridBagConstraints.gridx = 2;
141
        gridBagConstraints.gridy = 20;
142
        add(filler1, gridBagConstraints);
143

    
144
        lblHeader.setText("Indique que registros desea exportar");
145
        gridBagConstraints = new java.awt.GridBagConstraints();
146
        gridBagConstraints.gridx = 2;
147
        gridBagConstraints.gridy = 2;
148
        gridBagConstraints.gridwidth = 3;
149
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
150
        gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
151
        add(lblHeader, gridBagConstraints);
152
    }// </editor-fold>//GEN-END:initComponents
153

    
154

    
155
    // Variables declaration - do not modify//GEN-BEGIN:variables
156
    protected javax.swing.JButton butTest;
157
    protected javax.swing.ButtonGroup buttonGroup1;
158
    protected javax.swing.Box.Filler filler1;
159
    protected javax.swing.JScrollPane jScrollPane1;
160
    protected javax.swing.JScrollPane jScrollPane2;
161
    protected javax.swing.JLabel lblExpresion;
162
    protected javax.swing.JLabel lblHeader;
163
    protected javax.swing.JLabel lblName;
164
    protected javax.swing.JList lstFilters;
165
    protected javax.swing.JRadioButton rdbAllRows;
166
    protected javax.swing.JRadioButton rdbFilteredRows;
167
    protected javax.swing.JRadioButton rdbSelectedRows;
168
    protected javax.swing.JTextArea txtExpresion;
169
    protected javax.swing.JTextField txtName;
170
    // End of variables declaration//GEN-END:variables
171
}