Autopsy  4.17.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;
29 import org.openide.util.NbBundle.Messages;
36 import org.sleuthkit.datamodel.DataSource;
37 import org.sleuthkit.datamodel.Image;
38 import org.sleuthkit.datamodel.TskCoreException;
39 
43 class ContainerPanel extends BaseDataSourceSummaryPanel {
44 
48  private static class ContainerPanelData {
49 
50  private final DataSource dataSource;
51  private final Long unallocatedFilesSize;
52 
59  ContainerPanelData(DataSource dataSource, Long unallocatedFilesSize) {
60  this.dataSource = dataSource;
61  this.unallocatedFilesSize = unallocatedFilesSize;
62  }
63 
67  DataSource getDataSource() {
68  return dataSource;
69  }
70 
74  Long getUnallocatedFilesSize() {
75  return unallocatedFilesSize;
76  }
77  }
78 
79  // set of case events for which to call update (if the name changes, that will impact data shown)
80  private static final Set<Case.Events> CASE_EVENT_SET = new HashSet<>(Arrays.asList(
81  Case.Events.DATA_SOURCE_NAME_CHANGED
82  ));
83 
84  // governor for handling these updates
85  private static final UpdateGovernor CONTAINER_UPDATES = new DefaultUpdateGovernor() {
86 
87  @Override
88  public Set<Case.Events> getCaseEventUpdates() {
89  return CASE_EVENT_SET;
90  }
91 
92  @Override
93  public boolean isRefreshRequiredForCaseEvent(PropertyChangeEvent evt) {
94  return true;
95  }
96 
97  };
98 
99  //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
100  private static final long serialVersionUID = 1L;
101  private static final Logger logger = Logger.getLogger(ContainerPanel.class.getName());
102 
103  private final List<DataFetchComponents<DataSource, ?>> dataFetchComponents;
104 
108  ContainerPanel() {
109  this(new ContainerSummary());
110  }
111 
115  ContainerPanel(ContainerSummary containerSummary) {
116  super(containerSummary, CONTAINER_UPDATES);
117 
118  dataFetchComponents = Arrays.asList(
119  new DataFetchComponents<>(
120  (dataSource) -> {
121  return new ContainerPanelData(
122  dataSource,
123  containerSummary.getSizeOfUnallocatedFiles(dataSource)
124  );
125  },
126  (result) -> {
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();
131 
132  updateDetailsPanelData(dataSource, unallocatedFileSize);
133  } else {
134  if (result == null) {
135  logger.log(Level.WARNING, "No data fetch result was provided to the ContainerPanel.");
136  } else {
137  logger.log(Level.WARNING, "An exception occurred while attempting to fetch data for the ContainerPanel.",
138  result.getException());
139  }
140 
141  updateDetailsPanelData(null, null);
142  }
143  }
144  )
145  );
146 
147  initComponents();
148  setDataSource(null);
149  }
150 
151  @Override
152  protected void onNewDataSource(DataSource dataSource) {
153  fetchInformation(dataSource);
154  }
155 
156  @Override
157  protected void fetchInformation(DataSource dataSource) {
158  fetchInformation(dataFetchComponents, dataSource);
159  }
160 
166  private void updateDetailsPanelData(DataSource selectedDataSource, Long unallocatedFilesSize) {
167  clearTableValues();
168  if (selectedDataSource != null) {
169  displayNameValue.setText(selectedDataSource.getName());
170  originalNameValue.setText(selectedDataSource.getName());
171  deviceIdValue.setText(selectedDataSource.getDeviceId());
172 
173  try {
174  acquisitionDetailsTextArea.setText(selectedDataSource.getAcquisitionDetails());
175  } catch (TskCoreException ex) {
176  logger.log(Level.WARNING, "Unable to get acquisition details for selected data source", ex);
177  }
178 
179  if (selectedDataSource instanceof Image) {
180  setFieldsForImage((Image) selectedDataSource, unallocatedFilesSize);
181  } else {
182  setFieldsForNonImageDataSource();
183  }
184  }
185 
186  this.repaint();
187  }
188 
189  @Messages({
190  "ContainerPanel_setFieldsForNonImageDataSource_na=N/A"
191  })
192  private void setFieldsForNonImageDataSource() {
193  String NA = Bundle.ContainerPanel_setFieldsForNonImageDataSource_na();
194 
195  unallocatedSizeValue.setText(NA);
196  imageTypeValue.setText(NA);
197  sizeValue.setText(NA);
198  sectorSizeValue.setText(NA);
199  timeZoneValue.setText(NA);
200 
201  ((DefaultTableModel) filePathsTable.getModel()).addRow(new Object[]{NA});
202 
203  md5HashValue.setText(NA);
204  sha1HashValue.setText(NA);
205  sha256HashValue.setText(NA);
206  }
207 
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());
222 
223  for (String path : selectedImage.getPaths()) {
224  ((DefaultTableModel) filePathsTable.getModel()).addRow(new Object[]{path});
225  }
226 
227  try {
228  //older databases may have null as the hash values
229  String md5String = selectedImage.getMd5();
230  if (md5String == null) {
231  md5String = "";
232  }
233  md5HashValue.setText(md5String);
234  } catch (TskCoreException ex) {
235  logger.log(Level.WARNING, "Unable to get MD5 for selected data source", ex);
236  }
237 
238  try {
239  String sha1String = selectedImage.getSha1();
240  if (sha1String == null) {
241  sha1String = "";
242  }
243  sha1HashValue.setText(sha1String);
244  } catch (TskCoreException ex) {
245  logger.log(Level.WARNING, "Unable to get SHA1 for selected data source", ex);
246  }
247 
248  try {
249  String sha256String = selectedImage.getSha256();
250  if (sha256String == null) {
251  sha256String = "";
252  }
253  sha256HashValue.setText(sha256String);
254  } catch (TskCoreException ex) {
255  logger.log(Level.WARNING, "Unable to get SHA256 for selected data source", ex);
256  }
257  }
258 
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);
276  }
277 
283  @SuppressWarnings("unchecked")
284  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
285  private void initComponents() {
286  java.awt.GridBagConstraints gridBagConstraints;
287 
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();
320 
321  jPanel1.setLayout(new java.awt.GridBagLayout());
322 
323  org.openide.awt.Mnemonics.setLocalizedText(displayNameLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.displayNameLabel.text")); // NOI18N
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);
331 
332  org.openide.awt.Mnemonics.setLocalizedText(originalNameLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.originalNameLabel.text")); // NOI18N
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);
340 
341  org.openide.awt.Mnemonics.setLocalizedText(sha1HashValue, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.sha1HashValue.text")); // NOI18N
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);
351 
352  org.openide.awt.Mnemonics.setLocalizedText(displayNameValue, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.displayNameValue.text")); // NOI18N
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);
362 
363  org.openide.awt.Mnemonics.setLocalizedText(sha256HashValue, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.sha256HashValue.text")); // NOI18N
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);
373 
374  org.openide.awt.Mnemonics.setLocalizedText(originalNameValue, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.originalNameValue.text")); // NOI18N
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);
384 
385  org.openide.awt.Mnemonics.setLocalizedText(deviceIdValue, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.deviceIdValue.text")); // NOI18N
386  deviceIdValue.setToolTipText(org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.deviceIdValue.toolTipText")); // NOI18N
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);
396 
397  filePathsScrollPane.setPreferredSize(new java.awt.Dimension(80, 50));
398 
399  filePathsTable.setModel(new javax.swing.table.DefaultTableModel(
400  new Object [][] {
401 
402  },
403  new String [] {
404  ""
405  }
406  ) {
407  boolean[] canEdit = new boolean [] {
408  false
409  };
410 
411  public boolean isCellEditable(int rowIndex, int columnIndex) {
412  return canEdit [columnIndex];
413  }
414  });
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")); // NOI18N
419  }
420 
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);
431 
432  org.openide.awt.Mnemonics.setLocalizedText(timeZoneValue, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.timeZoneValue.text")); // NOI18N
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);
442 
443  org.openide.awt.Mnemonics.setLocalizedText(imageTypeValue, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.imageTypeValue.text")); // NOI18N
444  imageTypeValue.setToolTipText(org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.imageTypeValue.toolTipText")); // NOI18N
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);
454 
455  org.openide.awt.Mnemonics.setLocalizedText(md5HashValue, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.md5HashValue.text")); // NOI18N
456  md5HashValue.setToolTipText(org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.md5HashValue.toolTipText")); // NOI18N
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);
466 
467  org.openide.awt.Mnemonics.setLocalizedText(sectorSizeValue, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.sectorSizeValue.text")); // NOI18N
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);
477 
478  org.openide.awt.Mnemonics.setLocalizedText(sizeValue, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.sizeValue.text")); // NOI18N
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);
488 
489  org.openide.awt.Mnemonics.setLocalizedText(filePathsLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.filePathsLabel.text")); // NOI18N
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);
498 
499  org.openide.awt.Mnemonics.setLocalizedText(sha256HashLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.sha256HashLabel.text")); // NOI18N
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);
507 
508  org.openide.awt.Mnemonics.setLocalizedText(sha1HashLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.sha1HashLabel.text")); // NOI18N
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);
516 
517  org.openide.awt.Mnemonics.setLocalizedText(md5HashLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.md5HashLabel.text")); // NOI18N
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);
525 
526  org.openide.awt.Mnemonics.setLocalizedText(sectorSizeLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.sectorSizeLabel.text")); // NOI18N
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);
534 
535  org.openide.awt.Mnemonics.setLocalizedText(sizeLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.sizeLabel.text")); // NOI18N
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);
543 
544  org.openide.awt.Mnemonics.setLocalizedText(imageTypeLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.imageTypeLabel.text")); // NOI18N
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);
552 
553  org.openide.awt.Mnemonics.setLocalizedText(acquisitionDetailsLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.acquisitionDetailsLabel.text")); // NOI18N
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);
562 
563  org.openide.awt.Mnemonics.setLocalizedText(timeZoneLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.timeZoneLabel.text")); // NOI18N
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);
571 
572  org.openide.awt.Mnemonics.setLocalizedText(deviceIdLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.deviceIdLabel.text")); // NOI18N
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);
580 
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")); // NOI18N
586  acquisitionDetailsTextArea.setBorder(null);
587  acquisitionDetailsScrollPane.setViewportView(acquisitionDetailsTextArea);
588 
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);
612 
613  org.openide.awt.Mnemonics.setLocalizedText(unallocatedSizeLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.unallocatedSizeLabel.text")); // NOI18N
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);
621 
622  org.openide.awt.Mnemonics.setLocalizedText(unallocatedSizeValue, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.unallocatedSizeValue.text")); // NOI18N
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);
632 
633  jScrollPane1.setViewportView(jPanel1);
634 
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)
641  .addGap(0, 0, 0))
642  );
643  layout.setVerticalGroup(
644  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
645  .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)
646  );
647  }// </editor-fold>//GEN-END:initComponents
648 
649 
650  // Variables declaration - do not modify//GEN-BEGIN:variables
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;
683  // End of variables declaration//GEN-END:variables
684 }

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