19 package org.sleuthkit.autopsy.datasourcesummary.ui;
21 import java.beans.PropertyChangeEvent;
22 import java.util.Arrays;
23 import java.util.HashSet;
24 import java.util.List;
26 import java.util.logging.Level;
28 import javax.swing.table.DefaultTableModel;
29 import org.openide.util.NbBundle.Messages;
43 class ContainerPanel
extends BaseDataSourceSummaryPanel {
67 DataSource getDataSource() {
74 Long getUnallocatedFilesSize() {
80 private static final Set<Case.Events> CASE_EVENT_SET =
new HashSet<>(Arrays.asList(
81 Case.Events.DATA_SOURCE_NAME_CHANGED
85 private static final UpdateGovernor CONTAINER_UPDATES =
new DefaultUpdateGovernor() {
88 public Set<Case.Events> getCaseEventUpdates() {
89 return CASE_EVENT_SET;
93 public boolean isRefreshRequiredForCaseEvent(PropertyChangeEvent evt) {
100 private static final long serialVersionUID = 1L;
101 private static final Logger logger = Logger.getLogger(ContainerPanel.class.getName());
103 private final List<DataFetchComponents<DataSource, ?>> dataFetchComponents;
109 this(
new ContainerSummary());
115 ContainerPanel(ContainerSummary containerSummary) {
116 super(containerSummary, CONTAINER_UPDATES);
118 dataFetchComponents = Arrays.asList(
119 new DataFetchComponents<>(
121 return new ContainerPanelData(
123 containerSummary.getSizeOfUnallocatedFiles(dataSource)
127 if (result != null && result.getResultType() == ResultType.SUCCESS) {
128 ContainerPanelData data = result.getData();
129 DataSource dataSource = (data == null) ? null : data.getDataSource();
130 Long unallocatedFileSize = (data == null) ? null : data.getUnallocatedFilesSize();
132 updateDetailsPanelData(dataSource, unallocatedFileSize);
134 if (result == null) {
135 logger.log(Level.WARNING,
"No data fetch result was provided to the ContainerPanel.");
137 logger.log(Level.WARNING,
"An exception occurred while attempting to fetch data for the ContainerPanel.",
138 result.getException());
141 updateDetailsPanelData(null, null);
152 protected void onNewDataSource(DataSource dataSource) {
153 fetchInformation(dataSource);
157 protected void fetchInformation(DataSource dataSource) {
158 fetchInformation(dataFetchComponents, dataSource);
166 private void updateDetailsPanelData(DataSource selectedDataSource, Long unallocatedFilesSize) {
168 if (selectedDataSource != null) {
169 displayNameValue.setText(selectedDataSource.getName());
170 originalNameValue.setText(selectedDataSource.getName());
171 deviceIdValue.setText(selectedDataSource.getDeviceId());
174 acquisitionDetailsTextArea.setText(selectedDataSource.getAcquisitionDetails());
175 }
catch (TskCoreException ex) {
176 logger.log(Level.WARNING,
"Unable to get acquisition details for selected data source", ex);
179 if (selectedDataSource instanceof Image) {
180 setFieldsForImage((Image) selectedDataSource, unallocatedFilesSize);
182 setFieldsForNonImageDataSource();
190 "ContainerPanel_setFieldsForNonImageDataSource_na=N/A"
192 private void setFieldsForNonImageDataSource() {
193 String NA = Bundle.ContainerPanel_setFieldsForNonImageDataSource_na();
195 unallocatedSizeValue.setText(NA);
196 imageTypeValue.setText(NA);
197 sizeValue.setText(NA);
198 sectorSizeValue.setText(NA);
199 timeZoneValue.setText(NA);
201 ((DefaultTableModel) filePathsTable.getModel()).addRow(
new Object[]{NA});
203 md5HashValue.setText(NA);
204 sha1HashValue.setText(NA);
205 sha256HashValue.setText(NA);
216 private void setFieldsForImage(Image selectedImage, Long unallocatedFilesSize) {
217 unallocatedSizeValue.setText(SizeRepresentationUtil.getSizeString(unallocatedFilesSize));
218 imageTypeValue.setText(selectedImage.getType().getName());
219 sizeValue.setText(SizeRepresentationUtil.getSizeString(selectedImage.getSize()));
220 sectorSizeValue.setText(SizeRepresentationUtil.getSizeString(selectedImage.getSsize()));
221 timeZoneValue.setText(selectedImage.getTimeZone());
223 for (String path : selectedImage.getPaths()) {
224 ((DefaultTableModel) filePathsTable.getModel()).addRow(
new Object[]{path});
229 String md5String = selectedImage.getMd5();
230 if (md5String == null) {
233 md5HashValue.setText(md5String);
234 }
catch (TskCoreException ex) {
235 logger.log(Level.WARNING,
"Unable to get MD5 for selected data source", ex);
239 String sha1String = selectedImage.getSha1();
240 if (sha1String == null) {
243 sha1HashValue.setText(sha1String);
244 }
catch (TskCoreException ex) {
245 logger.log(Level.WARNING,
"Unable to get SHA1 for selected data source", ex);
249 String sha256String = selectedImage.getSha256();
250 if (sha256String == null) {
253 sha256HashValue.setText(sha256String);
254 }
catch (TskCoreException ex) {
255 logger.log(Level.WARNING,
"Unable to get SHA256 for selected data source", ex);
262 private void clearTableValues() {
263 displayNameValue.setText(
"");
264 originalNameValue.setText(
"");
265 deviceIdValue.setText(
"");
266 timeZoneValue.setText(
"");
267 acquisitionDetailsTextArea.setText(
"");
268 imageTypeValue.setText(
"");
269 sizeValue.setText(
"");
270 sectorSizeValue.setText(
"");
271 md5HashValue.setText(
"");
272 sha1HashValue.setText(
"");
273 sha256HashValue.setText(
"");
274 unallocatedSizeValue.setText(
"");
275 ((DefaultTableModel) filePathsTable.getModel()).setRowCount(0);
283 @SuppressWarnings(
"unchecked")
285 private
void initComponents() {
286 java.awt.GridBagConstraints gridBagConstraints;
288 jScrollPane1 =
new javax.swing.JScrollPane();
289 jPanel1 =
new javax.swing.JPanel();
290 displayNameLabel =
new javax.swing.JLabel();
291 originalNameLabel =
new javax.swing.JLabel();
292 sha1HashValue =
new javax.swing.JLabel();
293 displayNameValue =
new javax.swing.JLabel();
294 sha256HashValue =
new javax.swing.JLabel();
295 originalNameValue =
new javax.swing.JLabel();
296 deviceIdValue =
new javax.swing.JLabel();
297 filePathsScrollPane =
new javax.swing.JScrollPane();
298 filePathsTable =
new javax.swing.JTable();
299 timeZoneValue =
new javax.swing.JLabel();
300 imageTypeValue =
new javax.swing.JLabel();
301 md5HashValue =
new javax.swing.JLabel();
302 sectorSizeValue =
new javax.swing.JLabel();
303 sizeValue =
new javax.swing.JLabel();
304 filePathsLabel =
new javax.swing.JLabel();
305 sha256HashLabel =
new javax.swing.JLabel();
306 sha1HashLabel =
new javax.swing.JLabel();
307 md5HashLabel =
new javax.swing.JLabel();
308 sectorSizeLabel =
new javax.swing.JLabel();
309 sizeLabel =
new javax.swing.JLabel();
310 imageTypeLabel =
new javax.swing.JLabel();
311 acquisitionDetailsLabel =
new javax.swing.JLabel();
312 timeZoneLabel =
new javax.swing.JLabel();
313 deviceIdLabel =
new javax.swing.JLabel();
314 acquisitionDetailsScrollPane =
new javax.swing.JScrollPane();
315 acquisitionDetailsTextArea =
new javax.swing.JTextArea();
316 filler1 =
new javax.swing.Box.Filler(
new java.awt.Dimension(0, 0),
new java.awt.Dimension(0, 0),
new java.awt.Dimension(32767, 32767));
317 filler2 =
new javax.swing.Box.Filler(
new java.awt.Dimension(0, 0),
new java.awt.Dimension(0, 0),
new java.awt.Dimension(32767, 32767));
318 unallocatedSizeLabel =
new javax.swing.JLabel();
319 unallocatedSizeValue =
new javax.swing.JLabel();
321 jPanel1.setLayout(
new java.awt.GridBagLayout());
323 org.openide.awt.Mnemonics.setLocalizedText(displayNameLabel,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.displayNameLabel.text"));
324 gridBagConstraints =
new java.awt.GridBagConstraints();
325 gridBagConstraints.gridx = 0;
326 gridBagConstraints.gridy = 0;
327 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
328 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
329 gridBagConstraints.insets =
new java.awt.Insets(10, 10, 0, 4);
330 jPanel1.add(displayNameLabel, gridBagConstraints);
332 org.openide.awt.Mnemonics.setLocalizedText(originalNameLabel,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.originalNameLabel.text"));
333 gridBagConstraints =
new java.awt.GridBagConstraints();
334 gridBagConstraints.gridx = 0;
335 gridBagConstraints.gridy = 1;
336 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
337 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
338 gridBagConstraints.insets =
new java.awt.Insets(0, 10, 0, 4);
339 jPanel1.add(originalNameLabel, gridBagConstraints);
341 org.openide.awt.Mnemonics.setLocalizedText(sha1HashValue,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.sha1HashValue.text"));
342 gridBagConstraints =
new java.awt.GridBagConstraints();
343 gridBagConstraints.gridx = 1;
344 gridBagConstraints.gridy = 12;
345 gridBagConstraints.gridwidth = 4;
346 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
347 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
348 gridBagConstraints.weightx = 0.5;
349 gridBagConstraints.insets =
new java.awt.Insets(0, 0, 0, 10);
350 jPanel1.add(sha1HashValue, gridBagConstraints);
352 org.openide.awt.Mnemonics.setLocalizedText(displayNameValue,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.displayNameValue.text"));
353 gridBagConstraints =
new java.awt.GridBagConstraints();
354 gridBagConstraints.gridx = 1;
355 gridBagConstraints.gridy = 0;
356 gridBagConstraints.gridwidth = 4;
357 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
358 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
359 gridBagConstraints.weightx = 0.5;
360 gridBagConstraints.insets =
new java.awt.Insets(10, 0, 0, 10);
361 jPanel1.add(displayNameValue, gridBagConstraints);
363 org.openide.awt.Mnemonics.setLocalizedText(sha256HashValue,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.sha256HashValue.text"));
364 gridBagConstraints =
new java.awt.GridBagConstraints();
365 gridBagConstraints.gridx = 1;
366 gridBagConstraints.gridy = 13;
367 gridBagConstraints.gridwidth = 4;
368 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
369 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
370 gridBagConstraints.weightx = 0.5;
371 gridBagConstraints.insets =
new java.awt.Insets(0, 0, 6, 10);
372 jPanel1.add(sha256HashValue, gridBagConstraints);
374 org.openide.awt.Mnemonics.setLocalizedText(originalNameValue,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.originalNameValue.text"));
375 gridBagConstraints =
new java.awt.GridBagConstraints();
376 gridBagConstraints.gridx = 1;
377 gridBagConstraints.gridy = 1;
378 gridBagConstraints.gridwidth = 4;
379 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
380 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
381 gridBagConstraints.weightx = 0.5;
382 gridBagConstraints.insets =
new java.awt.Insets(0, 0, 0, 10);
383 jPanel1.add(originalNameValue, gridBagConstraints);
385 org.openide.awt.Mnemonics.setLocalizedText(deviceIdValue,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.deviceIdValue.text"));
386 deviceIdValue.setToolTipText(
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.deviceIdValue.toolTipText"));
387 gridBagConstraints =
new java.awt.GridBagConstraints();
388 gridBagConstraints.gridx = 1;
389 gridBagConstraints.gridy = 2;
390 gridBagConstraints.gridwidth = 4;
391 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
392 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
393 gridBagConstraints.weightx = 0.5;
394 gridBagConstraints.insets =
new java.awt.Insets(0, 0, 6, 10);
395 jPanel1.add(deviceIdValue, gridBagConstraints);
397 filePathsScrollPane.setPreferredSize(
new java.awt.Dimension(80, 50));
399 filePathsTable.setModel(
new javax.swing.table.DefaultTableModel(
407 boolean[] canEdit =
new boolean [] {
411 public boolean isCellEditable(
int rowIndex,
int columnIndex) {
412 return canEdit [columnIndex];
415 filePathsTable.setTableHeader(null);
416 filePathsScrollPane.setViewportView(filePathsTable);
417 if (filePathsTable.getColumnModel().getColumnCount() > 0) {
418 filePathsTable.getColumnModel().getColumn(0).setHeaderValue(
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.filePathsTable.columnModel.title0"));
421 gridBagConstraints =
new java.awt.GridBagConstraints();
422 gridBagConstraints.gridx = 1;
423 gridBagConstraints.gridy = 14;
424 gridBagConstraints.gridwidth = 4;
425 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
426 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
427 gridBagConstraints.weightx = 0.5;
428 gridBagConstraints.weighty = 1.2;
429 gridBagConstraints.insets =
new java.awt.Insets(6, 0, 10, 10);
430 jPanel1.add(filePathsScrollPane, gridBagConstraints);
432 org.openide.awt.Mnemonics.setLocalizedText(timeZoneValue,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.timeZoneValue.text"));
433 gridBagConstraints =
new java.awt.GridBagConstraints();
434 gridBagConstraints.gridx = 1;
435 gridBagConstraints.gridy = 5;
436 gridBagConstraints.gridwidth = 4;
437 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
438 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
439 gridBagConstraints.weightx = 0.5;
440 gridBagConstraints.insets =
new java.awt.Insets(0, 0, 6, 10);
441 jPanel1.add(timeZoneValue, gridBagConstraints);
443 org.openide.awt.Mnemonics.setLocalizedText(imageTypeValue,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.imageTypeValue.text"));
444 imageTypeValue.setToolTipText(
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.imageTypeValue.toolTipText"));
445 gridBagConstraints =
new java.awt.GridBagConstraints();
446 gridBagConstraints.gridx = 1;
447 gridBagConstraints.gridy = 7;
448 gridBagConstraints.gridwidth = 4;
449 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
450 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
451 gridBagConstraints.weightx = 0.5;
452 gridBagConstraints.insets =
new java.awt.Insets(6, 0, 0, 10);
453 jPanel1.add(imageTypeValue, gridBagConstraints);
455 org.openide.awt.Mnemonics.setLocalizedText(md5HashValue,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.md5HashValue.text"));
456 md5HashValue.setToolTipText(
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.md5HashValue.toolTipText"));
457 gridBagConstraints =
new java.awt.GridBagConstraints();
458 gridBagConstraints.gridx = 1;
459 gridBagConstraints.gridy = 11;
460 gridBagConstraints.gridwidth = 4;
461 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
462 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
463 gridBagConstraints.weightx = 0.5;
464 gridBagConstraints.insets =
new java.awt.Insets(0, 0, 0, 10);
465 jPanel1.add(md5HashValue, gridBagConstraints);
467 org.openide.awt.Mnemonics.setLocalizedText(sectorSizeValue,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.sectorSizeValue.text"));
468 gridBagConstraints =
new java.awt.GridBagConstraints();
469 gridBagConstraints.gridx = 1;
470 gridBagConstraints.gridy = 10;
471 gridBagConstraints.gridwidth = 4;
472 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
473 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
474 gridBagConstraints.weightx = 0.5;
475 gridBagConstraints.insets =
new java.awt.Insets(0, 0, 0, 10);
476 jPanel1.add(sectorSizeValue, gridBagConstraints);
478 org.openide.awt.Mnemonics.setLocalizedText(sizeValue,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.sizeValue.text"));
479 gridBagConstraints =
new java.awt.GridBagConstraints();
480 gridBagConstraints.gridx = 1;
481 gridBagConstraints.gridy = 8;
482 gridBagConstraints.gridwidth = 4;
483 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
484 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
485 gridBagConstraints.weightx = 0.5;
486 gridBagConstraints.insets =
new java.awt.Insets(0, 0, 0, 10);
487 jPanel1.add(sizeValue, gridBagConstraints);
489 org.openide.awt.Mnemonics.setLocalizedText(filePathsLabel,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.filePathsLabel.text"));
490 gridBagConstraints =
new java.awt.GridBagConstraints();
491 gridBagConstraints.gridx = 0;
492 gridBagConstraints.gridy = 14;
493 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
494 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
495 gridBagConstraints.weighty = 1.2;
496 gridBagConstraints.insets =
new java.awt.Insets(6, 10, 10, 4);
497 jPanel1.add(filePathsLabel, gridBagConstraints);
499 org.openide.awt.Mnemonics.setLocalizedText(sha256HashLabel,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.sha256HashLabel.text"));
500 gridBagConstraints =
new java.awt.GridBagConstraints();
501 gridBagConstraints.gridx = 0;
502 gridBagConstraints.gridy = 13;
503 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
504 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
505 gridBagConstraints.insets =
new java.awt.Insets(0, 10, 6, 4);
506 jPanel1.add(sha256HashLabel, gridBagConstraints);
508 org.openide.awt.Mnemonics.setLocalizedText(sha1HashLabel,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.sha1HashLabel.text"));
509 gridBagConstraints =
new java.awt.GridBagConstraints();
510 gridBagConstraints.gridx = 0;
511 gridBagConstraints.gridy = 12;
512 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
513 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
514 gridBagConstraints.insets =
new java.awt.Insets(0, 10, 0, 4);
515 jPanel1.add(sha1HashLabel, gridBagConstraints);
517 org.openide.awt.Mnemonics.setLocalizedText(md5HashLabel,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.md5HashLabel.text"));
518 gridBagConstraints =
new java.awt.GridBagConstraints();
519 gridBagConstraints.gridx = 0;
520 gridBagConstraints.gridy = 11;
521 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
522 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
523 gridBagConstraints.insets =
new java.awt.Insets(0, 10, 0, 4);
524 jPanel1.add(md5HashLabel, gridBagConstraints);
526 org.openide.awt.Mnemonics.setLocalizedText(sectorSizeLabel,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.sectorSizeLabel.text"));
527 gridBagConstraints =
new java.awt.GridBagConstraints();
528 gridBagConstraints.gridx = 0;
529 gridBagConstraints.gridy = 10;
530 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
531 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
532 gridBagConstraints.insets =
new java.awt.Insets(0, 10, 0, 4);
533 jPanel1.add(sectorSizeLabel, gridBagConstraints);
535 org.openide.awt.Mnemonics.setLocalizedText(sizeLabel,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.sizeLabel.text"));
536 gridBagConstraints =
new java.awt.GridBagConstraints();
537 gridBagConstraints.gridx = 0;
538 gridBagConstraints.gridy = 8;
539 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
540 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
541 gridBagConstraints.insets =
new java.awt.Insets(0, 10, 0, 4);
542 jPanel1.add(sizeLabel, gridBagConstraints);
544 org.openide.awt.Mnemonics.setLocalizedText(imageTypeLabel,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.imageTypeLabel.text"));
545 gridBagConstraints =
new java.awt.GridBagConstraints();
546 gridBagConstraints.gridx = 0;
547 gridBagConstraints.gridy = 7;
548 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
549 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
550 gridBagConstraints.insets =
new java.awt.Insets(6, 10, 0, 4);
551 jPanel1.add(imageTypeLabel, gridBagConstraints);
553 org.openide.awt.Mnemonics.setLocalizedText(acquisitionDetailsLabel,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.acquisitionDetailsLabel.text"));
554 gridBagConstraints =
new java.awt.GridBagConstraints();
555 gridBagConstraints.gridx = 0;
556 gridBagConstraints.gridy = 6;
557 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
558 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
559 gridBagConstraints.weighty = 0.6;
560 gridBagConstraints.insets =
new java.awt.Insets(6, 10, 6, 4);
561 jPanel1.add(acquisitionDetailsLabel, gridBagConstraints);
563 org.openide.awt.Mnemonics.setLocalizedText(timeZoneLabel,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.timeZoneLabel.text"));
564 gridBagConstraints =
new java.awt.GridBagConstraints();
565 gridBagConstraints.gridx = 0;
566 gridBagConstraints.gridy = 5;
567 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
568 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
569 gridBagConstraints.insets =
new java.awt.Insets(0, 10, 6, 4);
570 jPanel1.add(timeZoneLabel, gridBagConstraints);
572 org.openide.awt.Mnemonics.setLocalizedText(deviceIdLabel,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.deviceIdLabel.text"));
573 gridBagConstraints =
new java.awt.GridBagConstraints();
574 gridBagConstraints.gridx = 0;
575 gridBagConstraints.gridy = 2;
576 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
577 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
578 gridBagConstraints.insets =
new java.awt.Insets(0, 10, 6, 4);
579 jPanel1.add(deviceIdLabel, gridBagConstraints);
581 acquisitionDetailsTextArea.setEditable(
false);
582 acquisitionDetailsTextArea.setBackground(javax.swing.UIManager.getDefaults().getColor(
"TextArea.disabledBackground"));
583 acquisitionDetailsTextArea.setColumns(20);
584 acquisitionDetailsTextArea.setRows(4);
585 acquisitionDetailsTextArea.setText(
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.acquisitionDetailsTextArea.text"));
586 acquisitionDetailsTextArea.setBorder(null);
587 acquisitionDetailsScrollPane.setViewportView(acquisitionDetailsTextArea);
589 gridBagConstraints =
new java.awt.GridBagConstraints();
590 gridBagConstraints.gridx = 1;
591 gridBagConstraints.gridy = 6;
592 gridBagConstraints.gridwidth = 4;
593 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
594 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
595 gridBagConstraints.weightx = 0.5;
596 gridBagConstraints.weighty = 0.6;
597 gridBagConstraints.insets =
new java.awt.Insets(6, 0, 6, 10);
598 jPanel1.add(acquisitionDetailsScrollPane, gridBagConstraints);
599 gridBagConstraints =
new java.awt.GridBagConstraints();
600 gridBagConstraints.gridx = 0;
601 gridBagConstraints.gridy = 15;
602 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
603 gridBagConstraints.weighty = 0.1;
604 jPanel1.add(filler1, gridBagConstraints);
605 gridBagConstraints =
new java.awt.GridBagConstraints();
606 gridBagConstraints.gridx = 1;
607 gridBagConstraints.gridy = 15;
608 gridBagConstraints.gridwidth = 4;
609 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
610 gridBagConstraints.weighty = 0.1;
611 jPanel1.add(filler2, gridBagConstraints);
613 org.openide.awt.Mnemonics.setLocalizedText(unallocatedSizeLabel,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.unallocatedSizeLabel.text"));
614 gridBagConstraints =
new java.awt.GridBagConstraints();
615 gridBagConstraints.gridx = 0;
616 gridBagConstraints.gridy = 9;
617 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
618 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
619 gridBagConstraints.insets =
new java.awt.Insets(0, 10, 0, 4);
620 jPanel1.add(unallocatedSizeLabel, gridBagConstraints);
622 org.openide.awt.Mnemonics.setLocalizedText(unallocatedSizeValue,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.unallocatedSizeValue.text"));
623 gridBagConstraints =
new java.awt.GridBagConstraints();
624 gridBagConstraints.gridx = 1;
625 gridBagConstraints.gridy = 9;
626 gridBagConstraints.gridwidth = 4;
627 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
628 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
629 gridBagConstraints.weightx = 0.5;
630 gridBagConstraints.insets =
new java.awt.Insets(0, 0, 0, 10);
631 jPanel1.add(unallocatedSizeValue, gridBagConstraints);
633 jScrollPane1.setViewportView(jPanel1);
635 javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(
this);
636 this.setLayout(layout);
637 layout.setHorizontalGroup(
638 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
639 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
640 .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)
643 layout.setVerticalGroup(
644 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
645 .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)
651 private javax.swing.JLabel acquisitionDetailsLabel;
652 private javax.swing.JScrollPane acquisitionDetailsScrollPane;
653 private javax.swing.JTextArea acquisitionDetailsTextArea;
654 private javax.swing.JLabel deviceIdLabel;
655 private javax.swing.JLabel deviceIdValue;
656 private javax.swing.JLabel displayNameLabel;
657 private javax.swing.JLabel displayNameValue;
658 private javax.swing.JLabel filePathsLabel;
659 private javax.swing.JScrollPane filePathsScrollPane;
660 private javax.swing.JTable filePathsTable;
661 private javax.swing.Box.Filler filler1;
662 private javax.swing.Box.Filler filler2;
663 private javax.swing.JLabel imageTypeLabel;
664 private javax.swing.JLabel imageTypeValue;
665 private javax.swing.JPanel jPanel1;
666 private javax.swing.JScrollPane jScrollPane1;
667 private javax.swing.JLabel md5HashLabel;
668 private javax.swing.JLabel md5HashValue;
669 private javax.swing.JLabel originalNameLabel;
670 private javax.swing.JLabel originalNameValue;
671 private javax.swing.JLabel sectorSizeLabel;
672 private javax.swing.JLabel sectorSizeValue;
673 private javax.swing.JLabel sha1HashLabel;
674 private javax.swing.JLabel sha1HashValue;
675 private javax.swing.JLabel sha256HashLabel;
676 private javax.swing.JLabel sha256HashValue;
677 private javax.swing.JLabel sizeLabel;
678 private javax.swing.JLabel sizeValue;
679 private javax.swing.JLabel timeZoneLabel;
680 private javax.swing.JLabel timeZoneValue;
681 private javax.swing.JLabel unallocatedSizeLabel;
682 private javax.swing.JLabel unallocatedSizeValue;
final Long unallocatedFilesSize
final DataSource dataSource