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;
42 class ContainerPanel
extends BaseDataSourceSummaryPanel {
66 DataSource getDataSource() {
73 Long getUnallocatedFilesSize() {
79 private static final Set<Case.Events> CASE_EVENT_SET =
new HashSet<>(Arrays.asList(
80 Case.Events.DATA_SOURCE_NAME_CHANGED
84 private static final UpdateGovernor CONTAINER_UPDATES =
new DefaultUpdateGovernor() {
87 public Set<Case.Events> getCaseEventUpdates() {
88 return CASE_EVENT_SET;
92 public boolean isRefreshRequiredForCaseEvent(PropertyChangeEvent evt) {
99 private static final long serialVersionUID = 1L;
100 private static final Logger logger = Logger.getLogger(ContainerPanel.class.getName());
102 private final List<DataFetchComponents<DataSource, ?>> dataFetchComponents;
108 this(
new ContainerSummary());
114 ContainerPanel(ContainerSummary containerSummary) {
115 super(containerSummary, CONTAINER_UPDATES);
117 dataFetchComponents = Arrays.asList(
118 new DataFetchComponents<>(
120 return new ContainerPanelData(
122 containerSummary.getSizeOfUnallocatedFiles(dataSource)
126 if (result != null && result.getResultType() == ResultType.SUCCESS) {
127 ContainerPanelData data = result.getData();
128 DataSource dataSource = (data == null) ? null : data.getDataSource();
129 Long unallocatedFileSize = (data == null) ? null : data.getUnallocatedFilesSize();
131 updateDetailsPanelData(dataSource, unallocatedFileSize);
133 if (result == null) {
134 logger.log(Level.WARNING,
"No data fetch result was provided to the ContainerPanel.");
136 logger.log(Level.WARNING,
"An exception occurred while attempting to fetch data for the ContainerPanel.",
137 result.getException());
140 updateDetailsPanelData(null, null);
151 protected void onNewDataSource(DataSource dataSource) {
152 fetchInformation(dataSource);
156 protected void fetchInformation(DataSource dataSource) {
157 fetchInformation(dataFetchComponents, dataSource);
165 private void updateDetailsPanelData(DataSource selectedDataSource, Long unallocatedFilesSize) {
167 if (selectedDataSource != null) {
168 unallocatedSizeValue.setText(SizeRepresentationUtil.getSizeString(unallocatedFilesSize));
169 timeZoneValue.setText(selectedDataSource.getTimeZone());
170 displayNameValue.setText(selectedDataSource.getName());
171 originalNameValue.setText(selectedDataSource.getName());
172 deviceIdValue.setText(selectedDataSource.getDeviceId());
175 acquisitionDetailsTextArea.setText(selectedDataSource.getAcquisitionDetails());
176 }
catch (TskCoreException ex) {
177 logger.log(Level.WARNING,
"Unable to get aquisition details for selected data source", ex);
180 if (selectedDataSource instanceof Image) {
181 setFieldsForImage((Image) selectedDataSource);
184 updateFieldVisibility();
195 private void setFieldsForImage(Image selectedImage) {
196 imageTypeValue.setText(selectedImage.getType().getName());
197 sizeValue.setText(SizeRepresentationUtil.getSizeString(selectedImage.getSize()));
198 sectorSizeValue.setText(SizeRepresentationUtil.getSizeString(selectedImage.getSsize()));
200 for (String path : selectedImage.getPaths()) {
201 ((DefaultTableModel) filePathsTable.getModel()).addRow(
new Object[]{path});
206 String md5String = selectedImage.getMd5();
207 if (md5String == null) {
210 md5HashValue.setText(md5String);
211 }
catch (TskCoreException ex) {
212 logger.log(Level.WARNING,
"Unable to get MD5 for selected data source", ex);
216 String sha1String = selectedImage.getSha1();
217 if (sha1String == null) {
220 sha1HashValue.setText(sha1String);
221 }
catch (TskCoreException ex) {
222 logger.log(Level.WARNING,
"Unable to get SHA1 for selected data source", ex);
226 String sha256String = selectedImage.getSha256();
227 if (sha256String == null) {
230 sha256HashValue.setText(sha256String);
231 }
catch (TskCoreException ex) {
232 logger.log(Level.WARNING,
"Unable to get SHA256 for selected data source", ex);
240 private void updateFieldVisibility() {
241 displayNameValue.setVisible(!displayNameValue.getText().isEmpty());
242 displayNameLabel.setVisible(!displayNameValue.getText().isEmpty());
243 originalNameValue.setVisible(!originalNameValue.getText().isEmpty());
244 originalNameLabel.setVisible(!originalNameValue.getText().isEmpty());
245 deviceIdValue.setVisible(!deviceIdValue.getText().isEmpty());
246 deviceIdLabel.setVisible(!deviceIdValue.getText().isEmpty());
247 timeZoneValue.setVisible(!timeZoneValue.getText().isEmpty());
248 timeZoneLabel.setVisible(!timeZoneValue.getText().isEmpty());
249 acquisitionDetailsTextArea.setVisible(!acquisitionDetailsTextArea.getText().isEmpty());
250 acquisitionDetailsLabel.setVisible(!acquisitionDetailsTextArea.getText().isEmpty());
251 acquisitionDetailsScrollPane.setVisible(!acquisitionDetailsTextArea.getText().isEmpty());
252 imageTypeValue.setVisible(!imageTypeValue.getText().isEmpty());
253 imageTypeLabel.setVisible(!imageTypeValue.getText().isEmpty());
254 sizeValue.setVisible(!sizeValue.getText().isEmpty());
255 sizeLabel.setVisible(!sizeValue.getText().isEmpty());
256 sectorSizeValue.setVisible(!sectorSizeValue.getText().isEmpty());
257 sectorSizeLabel.setVisible(!sectorSizeValue.getText().isEmpty());
258 md5HashValue.setVisible(!md5HashValue.getText().isEmpty());
259 md5HashLabel.setVisible(!md5HashValue.getText().isEmpty());
260 sha1HashValue.setVisible(!sha1HashValue.getText().isEmpty());
261 sha1HashLabel.setVisible(!sha1HashValue.getText().isEmpty());
262 sha256HashValue.setVisible(!sha256HashValue.getText().isEmpty());
263 sha256HashLabel.setVisible(!sha256HashValue.getText().isEmpty());
264 unallocatedSizeValue.setVisible(!unallocatedSizeValue.getText().isEmpty());
265 unallocatedSizeLabel.setVisible(!unallocatedSizeValue.getText().isEmpty());
266 filePathsTable.setVisible(filePathsTable.getRowCount() > 0);
267 filePathsLabel.setVisible(filePathsTable.getRowCount() > 0);
268 filePathsScrollPane.setVisible(filePathsTable.getRowCount() > 0);
274 private void clearTableValues() {
275 displayNameValue.setText(
"");
276 originalNameValue.setText(
"");
277 deviceIdValue.setText(
"");
278 timeZoneValue.setText(
"");
279 acquisitionDetailsTextArea.setText(
"");
280 imageTypeValue.setText(
"");
281 sizeValue.setText(
"");
282 sectorSizeValue.setText(
"");
283 md5HashValue.setText(
"");
284 sha1HashValue.setText(
"");
285 sha256HashValue.setText(
"");
286 unallocatedSizeValue.setText(
"");
287 ((DefaultTableModel) filePathsTable.getModel()).setRowCount(0);
295 @SuppressWarnings(
"unchecked")
297 private
void initComponents() {
298 java.awt.GridBagConstraints gridBagConstraints;
300 jScrollPane1 =
new javax.swing.JScrollPane();
301 jPanel1 =
new javax.swing.JPanel();
302 displayNameLabel =
new javax.swing.JLabel();
303 originalNameLabel =
new javax.swing.JLabel();
304 sha1HashValue =
new javax.swing.JLabel();
305 displayNameValue =
new javax.swing.JLabel();
306 sha256HashValue =
new javax.swing.JLabel();
307 originalNameValue =
new javax.swing.JLabel();
308 deviceIdValue =
new javax.swing.JLabel();
309 filePathsScrollPane =
new javax.swing.JScrollPane();
310 filePathsTable =
new javax.swing.JTable();
311 timeZoneValue =
new javax.swing.JLabel();
312 imageTypeValue =
new javax.swing.JLabel();
313 md5HashValue =
new javax.swing.JLabel();
314 sectorSizeValue =
new javax.swing.JLabel();
315 sizeValue =
new javax.swing.JLabel();
316 filePathsLabel =
new javax.swing.JLabel();
317 sha256HashLabel =
new javax.swing.JLabel();
318 sha1HashLabel =
new javax.swing.JLabel();
319 md5HashLabel =
new javax.swing.JLabel();
320 sectorSizeLabel =
new javax.swing.JLabel();
321 sizeLabel =
new javax.swing.JLabel();
322 imageTypeLabel =
new javax.swing.JLabel();
323 acquisitionDetailsLabel =
new javax.swing.JLabel();
324 timeZoneLabel =
new javax.swing.JLabel();
325 deviceIdLabel =
new javax.swing.JLabel();
326 acquisitionDetailsScrollPane =
new javax.swing.JScrollPane();
327 acquisitionDetailsTextArea =
new javax.swing.JTextArea();
328 filler1 =
new javax.swing.Box.Filler(
new java.awt.Dimension(0, 0),
new java.awt.Dimension(0, 0),
new java.awt.Dimension(32767, 32767));
329 filler2 =
new javax.swing.Box.Filler(
new java.awt.Dimension(0, 0),
new java.awt.Dimension(0, 0),
new java.awt.Dimension(32767, 32767));
330 unallocatedSizeLabel =
new javax.swing.JLabel();
331 unallocatedSizeValue =
new javax.swing.JLabel();
333 jPanel1.setLayout(
new java.awt.GridBagLayout());
335 org.openide.awt.Mnemonics.setLocalizedText(displayNameLabel,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.displayNameLabel.text"));
336 gridBagConstraints =
new java.awt.GridBagConstraints();
337 gridBagConstraints.gridx = 0;
338 gridBagConstraints.gridy = 0;
339 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
340 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
341 gridBagConstraints.insets =
new java.awt.Insets(10, 10, 0, 4);
342 jPanel1.add(displayNameLabel, gridBagConstraints);
344 org.openide.awt.Mnemonics.setLocalizedText(originalNameLabel,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.originalNameLabel.text"));
345 gridBagConstraints =
new java.awt.GridBagConstraints();
346 gridBagConstraints.gridx = 0;
347 gridBagConstraints.gridy = 1;
348 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
349 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
350 gridBagConstraints.insets =
new java.awt.Insets(0, 10, 0, 4);
351 jPanel1.add(originalNameLabel, gridBagConstraints);
353 org.openide.awt.Mnemonics.setLocalizedText(sha1HashValue,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.sha1HashValue.text"));
354 gridBagConstraints =
new java.awt.GridBagConstraints();
355 gridBagConstraints.gridx = 1;
356 gridBagConstraints.gridy = 12;
357 gridBagConstraints.gridwidth = 4;
358 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
359 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
360 gridBagConstraints.weightx = 0.5;
361 gridBagConstraints.insets =
new java.awt.Insets(0, 0, 0, 10);
362 jPanel1.add(sha1HashValue, gridBagConstraints);
364 org.openide.awt.Mnemonics.setLocalizedText(displayNameValue,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.displayNameValue.text"));
365 gridBagConstraints =
new java.awt.GridBagConstraints();
366 gridBagConstraints.gridx = 1;
367 gridBagConstraints.gridy = 0;
368 gridBagConstraints.gridwidth = 4;
369 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
370 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
371 gridBagConstraints.weightx = 0.5;
372 gridBagConstraints.insets =
new java.awt.Insets(10, 0, 0, 10);
373 jPanel1.add(displayNameValue, gridBagConstraints);
375 org.openide.awt.Mnemonics.setLocalizedText(sha256HashValue,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.sha256HashValue.text"));
376 gridBagConstraints =
new java.awt.GridBagConstraints();
377 gridBagConstraints.gridx = 1;
378 gridBagConstraints.gridy = 13;
379 gridBagConstraints.gridwidth = 4;
380 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
381 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
382 gridBagConstraints.weightx = 0.5;
383 gridBagConstraints.insets =
new java.awt.Insets(0, 0, 6, 10);
384 jPanel1.add(sha256HashValue, gridBagConstraints);
386 org.openide.awt.Mnemonics.setLocalizedText(originalNameValue,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.originalNameValue.text"));
387 gridBagConstraints =
new java.awt.GridBagConstraints();
388 gridBagConstraints.gridx = 1;
389 gridBagConstraints.gridy = 1;
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, 0, 10);
395 jPanel1.add(originalNameValue, gridBagConstraints);
397 org.openide.awt.Mnemonics.setLocalizedText(deviceIdValue,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.deviceIdValue.text"));
398 deviceIdValue.setToolTipText(
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.deviceIdValue.toolTipText"));
399 gridBagConstraints =
new java.awt.GridBagConstraints();
400 gridBagConstraints.gridx = 1;
401 gridBagConstraints.gridy = 2;
402 gridBagConstraints.gridwidth = 4;
403 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
404 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
405 gridBagConstraints.weightx = 0.5;
406 gridBagConstraints.insets =
new java.awt.Insets(0, 0, 6, 10);
407 jPanel1.add(deviceIdValue, gridBagConstraints);
409 filePathsScrollPane.setPreferredSize(
new java.awt.Dimension(80, 50));
411 filePathsTable.setModel(
new javax.swing.table.DefaultTableModel(
419 boolean[] canEdit =
new boolean [] {
423 public boolean isCellEditable(
int rowIndex,
int columnIndex) {
424 return canEdit [columnIndex];
427 filePathsTable.setTableHeader(null);
428 filePathsScrollPane.setViewportView(filePathsTable);
429 if (filePathsTable.getColumnModel().getColumnCount() > 0) {
430 filePathsTable.getColumnModel().getColumn(0).setHeaderValue(
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.filePathsTable.columnModel.title0"));
433 gridBagConstraints =
new java.awt.GridBagConstraints();
434 gridBagConstraints.gridx = 1;
435 gridBagConstraints.gridy = 14;
436 gridBagConstraints.gridwidth = 4;
437 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
438 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
439 gridBagConstraints.weightx = 0.5;
440 gridBagConstraints.weighty = 1.2;
441 gridBagConstraints.insets =
new java.awt.Insets(6, 0, 10, 10);
442 jPanel1.add(filePathsScrollPane, gridBagConstraints);
444 org.openide.awt.Mnemonics.setLocalizedText(timeZoneValue,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.timeZoneValue.text"));
445 gridBagConstraints =
new java.awt.GridBagConstraints();
446 gridBagConstraints.gridx = 1;
447 gridBagConstraints.gridy = 5;
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(0, 0, 6, 10);
453 jPanel1.add(timeZoneValue, gridBagConstraints);
455 org.openide.awt.Mnemonics.setLocalizedText(imageTypeValue,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.imageTypeValue.text"));
456 imageTypeValue.setToolTipText(
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.imageTypeValue.toolTipText"));
457 gridBagConstraints =
new java.awt.GridBagConstraints();
458 gridBagConstraints.gridx = 1;
459 gridBagConstraints.gridy = 7;
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(6, 0, 0, 10);
465 jPanel1.add(imageTypeValue, gridBagConstraints);
467 org.openide.awt.Mnemonics.setLocalizedText(md5HashValue,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.md5HashValue.text"));
468 md5HashValue.setToolTipText(
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.md5HashValue.toolTipText"));
469 gridBagConstraints =
new java.awt.GridBagConstraints();
470 gridBagConstraints.gridx = 1;
471 gridBagConstraints.gridy = 11;
472 gridBagConstraints.gridwidth = 4;
473 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
474 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
475 gridBagConstraints.weightx = 0.5;
476 gridBagConstraints.insets =
new java.awt.Insets(0, 0, 0, 10);
477 jPanel1.add(md5HashValue, gridBagConstraints);
479 org.openide.awt.Mnemonics.setLocalizedText(sectorSizeValue,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.sectorSizeValue.text"));
480 gridBagConstraints =
new java.awt.GridBagConstraints();
481 gridBagConstraints.gridx = 1;
482 gridBagConstraints.gridy = 10;
483 gridBagConstraints.gridwidth = 4;
484 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
485 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
486 gridBagConstraints.weightx = 0.5;
487 gridBagConstraints.insets =
new java.awt.Insets(0, 0, 0, 10);
488 jPanel1.add(sectorSizeValue, gridBagConstraints);
490 org.openide.awt.Mnemonics.setLocalizedText(sizeValue,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.sizeValue.text"));
491 gridBagConstraints =
new java.awt.GridBagConstraints();
492 gridBagConstraints.gridx = 1;
493 gridBagConstraints.gridy = 8;
494 gridBagConstraints.gridwidth = 4;
495 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
496 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
497 gridBagConstraints.weightx = 0.5;
498 gridBagConstraints.insets =
new java.awt.Insets(0, 0, 0, 10);
499 jPanel1.add(sizeValue, gridBagConstraints);
501 org.openide.awt.Mnemonics.setLocalizedText(filePathsLabel,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.filePathsLabel.text"));
502 gridBagConstraints =
new java.awt.GridBagConstraints();
503 gridBagConstraints.gridx = 0;
504 gridBagConstraints.gridy = 14;
505 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
506 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
507 gridBagConstraints.weighty = 1.2;
508 gridBagConstraints.insets =
new java.awt.Insets(6, 10, 10, 4);
509 jPanel1.add(filePathsLabel, gridBagConstraints);
511 org.openide.awt.Mnemonics.setLocalizedText(sha256HashLabel,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.sha256HashLabel.text"));
512 gridBagConstraints =
new java.awt.GridBagConstraints();
513 gridBagConstraints.gridx = 0;
514 gridBagConstraints.gridy = 13;
515 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
516 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
517 gridBagConstraints.insets =
new java.awt.Insets(0, 10, 6, 4);
518 jPanel1.add(sha256HashLabel, gridBagConstraints);
520 org.openide.awt.Mnemonics.setLocalizedText(sha1HashLabel,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.sha1HashLabel.text"));
521 gridBagConstraints =
new java.awt.GridBagConstraints();
522 gridBagConstraints.gridx = 0;
523 gridBagConstraints.gridy = 12;
524 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
525 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
526 gridBagConstraints.insets =
new java.awt.Insets(0, 10, 0, 4);
527 jPanel1.add(sha1HashLabel, gridBagConstraints);
529 org.openide.awt.Mnemonics.setLocalizedText(md5HashLabel,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.md5HashLabel.text"));
530 gridBagConstraints =
new java.awt.GridBagConstraints();
531 gridBagConstraints.gridx = 0;
532 gridBagConstraints.gridy = 11;
533 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
534 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
535 gridBagConstraints.insets =
new java.awt.Insets(0, 10, 0, 4);
536 jPanel1.add(md5HashLabel, gridBagConstraints);
538 org.openide.awt.Mnemonics.setLocalizedText(sectorSizeLabel,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.sectorSizeLabel.text"));
539 gridBagConstraints =
new java.awt.GridBagConstraints();
540 gridBagConstraints.gridx = 0;
541 gridBagConstraints.gridy = 10;
542 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
543 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
544 gridBagConstraints.insets =
new java.awt.Insets(0, 10, 0, 4);
545 jPanel1.add(sectorSizeLabel, gridBagConstraints);
547 org.openide.awt.Mnemonics.setLocalizedText(sizeLabel,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.sizeLabel.text"));
548 gridBagConstraints =
new java.awt.GridBagConstraints();
549 gridBagConstraints.gridx = 0;
550 gridBagConstraints.gridy = 8;
551 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
552 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
553 gridBagConstraints.insets =
new java.awt.Insets(0, 10, 0, 4);
554 jPanel1.add(sizeLabel, gridBagConstraints);
556 org.openide.awt.Mnemonics.setLocalizedText(imageTypeLabel,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.imageTypeLabel.text"));
557 gridBagConstraints =
new java.awt.GridBagConstraints();
558 gridBagConstraints.gridx = 0;
559 gridBagConstraints.gridy = 7;
560 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
561 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
562 gridBagConstraints.insets =
new java.awt.Insets(6, 10, 0, 4);
563 jPanel1.add(imageTypeLabel, gridBagConstraints);
565 org.openide.awt.Mnemonics.setLocalizedText(acquisitionDetailsLabel,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.acquisitionDetailsLabel.text"));
566 gridBagConstraints =
new java.awt.GridBagConstraints();
567 gridBagConstraints.gridx = 0;
568 gridBagConstraints.gridy = 6;
569 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
570 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
571 gridBagConstraints.weighty = 0.6;
572 gridBagConstraints.insets =
new java.awt.Insets(6, 10, 6, 4);
573 jPanel1.add(acquisitionDetailsLabel, gridBagConstraints);
575 org.openide.awt.Mnemonics.setLocalizedText(timeZoneLabel,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.timeZoneLabel.text"));
576 gridBagConstraints =
new java.awt.GridBagConstraints();
577 gridBagConstraints.gridx = 0;
578 gridBagConstraints.gridy = 5;
579 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
580 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
581 gridBagConstraints.insets =
new java.awt.Insets(0, 10, 6, 4);
582 jPanel1.add(timeZoneLabel, gridBagConstraints);
584 org.openide.awt.Mnemonics.setLocalizedText(deviceIdLabel,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.deviceIdLabel.text"));
585 gridBagConstraints =
new java.awt.GridBagConstraints();
586 gridBagConstraints.gridx = 0;
587 gridBagConstraints.gridy = 2;
588 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
589 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
590 gridBagConstraints.insets =
new java.awt.Insets(0, 10, 6, 4);
591 jPanel1.add(deviceIdLabel, gridBagConstraints);
593 acquisitionDetailsTextArea.setEditable(
false);
594 acquisitionDetailsTextArea.setBackground(javax.swing.UIManager.getDefaults().getColor(
"TextArea.disabledBackground"));
595 acquisitionDetailsTextArea.setColumns(20);
596 acquisitionDetailsTextArea.setRows(4);
597 acquisitionDetailsTextArea.setText(
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.acquisitionDetailsTextArea.text"));
598 acquisitionDetailsTextArea.setBorder(null);
599 acquisitionDetailsScrollPane.setViewportView(acquisitionDetailsTextArea);
601 gridBagConstraints =
new java.awt.GridBagConstraints();
602 gridBagConstraints.gridx = 1;
603 gridBagConstraints.gridy = 6;
604 gridBagConstraints.gridwidth = 4;
605 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
606 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
607 gridBagConstraints.weightx = 0.5;
608 gridBagConstraints.weighty = 0.6;
609 gridBagConstraints.insets =
new java.awt.Insets(6, 0, 6, 10);
610 jPanel1.add(acquisitionDetailsScrollPane, gridBagConstraints);
611 gridBagConstraints =
new java.awt.GridBagConstraints();
612 gridBagConstraints.gridx = 0;
613 gridBagConstraints.gridy = 15;
614 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
615 gridBagConstraints.weighty = 0.1;
616 jPanel1.add(filler1, gridBagConstraints);
617 gridBagConstraints =
new java.awt.GridBagConstraints();
618 gridBagConstraints.gridx = 1;
619 gridBagConstraints.gridy = 15;
620 gridBagConstraints.gridwidth = 4;
621 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
622 gridBagConstraints.weighty = 0.1;
623 jPanel1.add(filler2, gridBagConstraints);
625 org.openide.awt.Mnemonics.setLocalizedText(unallocatedSizeLabel,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.unallocatedSizeLabel.text"));
626 gridBagConstraints =
new java.awt.GridBagConstraints();
627 gridBagConstraints.gridx = 0;
628 gridBagConstraints.gridy = 9;
629 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
630 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
631 gridBagConstraints.insets =
new java.awt.Insets(0, 10, 0, 4);
632 jPanel1.add(unallocatedSizeLabel, gridBagConstraints);
634 org.openide.awt.Mnemonics.setLocalizedText(unallocatedSizeValue,
org.openide.util.NbBundle.getMessage(ContainerPanel.class,
"ContainerPanel.unallocatedSizeValue.text"));
635 gridBagConstraints =
new java.awt.GridBagConstraints();
636 gridBagConstraints.gridx = 1;
637 gridBagConstraints.gridy = 9;
638 gridBagConstraints.gridwidth = 4;
639 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
640 gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
641 gridBagConstraints.weightx = 0.5;
642 gridBagConstraints.insets =
new java.awt.Insets(0, 0, 0, 10);
643 jPanel1.add(unallocatedSizeValue, gridBagConstraints);
645 jScrollPane1.setViewportView(jPanel1);
647 javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(
this);
648 this.setLayout(layout);
649 layout.setHorizontalGroup(
650 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
651 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
652 .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)
655 layout.setVerticalGroup(
656 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
657 .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)
663 private javax.swing.JLabel acquisitionDetailsLabel;
664 private javax.swing.JScrollPane acquisitionDetailsScrollPane;
665 private javax.swing.JTextArea acquisitionDetailsTextArea;
666 private javax.swing.JLabel deviceIdLabel;
667 private javax.swing.JLabel deviceIdValue;
668 private javax.swing.JLabel displayNameLabel;
669 private javax.swing.JLabel displayNameValue;
670 private javax.swing.JLabel filePathsLabel;
671 private javax.swing.JScrollPane filePathsScrollPane;
672 private javax.swing.JTable filePathsTable;
673 private javax.swing.Box.Filler filler1;
674 private javax.swing.Box.Filler filler2;
675 private javax.swing.JLabel imageTypeLabel;
676 private javax.swing.JLabel imageTypeValue;
677 private javax.swing.JPanel jPanel1;
678 private javax.swing.JScrollPane jScrollPane1;
679 private javax.swing.JLabel md5HashLabel;
680 private javax.swing.JLabel md5HashValue;
681 private javax.swing.JLabel originalNameLabel;
682 private javax.swing.JLabel originalNameValue;
683 private javax.swing.JLabel sectorSizeLabel;
684 private javax.swing.JLabel sectorSizeValue;
685 private javax.swing.JLabel sha1HashLabel;
686 private javax.swing.JLabel sha1HashValue;
687 private javax.swing.JLabel sha256HashLabel;
688 private javax.swing.JLabel sha256HashValue;
689 private javax.swing.JLabel sizeLabel;
690 private javax.swing.JLabel sizeValue;
691 private javax.swing.JLabel timeZoneLabel;
692 private javax.swing.JLabel timeZoneValue;
693 private javax.swing.JLabel unallocatedSizeLabel;
694 private javax.swing.JLabel unallocatedSizeValue;
final Long unallocatedFilesSize
final DataSource dataSource