Autopsy  4.16.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
ContainerPanel.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2019 Basis Technology Corp.
5  * Contact: carrier <at> sleuthkit <dot> org
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 package org.sleuthkit.autopsy.datasourcesummary.ui;
20 
21 import java.beans.PropertyChangeEvent;
22 import java.util.Arrays;
23 import java.util.HashSet;
24 import java.util.List;
25 import java.util.Set;
26 import java.util.logging.Level;
28 import javax.swing.table.DefaultTableModel;
35 import org.sleuthkit.datamodel.DataSource;
36 import org.sleuthkit.datamodel.Image;
37 import org.sleuthkit.datamodel.TskCoreException;
38 
42 class ContainerPanel extends BaseDataSourceSummaryPanel {
43 
47  private static class ContainerPanelData {
48 
49  private final DataSource dataSource;
50  private final Long unallocatedFilesSize;
51 
58  ContainerPanelData(DataSource dataSource, Long unallocatedFilesSize) {
59  this.dataSource = dataSource;
60  this.unallocatedFilesSize = unallocatedFilesSize;
61  }
62 
66  DataSource getDataSource() {
67  return dataSource;
68  }
69 
73  Long getUnallocatedFilesSize() {
74  return unallocatedFilesSize;
75  }
76  }
77 
78  // set of case events for which to call update (if the name changes, that will impact data shown)
79  private static final Set<Case.Events> CASE_EVENT_SET = new HashSet<>(Arrays.asList(
80  Case.Events.DATA_SOURCE_NAME_CHANGED
81  ));
82 
83  // governor for handling these updates
84  private static final UpdateGovernor CONTAINER_UPDATES = new DefaultUpdateGovernor() {
85 
86  @Override
87  public Set<Case.Events> getCaseEventUpdates() {
88  return CASE_EVENT_SET;
89  }
90 
91  @Override
92  public boolean isRefreshRequiredForCaseEvent(PropertyChangeEvent evt) {
93  return true;
94  }
95 
96  };
97 
98  //Because this panel was made using the gridbaglayout and netbean's Customize Layout tool it will be best to continue to modify it through that
99  private static final long serialVersionUID = 1L;
100  private static final Logger logger = Logger.getLogger(ContainerPanel.class.getName());
101 
102  private final List<DataFetchComponents<DataSource, ?>> dataFetchComponents;
103 
107  ContainerPanel() {
108  this(new ContainerSummary());
109  }
110 
114  ContainerPanel(ContainerSummary containerSummary) {
115  super(containerSummary, CONTAINER_UPDATES);
116 
117  dataFetchComponents = Arrays.asList(
118  new DataFetchComponents<>(
119  (dataSource) -> {
120  return new ContainerPanelData(
121  dataSource,
122  containerSummary.getSizeOfUnallocatedFiles(dataSource)
123  );
124  },
125  (result) -> {
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();
130 
131  updateDetailsPanelData(dataSource, unallocatedFileSize);
132  } else {
133  if (result == null) {
134  logger.log(Level.WARNING, "No data fetch result was provided to the ContainerPanel.");
135  } else {
136  logger.log(Level.WARNING, "An exception occurred while attempting to fetch data for the ContainerPanel.",
137  result.getException());
138  }
139 
140  updateDetailsPanelData(null, null);
141  }
142  }
143  )
144  );
145 
146  initComponents();
147  setDataSource(null);
148  }
149 
150  @Override
151  protected void onNewDataSource(DataSource dataSource) {
152  fetchInformation(dataSource);
153  }
154 
155  @Override
156  protected void fetchInformation(DataSource dataSource) {
157  fetchInformation(dataFetchComponents, dataSource);
158  }
159 
165  private void updateDetailsPanelData(DataSource selectedDataSource, Long unallocatedFilesSize) {
166  clearTableValues();
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());
173 
174  try {
175  acquisitionDetailsTextArea.setText(selectedDataSource.getAcquisitionDetails());
176  } catch (TskCoreException ex) {
177  logger.log(Level.WARNING, "Unable to get aquisition details for selected data source", ex);
178  }
179 
180  if (selectedDataSource instanceof Image) {
181  setFieldsForImage((Image) selectedDataSource);
182  }
183  }
184  updateFieldVisibility();
185  this.repaint();
186  }
187 
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()));
199 
200  for (String path : selectedImage.getPaths()) {
201  ((DefaultTableModel) filePathsTable.getModel()).addRow(new Object[]{path});
202  }
203 
204  try {
205  //older databases may have null as the hash values
206  String md5String = selectedImage.getMd5();
207  if (md5String == null) {
208  md5String = "";
209  }
210  md5HashValue.setText(md5String);
211  } catch (TskCoreException ex) {
212  logger.log(Level.WARNING, "Unable to get MD5 for selected data source", ex);
213  }
214 
215  try {
216  String sha1String = selectedImage.getSha1();
217  if (sha1String == null) {
218  sha1String = "";
219  }
220  sha1HashValue.setText(sha1String);
221  } catch (TskCoreException ex) {
222  logger.log(Level.WARNING, "Unable to get SHA1 for selected data source", ex);
223  }
224 
225  try {
226  String sha256String = selectedImage.getSha256();
227  if (sha256String == null) {
228  sha256String = "";
229  }
230  sha256HashValue.setText(sha256String);
231  } catch (TskCoreException ex) {
232  logger.log(Level.WARNING, "Unable to get SHA256 for selected data source", ex);
233  }
234  }
235 
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);
269  }
270 
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);
288  }
289 
295  @SuppressWarnings("unchecked")
296  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
297  private void initComponents() {
298  java.awt.GridBagConstraints gridBagConstraints;
299 
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();
332 
333  jPanel1.setLayout(new java.awt.GridBagLayout());
334 
335  org.openide.awt.Mnemonics.setLocalizedText(displayNameLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.displayNameLabel.text")); // NOI18N
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);
343 
344  org.openide.awt.Mnemonics.setLocalizedText(originalNameLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.originalNameLabel.text")); // NOI18N
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);
352 
353  org.openide.awt.Mnemonics.setLocalizedText(sha1HashValue, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.sha1HashValue.text")); // NOI18N
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);
363 
364  org.openide.awt.Mnemonics.setLocalizedText(displayNameValue, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.displayNameValue.text")); // NOI18N
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);
374 
375  org.openide.awt.Mnemonics.setLocalizedText(sha256HashValue, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.sha256HashValue.text")); // NOI18N
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);
385 
386  org.openide.awt.Mnemonics.setLocalizedText(originalNameValue, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.originalNameValue.text")); // NOI18N
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);
396 
397  org.openide.awt.Mnemonics.setLocalizedText(deviceIdValue, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.deviceIdValue.text")); // NOI18N
398  deviceIdValue.setToolTipText(org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.deviceIdValue.toolTipText")); // NOI18N
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);
408 
409  filePathsScrollPane.setPreferredSize(new java.awt.Dimension(80, 50));
410 
411  filePathsTable.setModel(new javax.swing.table.DefaultTableModel(
412  new Object [][] {
413 
414  },
415  new String [] {
416  ""
417  }
418  ) {
419  boolean[] canEdit = new boolean [] {
420  false
421  };
422 
423  public boolean isCellEditable(int rowIndex, int columnIndex) {
424  return canEdit [columnIndex];
425  }
426  });
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")); // NOI18N
431  }
432 
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);
443 
444  org.openide.awt.Mnemonics.setLocalizedText(timeZoneValue, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.timeZoneValue.text")); // NOI18N
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);
454 
455  org.openide.awt.Mnemonics.setLocalizedText(imageTypeValue, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.imageTypeValue.text")); // NOI18N
456  imageTypeValue.setToolTipText(org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.imageTypeValue.toolTipText")); // NOI18N
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);
466 
467  org.openide.awt.Mnemonics.setLocalizedText(md5HashValue, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.md5HashValue.text")); // NOI18N
468  md5HashValue.setToolTipText(org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.md5HashValue.toolTipText")); // NOI18N
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);
478 
479  org.openide.awt.Mnemonics.setLocalizedText(sectorSizeValue, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.sectorSizeValue.text")); // NOI18N
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);
489 
490  org.openide.awt.Mnemonics.setLocalizedText(sizeValue, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.sizeValue.text")); // NOI18N
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);
500 
501  org.openide.awt.Mnemonics.setLocalizedText(filePathsLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.filePathsLabel.text")); // NOI18N
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);
510 
511  org.openide.awt.Mnemonics.setLocalizedText(sha256HashLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.sha256HashLabel.text")); // NOI18N
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);
519 
520  org.openide.awt.Mnemonics.setLocalizedText(sha1HashLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.sha1HashLabel.text")); // NOI18N
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);
528 
529  org.openide.awt.Mnemonics.setLocalizedText(md5HashLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.md5HashLabel.text")); // NOI18N
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);
537 
538  org.openide.awt.Mnemonics.setLocalizedText(sectorSizeLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.sectorSizeLabel.text")); // NOI18N
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);
546 
547  org.openide.awt.Mnemonics.setLocalizedText(sizeLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.sizeLabel.text")); // NOI18N
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);
555 
556  org.openide.awt.Mnemonics.setLocalizedText(imageTypeLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.imageTypeLabel.text")); // NOI18N
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);
564 
565  org.openide.awt.Mnemonics.setLocalizedText(acquisitionDetailsLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.acquisitionDetailsLabel.text")); // NOI18N
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);
574 
575  org.openide.awt.Mnemonics.setLocalizedText(timeZoneLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.timeZoneLabel.text")); // NOI18N
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);
583 
584  org.openide.awt.Mnemonics.setLocalizedText(deviceIdLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.deviceIdLabel.text")); // NOI18N
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);
592 
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")); // NOI18N
598  acquisitionDetailsTextArea.setBorder(null);
599  acquisitionDetailsScrollPane.setViewportView(acquisitionDetailsTextArea);
600 
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);
624 
625  org.openide.awt.Mnemonics.setLocalizedText(unallocatedSizeLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.unallocatedSizeLabel.text")); // NOI18N
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);
633 
634  org.openide.awt.Mnemonics.setLocalizedText(unallocatedSizeValue, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.unallocatedSizeValue.text")); // NOI18N
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);
644 
645  jScrollPane1.setViewportView(jPanel1);
646 
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)
653  .addGap(0, 0, 0))
654  );
655  layout.setVerticalGroup(
656  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
657  .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)
658  );
659  }// </editor-fold>//GEN-END:initComponents
660 
661 
662  // Variables declaration - do not modify//GEN-BEGIN:variables
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;
695  // End of variables declaration//GEN-END:variables
696 }

Copyright © 2012-2020 Basis Technology. Generated on: Tue Sep 22 2020
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.