svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.newlayer / org.gvsig.newlayer.prov / org.gvsig.newlayer.prov.jdbc / src / main / java / org / gvsig / newlayer / prov / jdbc / panels / PermissionsPanelLayout.java @ 45564
History | View | Annotate | Download (12 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.newlayer.prov.jdbc.panels; |
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 javax.swing.JTextField; |
16 |
|
17 |
/**
|
18 |
*
|
19 |
* @author usuario
|
20 |
*/
|
21 |
public class PermissionsPanelLayout extends javax.swing.JPanel { |
22 |
|
23 |
/**
|
24 |
* Creates new form PermissionsPanelLayout
|
25 |
*/
|
26 |
public PermissionsPanelLayout() {
|
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 |
chkSelect = new JCheckBox(); |
43 |
lblRoleSelect = new JLabel(); |
44 |
txtRoleSelect = new JTextField(); |
45 |
filler1 = new Box.Filler(new Dimension(16, 0), new Dimension(16, 0), new Dimension(16, 32767)); |
46 |
filler2 = new Box.Filler(new Dimension(16, 0), new Dimension(16, 0), new Dimension(16, 32767)); |
47 |
chkInsert = new JCheckBox(); |
48 |
chkUpdate = new JCheckBox(); |
49 |
chkDelete = new JCheckBox(); |
50 |
chkTruncate = new JCheckBox(); |
51 |
chkReference = new JCheckBox(); |
52 |
chkTrigger = new JCheckBox(); |
53 |
chkAll = new JCheckBox(); |
54 |
filler3 = new Box.Filler(new Dimension(16, 16), new Dimension(16, 16), new Dimension(16, 16)); |
55 |
lblRoleInsert = new JLabel(); |
56 |
lblRoleUpdate = new JLabel(); |
57 |
lblRoleDelete = new JLabel(); |
58 |
lblRoleTruncate = new JLabel(); |
59 |
lblRoleReference = new JLabel(); |
60 |
lblRoleTrigger = new JLabel(); |
61 |
lblRoleAll = new JLabel(); |
62 |
txtRoleInsert = new JTextField(); |
63 |
txtRoleUpdate = new JTextField(); |
64 |
txtRoleDelete = new JTextField(); |
65 |
txtRoleTruncate = new JTextField(); |
66 |
txtRoleReference = new JTextField(); |
67 |
txtRoleTrigger = new JTextField(); |
68 |
txtRoleAll = new JTextField(); |
69 |
|
70 |
GridBagLayout layout = new GridBagLayout(); |
71 |
layout.columnWidths = new int[] {0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0}; |
72 |
layout.rowHeights = new int[] {0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4, 0}; |
73 |
setLayout(layout); |
74 |
|
75 |
lblHeader.setText("<html>\nPuede indicar permisos que desea se asignen a la tabla una vez creada.<br>\nMarque que privilegios desea le sean asignados e indique para cada uno que <i>perfil</i>, usuario o grupo, desea que tenga ese privilegio.<br>\nPuede indicar mas de un <i>perfil</i> separandolos por comas.\n</html>");
|
76 |
gridBagConstraints = new GridBagConstraints(); |
77 |
gridBagConstraints.gridx = 2;
|
78 |
gridBagConstraints.gridy = 2;
|
79 |
gridBagConstraints.gridwidth = 7;
|
80 |
gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
|
81 |
add(lblHeader, gridBagConstraints); |
82 |
|
83 |
chkSelect.setText("Select");
|
84 |
gridBagConstraints = new GridBagConstraints(); |
85 |
gridBagConstraints.gridx = 2;
|
86 |
gridBagConstraints.gridy = 4;
|
87 |
gridBagConstraints.gridwidth = 7;
|
88 |
gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
|
89 |
gridBagConstraints.anchor = GridBagConstraints.LINE_START;
|
90 |
gridBagConstraints.weightx = 0.1;
|
91 |
add(chkSelect, gridBagConstraints); |
92 |
|
93 |
lblRoleSelect.setText("Perfil");
|
94 |
gridBagConstraints = new GridBagConstraints(); |
95 |
gridBagConstraints.gridx = 4;
|
96 |
gridBagConstraints.gridy = 6;
|
97 |
add(lblRoleSelect, gridBagConstraints); |
98 |
gridBagConstraints = new GridBagConstraints(); |
99 |
gridBagConstraints.gridx = 6;
|
100 |
gridBagConstraints.gridy = 6;
|
101 |
gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
|
102 |
gridBagConstraints.weightx = 0.1;
|
103 |
add(txtRoleSelect, gridBagConstraints); |
104 |
gridBagConstraints = new GridBagConstraints(); |
105 |
gridBagConstraints.gridx = 2;
|
106 |
gridBagConstraints.gridy = 6;
|
107 |
add(filler1, gridBagConstraints); |
108 |
gridBagConstraints = new GridBagConstraints(); |
109 |
gridBagConstraints.gridx = 10;
|
110 |
gridBagConstraints.gridy = 0;
|
111 |
add(filler2, gridBagConstraints); |
112 |
|
113 |
chkInsert.setText("Insert");
|
114 |
gridBagConstraints = new GridBagConstraints(); |
115 |
gridBagConstraints.gridx = 2;
|
116 |
gridBagConstraints.gridy = 8;
|
117 |
gridBagConstraints.gridwidth = 7;
|
118 |
gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
|
119 |
gridBagConstraints.anchor = GridBagConstraints.LINE_START;
|
120 |
gridBagConstraints.weightx = 0.1;
|
121 |
add(chkInsert, gridBagConstraints); |
122 |
|
123 |
chkUpdate.setText("Update");
|
124 |
gridBagConstraints = new GridBagConstraints(); |
125 |
gridBagConstraints.gridx = 2;
|
126 |
gridBagConstraints.gridy = 12;
|
127 |
gridBagConstraints.gridwidth = 7;
|
128 |
gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
|
129 |
gridBagConstraints.anchor = GridBagConstraints.LINE_START;
|
130 |
gridBagConstraints.weightx = 0.1;
|
131 |
add(chkUpdate, gridBagConstraints); |
132 |
|
133 |
chkDelete.setText("Delete");
|
134 |
gridBagConstraints = new GridBagConstraints(); |
135 |
gridBagConstraints.gridx = 2;
|
136 |
gridBagConstraints.gridy = 16;
|
137 |
gridBagConstraints.gridwidth = 7;
|
138 |
gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
|
139 |
gridBagConstraints.anchor = GridBagConstraints.LINE_START;
|
140 |
gridBagConstraints.weightx = 0.1;
|
141 |
add(chkDelete, gridBagConstraints); |
142 |
|
143 |
chkTruncate.setText("Truncate");
|
144 |
gridBagConstraints = new GridBagConstraints(); |
145 |
gridBagConstraints.gridx = 2;
|
146 |
gridBagConstraints.gridy = 20;
|
147 |
gridBagConstraints.gridwidth = 7;
|
148 |
gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
|
149 |
gridBagConstraints.anchor = GridBagConstraints.LINE_START;
|
150 |
gridBagConstraints.weightx = 0.1;
|
151 |
add(chkTruncate, gridBagConstraints); |
152 |
|
153 |
chkReference.setText("Reference");
|
154 |
gridBagConstraints = new GridBagConstraints(); |
155 |
gridBagConstraints.gridx = 2;
|
156 |
gridBagConstraints.gridy = 24;
|
157 |
gridBagConstraints.gridwidth = 7;
|
158 |
gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
|
159 |
gridBagConstraints.anchor = GridBagConstraints.LINE_START;
|
160 |
gridBagConstraints.weightx = 0.1;
|
161 |
add(chkReference, gridBagConstraints); |
162 |
|
163 |
chkTrigger.setText("Trigger");
|
164 |
gridBagConstraints = new GridBagConstraints(); |
165 |
gridBagConstraints.gridx = 2;
|
166 |
gridBagConstraints.gridy = 28;
|
167 |
gridBagConstraints.gridwidth = 7;
|
168 |
gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
|
169 |
gridBagConstraints.anchor = GridBagConstraints.LINE_START;
|
170 |
gridBagConstraints.weightx = 0.1;
|
171 |
add(chkTrigger, gridBagConstraints); |
172 |
|
173 |
chkAll.setText("All");
|
174 |
gridBagConstraints = new GridBagConstraints(); |
175 |
gridBagConstraints.gridx = 2;
|
176 |
gridBagConstraints.gridy = 32;
|
177 |
gridBagConstraints.gridwidth = 7;
|
178 |
gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
|
179 |
gridBagConstraints.anchor = GridBagConstraints.LINE_START;
|
180 |
gridBagConstraints.weightx = 0.1;
|
181 |
add(chkAll, gridBagConstraints); |
182 |
gridBagConstraints = new GridBagConstraints(); |
183 |
gridBagConstraints.gridx = 0;
|
184 |
gridBagConstraints.gridy = 36;
|
185 |
gridBagConstraints.fill = GridBagConstraints.VERTICAL;
|
186 |
gridBagConstraints.weighty = 0.1;
|
187 |
add(filler3, gridBagConstraints); |
188 |
|
189 |
lblRoleInsert.setText("Perfil");
|
190 |
gridBagConstraints = new GridBagConstraints(); |
191 |
gridBagConstraints.gridx = 4;
|
192 |
gridBagConstraints.gridy = 10;
|
193 |
add(lblRoleInsert, gridBagConstraints); |
194 |
|
195 |
lblRoleUpdate.setText("Perfil");
|
196 |
gridBagConstraints = new GridBagConstraints(); |
197 |
gridBagConstraints.gridx = 4;
|
198 |
gridBagConstraints.gridy = 14;
|
199 |
add(lblRoleUpdate, gridBagConstraints); |
200 |
|
201 |
lblRoleDelete.setText("Perfil");
|
202 |
gridBagConstraints = new GridBagConstraints(); |
203 |
gridBagConstraints.gridx = 4;
|
204 |
gridBagConstraints.gridy = 18;
|
205 |
add(lblRoleDelete, gridBagConstraints); |
206 |
|
207 |
lblRoleTruncate.setText("Perfil");
|
208 |
gridBagConstraints = new GridBagConstraints(); |
209 |
gridBagConstraints.gridx = 4;
|
210 |
gridBagConstraints.gridy = 22;
|
211 |
add(lblRoleTruncate, gridBagConstraints); |
212 |
|
213 |
lblRoleReference.setText("Perfil");
|
214 |
gridBagConstraints = new GridBagConstraints(); |
215 |
gridBagConstraints.gridx = 4;
|
216 |
gridBagConstraints.gridy = 26;
|
217 |
add(lblRoleReference, gridBagConstraints); |
218 |
|
219 |
lblRoleTrigger.setText("Perfil");
|
220 |
gridBagConstraints = new GridBagConstraints(); |
221 |
gridBagConstraints.gridx = 4;
|
222 |
gridBagConstraints.gridy = 30;
|
223 |
add(lblRoleTrigger, gridBagConstraints); |
224 |
|
225 |
lblRoleAll.setText("Perfil");
|
226 |
gridBagConstraints = new GridBagConstraints(); |
227 |
gridBagConstraints.gridx = 4;
|
228 |
gridBagConstraints.gridy = 34;
|
229 |
add(lblRoleAll, gridBagConstraints); |
230 |
gridBagConstraints = new GridBagConstraints(); |
231 |
gridBagConstraints.gridx = 6;
|
232 |
gridBagConstraints.gridy = 10;
|
233 |
gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
|
234 |
add(txtRoleInsert, gridBagConstraints); |
235 |
gridBagConstraints = new GridBagConstraints(); |
236 |
gridBagConstraints.gridx = 6;
|
237 |
gridBagConstraints.gridy = 14;
|
238 |
gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
|
239 |
add(txtRoleUpdate, gridBagConstraints); |
240 |
gridBagConstraints = new GridBagConstraints(); |
241 |
gridBagConstraints.gridx = 6;
|
242 |
gridBagConstraints.gridy = 18;
|
243 |
gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
|
244 |
add(txtRoleDelete, gridBagConstraints); |
245 |
gridBagConstraints = new GridBagConstraints(); |
246 |
gridBagConstraints.gridx = 6;
|
247 |
gridBagConstraints.gridy = 22;
|
248 |
gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
|
249 |
add(txtRoleTruncate, gridBagConstraints); |
250 |
gridBagConstraints = new GridBagConstraints(); |
251 |
gridBagConstraints.gridx = 6;
|
252 |
gridBagConstraints.gridy = 26;
|
253 |
gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
|
254 |
add(txtRoleReference, gridBagConstraints); |
255 |
gridBagConstraints = new GridBagConstraints(); |
256 |
gridBagConstraints.gridx = 6;
|
257 |
gridBagConstraints.gridy = 30;
|
258 |
gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
|
259 |
add(txtRoleTrigger, gridBagConstraints); |
260 |
gridBagConstraints = new GridBagConstraints(); |
261 |
gridBagConstraints.gridx = 6;
|
262 |
gridBagConstraints.gridy = 34;
|
263 |
gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
|
264 |
add(txtRoleAll, gridBagConstraints); |
265 |
}// </editor-fold>//GEN-END:initComponents
|
266 |
|
267 |
|
268 |
// Variables declaration - do not modify//GEN-BEGIN:variables
|
269 |
public JCheckBox chkAll; |
270 |
public JCheckBox chkDelete; |
271 |
public JCheckBox chkInsert; |
272 |
public JCheckBox chkReference; |
273 |
public JCheckBox chkSelect; |
274 |
public JCheckBox chkTrigger; |
275 |
public JCheckBox chkTruncate; |
276 |
public JCheckBox chkUpdate; |
277 |
public Box.Filler filler1; |
278 |
public Box.Filler filler2; |
279 |
public Box.Filler filler3; |
280 |
public JLabel lblHeader; |
281 |
public JLabel lblRoleAll; |
282 |
public JLabel lblRoleDelete; |
283 |
public JLabel lblRoleInsert; |
284 |
public JLabel lblRoleReference; |
285 |
public JLabel lblRoleSelect; |
286 |
public JLabel lblRoleTrigger; |
287 |
public JLabel lblRoleTruncate; |
288 |
public JLabel lblRoleUpdate; |
289 |
public JTextField txtRoleAll; |
290 |
public JTextField txtRoleDelete; |
291 |
public JTextField txtRoleInsert; |
292 |
public JTextField txtRoleReference; |
293 |
public JTextField txtRoleSelect; |
294 |
public JTextField txtRoleTrigger; |
295 |
public JTextField txtRoleTruncate; |
296 |
public JTextField txtRoleUpdate; |
297 |
// End of variables declaration//GEN-END:variables
|
298 |
} |