File src/menu/TimeMenu.form changed (mode: 100644) (index 637aa2f..9ee9e1c) |
34 |
34 |
<Group type="103" groupAlignment="0" attributes="0"> |
<Group type="103" groupAlignment="0" attributes="0"> |
35 |
35 |
<Group type="102" alignment="0" attributes="0"> |
<Group type="102" alignment="0" attributes="0"> |
36 |
36 |
<Component id="jPanel1" min="-2" max="-2" attributes="0"/> |
<Component id="jPanel1" min="-2" max="-2" attributes="0"/> |
37 |
|
<EmptySpace pref="106" max="32767" attributes="0"/> |
|
|
37 |
|
<EmptySpace min="0" pref="9" max="32767" attributes="0"/> |
38 |
38 |
</Group> |
</Group> |
39 |
39 |
</Group> |
</Group> |
40 |
40 |
</DimensionLayout> |
</DimensionLayout> |
|
85 |
85 |
</Group> |
</Group> |
86 |
86 |
<EmptySpace min="18" pref="18" max="-2" attributes="0"/> |
<EmptySpace min="18" pref="18" max="-2" attributes="0"/> |
87 |
87 |
</Group> |
</Group> |
|
88 |
|
<Group type="102" alignment="0" attributes="0"> |
|
89 |
|
<Component id="jButton7" min="-2" max="-2" attributes="0"/> |
|
90 |
|
<EmptySpace type="unrelated" max="-2" attributes="0"/> |
|
91 |
|
<Component id="jButton8" min="-2" max="-2" attributes="0"/> |
|
92 |
|
<EmptySpace min="0" pref="0" max="32767" attributes="0"/> |
|
93 |
|
</Group> |
88 |
94 |
</Group> |
</Group> |
89 |
95 |
</Group> |
</Group> |
90 |
96 |
</Group> |
</Group> |
|
123 |
129 |
<Component id="jScrollPane3" max="32767" attributes="0"/> |
<Component id="jScrollPane3" max="32767" attributes="0"/> |
124 |
130 |
</Group> |
</Group> |
125 |
131 |
</Group> |
</Group> |
126 |
|
<EmptySpace max="32767" attributes="0"/> |
|
|
132 |
|
<EmptySpace pref="14" max="32767" attributes="0"/> |
|
133 |
|
<Group type="103" groupAlignment="3" attributes="0"> |
|
134 |
|
<Component id="jButton7" alignment="3" min="-2" max="-2" attributes="0"/> |
|
135 |
|
<Component id="jButton8" alignment="3" min="-2" max="-2" attributes="0"/> |
|
136 |
|
</Group> |
|
137 |
|
<EmptySpace type="separate" max="-2" attributes="0"/> |
127 |
138 |
<Group type="103" groupAlignment="3" attributes="0"> |
<Group type="103" groupAlignment="3" attributes="0"> |
128 |
139 |
<Component id="jButton1" alignment="3" min="-2" max="-2" attributes="0"/> |
<Component id="jButton1" alignment="3" min="-2" max="-2" attributes="0"/> |
129 |
140 |
<Component id="jButton4" alignment="3" min="-2" max="-2" attributes="0"/> |
<Component id="jButton4" alignment="3" min="-2" max="-2" attributes="0"/> |
|
289 |
300 |
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton6ActionPerformed"/> |
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton6ActionPerformed"/> |
290 |
301 |
</Events> |
</Events> |
291 |
302 |
</Component> |
</Component> |
|
303 |
|
<Component class="javax.swing.JButton" name="jButton7"> |
|
304 |
|
<Properties> |
|
305 |
|
<Property name="text" type="java.lang.String" value="Очистить выбор"/> |
|
306 |
|
</Properties> |
|
307 |
|
<Events> |
|
308 |
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton7ActionPerformed"/> |
|
309 |
|
</Events> |
|
310 |
|
</Component> |
|
311 |
|
<Component class="javax.swing.JButton" name="jButton8"> |
|
312 |
|
<Properties> |
|
313 |
|
<Property name="text" type="java.lang.String" value="Выбрать всё"/> |
|
314 |
|
</Properties> |
|
315 |
|
<Events> |
|
316 |
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton8ActionPerformed"/> |
|
317 |
|
</Events> |
|
318 |
|
</Component> |
292 |
319 |
</SubComponents> |
</SubComponents> |
293 |
320 |
</Container> |
</Container> |
294 |
321 |
</SubComponents> |
</SubComponents> |
File src/menu/TimeMenu.java changed (mode: 100644) (index 7b9683c..04beefa) |
... |
... |
public class TimeMenu extends javax.swing.JDialog { |
68 |
68 |
for (ChanCol c : cols) { |
for (ChanCol c : cols) { |
69 |
69 |
lmod3.addElement(c.getFullname()); |
lmod3.addElement(c.getFullname()); |
70 |
70 |
} |
} |
71 |
|
|
|
72 |
|
|
|
|
71 |
|
|
73 |
72 |
} |
} |
74 |
73 |
|
|
75 |
74 |
/** |
/** |
|
... |
... |
public class TimeMenu extends javax.swing.JDialog { |
98 |
97 |
jList4 = new javax.swing.JList<>(); |
jList4 = new javax.swing.JList<>(); |
99 |
98 |
jButton5 = new javax.swing.JButton(); |
jButton5 = new javax.swing.JButton(); |
100 |
99 |
jButton6 = new javax.swing.JButton(); |
jButton6 = new javax.swing.JButton(); |
|
100 |
|
jButton7 = new javax.swing.JButton(); |
|
101 |
|
jButton8 = new javax.swing.JButton(); |
101 |
102 |
|
|
102 |
103 |
setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE); |
setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE); |
103 |
104 |
|
|
|
... |
... |
public class TimeMenu extends javax.swing.JDialog { |
170 |
171 |
} |
} |
171 |
172 |
}); |
}); |
172 |
173 |
|
|
|
174 |
|
jButton7.setText("Очистить выбор"); |
|
175 |
|
jButton7.addActionListener(new java.awt.event.ActionListener() { |
|
176 |
|
public void actionPerformed(java.awt.event.ActionEvent evt) { |
|
177 |
|
jButton7ActionPerformed(evt); |
|
178 |
|
} |
|
179 |
|
}); |
|
180 |
|
|
|
181 |
|
jButton8.setText("Выбрать всё"); |
|
182 |
|
jButton8.addActionListener(new java.awt.event.ActionListener() { |
|
183 |
|
public void actionPerformed(java.awt.event.ActionEvent evt) { |
|
184 |
|
jButton8ActionPerformed(evt); |
|
185 |
|
} |
|
186 |
|
}); |
|
187 |
|
|
173 |
188 |
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); |
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); |
174 |
189 |
jPanel1.setLayout(jPanel1Layout); |
jPanel1.setLayout(jPanel1Layout); |
175 |
190 |
jPanel1Layout.setHorizontalGroup( |
jPanel1Layout.setHorizontalGroup( |
|
... |
... |
public class TimeMenu extends javax.swing.JDialog { |
204 |
219 |
.addComponent(jButton5, javax.swing.GroupLayout.Alignment.LEADING)) |
.addComponent(jButton5, javax.swing.GroupLayout.Alignment.LEADING)) |
205 |
220 |
.addGap(10, 10, 10) |
.addGap(10, 10, 10) |
206 |
221 |
.addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE))) |
.addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE))) |
207 |
|
.addGap(18, 18, 18)))) |
|
|
222 |
|
.addGap(18, 18, 18)) |
|
223 |
|
.addGroup(jPanel1Layout.createSequentialGroup() |
|
224 |
|
.addComponent(jButton7) |
|
225 |
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) |
|
226 |
|
.addComponent(jButton8) |
|
227 |
|
.addGap(0, 0, Short.MAX_VALUE)))) |
208 |
228 |
); |
); |
209 |
229 |
jPanel1Layout.setVerticalGroup( |
jPanel1Layout.setVerticalGroup( |
210 |
230 |
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
|
... |
... |
public class TimeMenu extends javax.swing.JDialog { |
233 |
253 |
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) |
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) |
234 |
254 |
.addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 169, Short.MAX_VALUE) |
.addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 169, Short.MAX_VALUE) |
235 |
255 |
.addComponent(jScrollPane3))) |
.addComponent(jScrollPane3))) |
236 |
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) |
|
|
256 |
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 14, Short.MAX_VALUE) |
|
257 |
|
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) |
|
258 |
|
.addComponent(jButton7) |
|
259 |
|
.addComponent(jButton8)) |
|
260 |
|
.addGap(18, 18, 18) |
237 |
261 |
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) |
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) |
238 |
262 |
.addComponent(jButton1) |
.addComponent(jButton1) |
239 |
263 |
.addComponent(jButton4)) |
.addComponent(jButton4)) |
|
... |
... |
public class TimeMenu extends javax.swing.JDialog { |
253 |
277 |
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
254 |
278 |
.addGroup(layout.createSequentialGroup() |
.addGroup(layout.createSequentialGroup() |
255 |
279 |
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) |
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) |
256 |
|
.addContainerGap(106, Short.MAX_VALUE)) |
|
|
280 |
|
.addGap(0, 9, Short.MAX_VALUE)) |
257 |
281 |
); |
); |
258 |
282 |
|
|
259 |
283 |
pack(); |
pack(); |
|
... |
... |
public class TimeMenu extends javax.swing.JDialog { |
321 |
345 |
} |
} |
322 |
346 |
}//GEN-LAST:event_jButton6ActionPerformed |
}//GEN-LAST:event_jButton6ActionPerformed |
323 |
347 |
|
|
|
348 |
|
private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton7ActionPerformed |
|
349 |
|
// clear |
|
350 |
|
|
|
351 |
|
setInf(); |
|
352 |
|
jList3.setModel(lmod3); |
|
353 |
|
lmod4.clear(); |
|
354 |
|
jList4.setModel(lmod4); |
|
355 |
|
}//GEN-LAST:event_jButton7ActionPerformed |
|
356 |
|
|
|
357 |
|
private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton8ActionPerformed |
|
358 |
|
// select all |
|
359 |
|
|
|
360 |
|
lmod4.clear(); |
|
361 |
|
ArrayList<ChanCol> cols = cf.getColumns(); |
|
362 |
|
for (ChanCol c : cols) { |
|
363 |
|
lmod4.addElement(c.getFullname()); |
|
364 |
|
} |
|
365 |
|
jList4.setModel(lmod4); |
|
366 |
|
|
|
367 |
|
lmod3.clear(); |
|
368 |
|
jList3.setModel(lmod3); |
|
369 |
|
}//GEN-LAST:event_jButton8ActionPerformed |
|
370 |
|
|
324 |
371 |
|
|
325 |
372 |
// Variables declaration - do not modify//GEN-BEGIN:variables |
// Variables declaration - do not modify//GEN-BEGIN:variables |
326 |
373 |
private javax.swing.JButton jButton1; |
private javax.swing.JButton jButton1; |
|
... |
... |
public class TimeMenu extends javax.swing.JDialog { |
329 |
376 |
private javax.swing.JButton jButton4; |
private javax.swing.JButton jButton4; |
330 |
377 |
private javax.swing.JButton jButton5; |
private javax.swing.JButton jButton5; |
331 |
378 |
private javax.swing.JButton jButton6; |
private javax.swing.JButton jButton6; |
|
379 |
|
private javax.swing.JButton jButton7; |
|
380 |
|
private javax.swing.JButton jButton8; |
332 |
381 |
private javax.swing.JLabel jLabel1; |
private javax.swing.JLabel jLabel1; |
333 |
382 |
private javax.swing.JLabel jLabel2; |
private javax.swing.JLabel jLabel2; |
334 |
383 |
private javax.swing.JList<String> jList1; |
private javax.swing.JList<String> jList1; |