Autopsy  4.19.1
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-2021 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;
38 import org.sleuthkit.datamodel.DataSource;
39 
43 @Messages({
44  "ContainerPanel_tabName=Container"
45 })
46 class ContainerPanel extends BaseDataSourceSummaryPanel {
47 
48  // set of case events for which to call update (if the name changes, that will impact data shown)
49  private static final Set<Case.Events> CASE_EVENT_SET = new HashSet<>(Arrays.asList(
50  Case.Events.DATA_SOURCE_NAME_CHANGED
51  ));
52 
53  // governor for handling these updates
54  private static final UpdateGovernor CONTAINER_UPDATES = new DefaultUpdateGovernor() {
55 
56  @Override
57  public Set<Case.Events> getCaseEventUpdates() {
58  return CASE_EVENT_SET;
59  }
60 
61  @Override
62  public boolean isRefreshRequiredForCaseEvent(PropertyChangeEvent evt) {
63  return true;
64  }
65 
66  };
67 
68  //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
69  private static final long serialVersionUID = 1L;
70  private static final Logger logger = Logger.getLogger(ContainerPanel.class.getName());
71 
72  private final List<DataFetchComponents<DataSource, ?>> dataFetchComponents;
73  private final DataFetcher<DataSource, ContainerDetails> containerDataFetcher;
74 
78  ContainerPanel() {
79  this(new ContainerSummaryGetter());
80  }
81 
85  ContainerPanel(ContainerSummaryGetter containerSummary) {
86  super(containerSummary, CONTAINER_UPDATES);
87 
88  containerDataFetcher = (dataSource) -> containerSummary.getContainerDetails(dataSource);
89 
90  dataFetchComponents = Arrays.asList(
91  new DataFetchComponents<>(
92  containerDataFetcher,
93  (result) -> {
94  if (result != null && result.getResultType() == ResultType.SUCCESS) {
95  ContainerDetails data = result.getData();
96  updateDetailsPanelData(data);
97  } else {
98  if (result == null) {
99  logger.log(Level.WARNING, "No data fetch result was provided to the ContainerPanel.");
100  } else {
101  logger.log(Level.WARNING, "An exception occurred while attempting to fetch data for the ContainerPanel.",
102  result.getException());
103  }
104  updateDetailsPanelData(null);
105  }
106  }
107  )
108  );
109 
110  initComponents();
111  setDataSource(null);
112  }
113 
114  @Override
115  protected void onNewDataSource(DataSource dataSource) {
116  fetchInformation(dataSource);
117  }
118 
119  @Override
120  protected void fetchInformation(DataSource dataSource) {
121  fetchInformation(dataFetchComponents, dataSource);
122  }
123 
129  private void updateDetailsPanelData(ContainerDetails viewModel) {
130  clearTableValues();
131  if (viewModel == null) {
132  return;
133  }
134 
135  displayNameValue.setText(viewModel.getDisplayName());
136  originalNameValue.setText(viewModel.getOriginalName());
137  deviceIdValue.setText(viewModel.getDeviceId());
138  acquisitionDetailsTextArea.setText(viewModel.getAcquisitionDetails());
139 
140  if (viewModel.getImageDetails() != null) {
141  setFieldsForImage(viewModel.getImageDetails());
142  } else {
143  setFieldsForNonImageDataSource();
144  }
145 
146  this.repaint();
147  }
148 
152  @Messages({
153  "ContainerPanel_setFieldsForNonImageDataSource_na=N/A"
154  })
155  private void setFieldsForNonImageDataSource() {
156  String NA = Bundle.ContainerPanel_setFieldsForNonImageDataSource_na();
157 
158  unallocatedSizeValue.setText(NA);
159  imageTypeValue.setText(NA);
160  sizeValue.setText(NA);
161  sectorSizeValue.setText(NA);
162  timeZoneValue.setText(NA);
163 
164  ((DefaultTableModel) filePathsTable.getModel()).addRow(new Object[]{NA});
165 
166  md5HashValue.setText(NA);
167  sha1HashValue.setText(NA);
168  sha256HashValue.setText(NA);
169  }
170 
176  private void setFieldsForImage(ImageDetails viewModel) {
177  unallocatedSizeValue.setText(SizeRepresentationUtil.getSizeString(viewModel.getUnallocatedSize()));
178  imageTypeValue.setText(viewModel.getImageType());
179  sizeValue.setText(SizeRepresentationUtil.getSizeString(viewModel.getSize()));
180  sectorSizeValue.setText(SizeRepresentationUtil.getSizeString(viewModel.getSectorSize()));
181  timeZoneValue.setText(viewModel.getTimeZone());
182 
183  for (String path : viewModel.getPaths()) {
184  ((DefaultTableModel) filePathsTable.getModel()).addRow(new Object[]{path});
185  }
186 
187  md5HashValue.setText(viewModel.getMd5Hash());
188  sha1HashValue.setText(viewModel.getSha1Hash());
189  sha256HashValue.setText(viewModel.getSha256Hash());
190  }
191 
195  private void clearTableValues() {
196  displayNameValue.setText("");
197  originalNameValue.setText("");
198  deviceIdValue.setText("");
199  timeZoneValue.setText("");
200  acquisitionDetailsTextArea.setText("");
201  imageTypeValue.setText("");
202  sizeValue.setText("");
203  sectorSizeValue.setText("");
204  md5HashValue.setText("");
205  sha1HashValue.setText("");
206  sha256HashValue.setText("");
207  unallocatedSizeValue.setText("");
208  ((DefaultTableModel) filePathsTable.getModel()).setRowCount(0);
209  }
210 
216  @SuppressWarnings("unchecked")
217  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
218  private void initComponents() {
219  java.awt.GridBagConstraints gridBagConstraints;
220 
221  jScrollPane1 = new javax.swing.JScrollPane();
222  jPanel1 = new javax.swing.JPanel();
223  displayNameLabel = new javax.swing.JLabel();
224  originalNameLabel = new javax.swing.JLabel();
225  sha1HashValue = new javax.swing.JLabel();
226  displayNameValue = new javax.swing.JLabel();
227  sha256HashValue = new javax.swing.JLabel();
228  originalNameValue = new javax.swing.JLabel();
229  deviceIdValue = new javax.swing.JLabel();
230  filePathsScrollPane = new javax.swing.JScrollPane();
231  filePathsTable = new javax.swing.JTable();
232  timeZoneValue = new javax.swing.JLabel();
233  imageTypeValue = new javax.swing.JLabel();
234  md5HashValue = new javax.swing.JLabel();
235  sectorSizeValue = new javax.swing.JLabel();
236  sizeValue = new javax.swing.JLabel();
237  filePathsLabel = new javax.swing.JLabel();
238  sha256HashLabel = new javax.swing.JLabel();
239  sha1HashLabel = new javax.swing.JLabel();
240  md5HashLabel = new javax.swing.JLabel();
241  sectorSizeLabel = new javax.swing.JLabel();
242  sizeLabel = new javax.swing.JLabel();
243  imageTypeLabel = new javax.swing.JLabel();
244  acquisitionDetailsLabel = new javax.swing.JLabel();
245  timeZoneLabel = new javax.swing.JLabel();
246  deviceIdLabel = new javax.swing.JLabel();
247  acquisitionDetailsScrollPane = new javax.swing.JScrollPane();
248  acquisitionDetailsTextArea = new javax.swing.JTextArea();
249  filler1 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 32767));
250  filler2 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 32767));
251  unallocatedSizeLabel = new javax.swing.JLabel();
252  unallocatedSizeValue = new javax.swing.JLabel();
253 
254  jPanel1.setLayout(new java.awt.GridBagLayout());
255 
256  org.openide.awt.Mnemonics.setLocalizedText(displayNameLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.displayNameLabel.text")); // NOI18N
257  gridBagConstraints = new java.awt.GridBagConstraints();
258  gridBagConstraints.gridx = 0;
259  gridBagConstraints.gridy = 0;
260  gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
261  gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
262  gridBagConstraints.insets = new java.awt.Insets(10, 10, 0, 4);
263  jPanel1.add(displayNameLabel, gridBagConstraints);
264 
265  org.openide.awt.Mnemonics.setLocalizedText(originalNameLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.originalNameLabel.text")); // NOI18N
266  gridBagConstraints = new java.awt.GridBagConstraints();
267  gridBagConstraints.gridx = 0;
268  gridBagConstraints.gridy = 1;
269  gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
270  gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
271  gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 4);
272  jPanel1.add(originalNameLabel, gridBagConstraints);
273 
274  org.openide.awt.Mnemonics.setLocalizedText(sha1HashValue, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.sha1HashValue.text")); // NOI18N
275  gridBagConstraints = new java.awt.GridBagConstraints();
276  gridBagConstraints.gridx = 1;
277  gridBagConstraints.gridy = 12;
278  gridBagConstraints.gridwidth = 4;
279  gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
280  gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
281  gridBagConstraints.weightx = 0.5;
282  gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 10);
283  jPanel1.add(sha1HashValue, gridBagConstraints);
284 
285  org.openide.awt.Mnemonics.setLocalizedText(displayNameValue, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.displayNameValue.text")); // NOI18N
286  gridBagConstraints = new java.awt.GridBagConstraints();
287  gridBagConstraints.gridx = 1;
288  gridBagConstraints.gridy = 0;
289  gridBagConstraints.gridwidth = 4;
290  gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
291  gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
292  gridBagConstraints.weightx = 0.5;
293  gridBagConstraints.insets = new java.awt.Insets(10, 0, 0, 10);
294  jPanel1.add(displayNameValue, gridBagConstraints);
295 
296  org.openide.awt.Mnemonics.setLocalizedText(sha256HashValue, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.sha256HashValue.text")); // NOI18N
297  gridBagConstraints = new java.awt.GridBagConstraints();
298  gridBagConstraints.gridx = 1;
299  gridBagConstraints.gridy = 13;
300  gridBagConstraints.gridwidth = 4;
301  gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
302  gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
303  gridBagConstraints.weightx = 0.5;
304  gridBagConstraints.insets = new java.awt.Insets(0, 0, 6, 10);
305  jPanel1.add(sha256HashValue, gridBagConstraints);
306 
307  org.openide.awt.Mnemonics.setLocalizedText(originalNameValue, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.originalNameValue.text")); // NOI18N
308  gridBagConstraints = new java.awt.GridBagConstraints();
309  gridBagConstraints.gridx = 1;
310  gridBagConstraints.gridy = 1;
311  gridBagConstraints.gridwidth = 4;
312  gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
313  gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
314  gridBagConstraints.weightx = 0.5;
315  gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 10);
316  jPanel1.add(originalNameValue, gridBagConstraints);
317 
318  org.openide.awt.Mnemonics.setLocalizedText(deviceIdValue, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.deviceIdValue.text")); // NOI18N
319  deviceIdValue.setToolTipText(org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.deviceIdValue.toolTipText")); // NOI18N
320  gridBagConstraints = new java.awt.GridBagConstraints();
321  gridBagConstraints.gridx = 1;
322  gridBagConstraints.gridy = 2;
323  gridBagConstraints.gridwidth = 4;
324  gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
325  gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
326  gridBagConstraints.weightx = 0.5;
327  gridBagConstraints.insets = new java.awt.Insets(0, 0, 6, 10);
328  jPanel1.add(deviceIdValue, gridBagConstraints);
329 
330  filePathsScrollPane.setPreferredSize(new java.awt.Dimension(80, 50));
331 
332  filePathsTable.setModel(new javax.swing.table.DefaultTableModel(
333  new Object [][] {
334 
335  },
336  new String [] {
337  ""
338  }
339  ) {
340  boolean[] canEdit = new boolean [] {
341  false
342  };
343 
344  public boolean isCellEditable(int rowIndex, int columnIndex) {
345  return canEdit [columnIndex];
346  }
347  });
348  filePathsTable.setTableHeader(null);
349  filePathsScrollPane.setViewportView(filePathsTable);
350  if (filePathsTable.getColumnModel().getColumnCount() > 0) {
351  filePathsTable.getColumnModel().getColumn(0).setHeaderValue(org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.filePathsTable.columnModel.title0")); // NOI18N
352  }
353 
354  gridBagConstraints = new java.awt.GridBagConstraints();
355  gridBagConstraints.gridx = 1;
356  gridBagConstraints.gridy = 14;
357  gridBagConstraints.gridwidth = 4;
358  gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
359  gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
360  gridBagConstraints.weightx = 0.5;
361  gridBagConstraints.weighty = 1.2;
362  gridBagConstraints.insets = new java.awt.Insets(6, 0, 10, 10);
363  jPanel1.add(filePathsScrollPane, gridBagConstraints);
364 
365  org.openide.awt.Mnemonics.setLocalizedText(timeZoneValue, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.timeZoneValue.text")); // NOI18N
366  gridBagConstraints = new java.awt.GridBagConstraints();
367  gridBagConstraints.gridx = 1;
368  gridBagConstraints.gridy = 5;
369  gridBagConstraints.gridwidth = 4;
370  gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
371  gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
372  gridBagConstraints.weightx = 0.5;
373  gridBagConstraints.insets = new java.awt.Insets(0, 0, 6, 10);
374  jPanel1.add(timeZoneValue, gridBagConstraints);
375 
376  org.openide.awt.Mnemonics.setLocalizedText(imageTypeValue, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.imageTypeValue.text")); // NOI18N
377  imageTypeValue.setToolTipText(org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.imageTypeValue.toolTipText")); // NOI18N
378  gridBagConstraints = new java.awt.GridBagConstraints();
379  gridBagConstraints.gridx = 1;
380  gridBagConstraints.gridy = 7;
381  gridBagConstraints.gridwidth = 4;
382  gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
383  gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
384  gridBagConstraints.weightx = 0.5;
385  gridBagConstraints.insets = new java.awt.Insets(6, 0, 0, 10);
386  jPanel1.add(imageTypeValue, gridBagConstraints);
387 
388  org.openide.awt.Mnemonics.setLocalizedText(md5HashValue, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.md5HashValue.text")); // NOI18N
389  md5HashValue.setToolTipText(org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.md5HashValue.toolTipText")); // NOI18N
390  gridBagConstraints = new java.awt.GridBagConstraints();
391  gridBagConstraints.gridx = 1;
392  gridBagConstraints.gridy = 11;
393  gridBagConstraints.gridwidth = 4;
394  gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
395  gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
396  gridBagConstraints.weightx = 0.5;
397  gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 10);
398  jPanel1.add(md5HashValue, gridBagConstraints);
399 
400  org.openide.awt.Mnemonics.setLocalizedText(sectorSizeValue, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.sectorSizeValue.text")); // NOI18N
401  gridBagConstraints = new java.awt.GridBagConstraints();
402  gridBagConstraints.gridx = 1;
403  gridBagConstraints.gridy = 10;
404  gridBagConstraints.gridwidth = 4;
405  gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
406  gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
407  gridBagConstraints.weightx = 0.5;
408  gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 10);
409  jPanel1.add(sectorSizeValue, gridBagConstraints);
410 
411  org.openide.awt.Mnemonics.setLocalizedText(sizeValue, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.sizeValue.text")); // NOI18N
412  gridBagConstraints = new java.awt.GridBagConstraints();
413  gridBagConstraints.gridx = 1;
414  gridBagConstraints.gridy = 8;
415  gridBagConstraints.gridwidth = 4;
416  gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
417  gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
418  gridBagConstraints.weightx = 0.5;
419  gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 10);
420  jPanel1.add(sizeValue, gridBagConstraints);
421 
422  org.openide.awt.Mnemonics.setLocalizedText(filePathsLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.filePathsLabel.text")); // NOI18N
423  gridBagConstraints = new java.awt.GridBagConstraints();
424  gridBagConstraints.gridx = 0;
425  gridBagConstraints.gridy = 14;
426  gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
427  gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
428  gridBagConstraints.weighty = 1.2;
429  gridBagConstraints.insets = new java.awt.Insets(6, 10, 10, 4);
430  jPanel1.add(filePathsLabel, gridBagConstraints);
431 
432  org.openide.awt.Mnemonics.setLocalizedText(sha256HashLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.sha256HashLabel.text")); // NOI18N
433  gridBagConstraints = new java.awt.GridBagConstraints();
434  gridBagConstraints.gridx = 0;
435  gridBagConstraints.gridy = 13;
436  gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
437  gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
438  gridBagConstraints.insets = new java.awt.Insets(0, 10, 6, 4);
439  jPanel1.add(sha256HashLabel, gridBagConstraints);
440 
441  org.openide.awt.Mnemonics.setLocalizedText(sha1HashLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.sha1HashLabel.text")); // NOI18N
442  gridBagConstraints = new java.awt.GridBagConstraints();
443  gridBagConstraints.gridx = 0;
444  gridBagConstraints.gridy = 12;
445  gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
446  gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
447  gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 4);
448  jPanel1.add(sha1HashLabel, gridBagConstraints);
449 
450  org.openide.awt.Mnemonics.setLocalizedText(md5HashLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.md5HashLabel.text")); // NOI18N
451  gridBagConstraints = new java.awt.GridBagConstraints();
452  gridBagConstraints.gridx = 0;
453  gridBagConstraints.gridy = 11;
454  gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
455  gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
456  gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 4);
457  jPanel1.add(md5HashLabel, gridBagConstraints);
458 
459  org.openide.awt.Mnemonics.setLocalizedText(sectorSizeLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.sectorSizeLabel.text")); // NOI18N
460  gridBagConstraints = new java.awt.GridBagConstraints();
461  gridBagConstraints.gridx = 0;
462  gridBagConstraints.gridy = 10;
463  gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
464  gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
465  gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 4);
466  jPanel1.add(sectorSizeLabel, gridBagConstraints);
467 
468  org.openide.awt.Mnemonics.setLocalizedText(sizeLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.sizeLabel.text")); // NOI18N
469  gridBagConstraints = new java.awt.GridBagConstraints();
470  gridBagConstraints.gridx = 0;
471  gridBagConstraints.gridy = 8;
472  gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
473  gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
474  gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 4);
475  jPanel1.add(sizeLabel, gridBagConstraints);
476 
477  org.openide.awt.Mnemonics.setLocalizedText(imageTypeLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.imageTypeLabel.text")); // NOI18N
478  gridBagConstraints = new java.awt.GridBagConstraints();
479  gridBagConstraints.gridx = 0;
480  gridBagConstraints.gridy = 7;
481  gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
482  gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
483  gridBagConstraints.insets = new java.awt.Insets(6, 10, 0, 4);
484  jPanel1.add(imageTypeLabel, gridBagConstraints);
485 
486  org.openide.awt.Mnemonics.setLocalizedText(acquisitionDetailsLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.acquisitionDetailsLabel.text")); // NOI18N
487  gridBagConstraints = new java.awt.GridBagConstraints();
488  gridBagConstraints.gridx = 0;
489  gridBagConstraints.gridy = 6;
490  gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
491  gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
492  gridBagConstraints.weighty = 0.6;
493  gridBagConstraints.insets = new java.awt.Insets(6, 10, 6, 4);
494  jPanel1.add(acquisitionDetailsLabel, gridBagConstraints);
495 
496  org.openide.awt.Mnemonics.setLocalizedText(timeZoneLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.timeZoneLabel.text")); // NOI18N
497  gridBagConstraints = new java.awt.GridBagConstraints();
498  gridBagConstraints.gridx = 0;
499  gridBagConstraints.gridy = 5;
500  gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
501  gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
502  gridBagConstraints.insets = new java.awt.Insets(0, 10, 6, 4);
503  jPanel1.add(timeZoneLabel, gridBagConstraints);
504 
505  org.openide.awt.Mnemonics.setLocalizedText(deviceIdLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.deviceIdLabel.text")); // NOI18N
506  gridBagConstraints = new java.awt.GridBagConstraints();
507  gridBagConstraints.gridx = 0;
508  gridBagConstraints.gridy = 2;
509  gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
510  gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
511  gridBagConstraints.insets = new java.awt.Insets(0, 10, 6, 4);
512  jPanel1.add(deviceIdLabel, gridBagConstraints);
513 
514  acquisitionDetailsTextArea.setEditable(false);
515  acquisitionDetailsTextArea.setBackground(javax.swing.UIManager.getDefaults().getColor("TextArea.disabledBackground"));
516  acquisitionDetailsTextArea.setColumns(20);
517  acquisitionDetailsTextArea.setRows(4);
518  acquisitionDetailsTextArea.setText(org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.acquisitionDetailsTextArea.text")); // NOI18N
519  acquisitionDetailsTextArea.setBorder(null);
520  acquisitionDetailsScrollPane.setViewportView(acquisitionDetailsTextArea);
521 
522  gridBagConstraints = new java.awt.GridBagConstraints();
523  gridBagConstraints.gridx = 1;
524  gridBagConstraints.gridy = 6;
525  gridBagConstraints.gridwidth = 4;
526  gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
527  gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
528  gridBagConstraints.weightx = 0.5;
529  gridBagConstraints.weighty = 0.6;
530  gridBagConstraints.insets = new java.awt.Insets(6, 0, 6, 10);
531  jPanel1.add(acquisitionDetailsScrollPane, gridBagConstraints);
532  gridBagConstraints = new java.awt.GridBagConstraints();
533  gridBagConstraints.gridx = 0;
534  gridBagConstraints.gridy = 15;
535  gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
536  gridBagConstraints.weighty = 0.1;
537  jPanel1.add(filler1, gridBagConstraints);
538  gridBagConstraints = new java.awt.GridBagConstraints();
539  gridBagConstraints.gridx = 1;
540  gridBagConstraints.gridy = 15;
541  gridBagConstraints.gridwidth = 4;
542  gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
543  gridBagConstraints.weighty = 0.1;
544  jPanel1.add(filler2, gridBagConstraints);
545 
546  org.openide.awt.Mnemonics.setLocalizedText(unallocatedSizeLabel, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.unallocatedSizeLabel.text")); // NOI18N
547  gridBagConstraints = new java.awt.GridBagConstraints();
548  gridBagConstraints.gridx = 0;
549  gridBagConstraints.gridy = 9;
550  gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
551  gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
552  gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 4);
553  jPanel1.add(unallocatedSizeLabel, gridBagConstraints);
554 
555  org.openide.awt.Mnemonics.setLocalizedText(unallocatedSizeValue, org.openide.util.NbBundle.getMessage(ContainerPanel.class, "ContainerPanel.unallocatedSizeValue.text")); // NOI18N
556  gridBagConstraints = new java.awt.GridBagConstraints();
557  gridBagConstraints.gridx = 1;
558  gridBagConstraints.gridy = 9;
559  gridBagConstraints.gridwidth = 4;
560  gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
561  gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
562  gridBagConstraints.weightx = 0.5;
563  gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 10);
564  jPanel1.add(unallocatedSizeValue, gridBagConstraints);
565 
566  jScrollPane1.setViewportView(jPanel1);
567 
568  javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
569  this.setLayout(layout);
570  layout.setHorizontalGroup(
571  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
572  .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
573  .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)
574  .addGap(0, 0, 0))
575  );
576  layout.setVerticalGroup(
577  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
578  .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)
579  );
580  }// </editor-fold>//GEN-END:initComponents
581 
582 
583  // Variables declaration - do not modify//GEN-BEGIN:variables
584  private javax.swing.JLabel acquisitionDetailsLabel;
585  private javax.swing.JScrollPane acquisitionDetailsScrollPane;
586  private javax.swing.JTextArea acquisitionDetailsTextArea;
587  private javax.swing.JLabel deviceIdLabel;
588  private javax.swing.JLabel deviceIdValue;
589  private javax.swing.JLabel displayNameLabel;
590  private javax.swing.JLabel displayNameValue;
591  private javax.swing.JLabel filePathsLabel;
592  private javax.swing.JScrollPane filePathsScrollPane;
593  private javax.swing.JTable filePathsTable;
594  private javax.swing.Box.Filler filler1;
595  private javax.swing.Box.Filler filler2;
596  private javax.swing.JLabel imageTypeLabel;
597  private javax.swing.JLabel imageTypeValue;
598  private javax.swing.JPanel jPanel1;
599  private javax.swing.JScrollPane jScrollPane1;
600  private javax.swing.JLabel md5HashLabel;
601  private javax.swing.JLabel md5HashValue;
602  private javax.swing.JLabel originalNameLabel;
603  private javax.swing.JLabel originalNameValue;
604  private javax.swing.JLabel sectorSizeLabel;
605  private javax.swing.JLabel sectorSizeValue;
606  private javax.swing.JLabel sha1HashLabel;
607  private javax.swing.JLabel sha1HashValue;
608  private javax.swing.JLabel sha256HashLabel;
609  private javax.swing.JLabel sha256HashValue;
610  private javax.swing.JLabel sizeLabel;
611  private javax.swing.JLabel sizeValue;
612  private javax.swing.JLabel timeZoneLabel;
613  private javax.swing.JLabel timeZoneValue;
614  private javax.swing.JLabel unallocatedSizeLabel;
615  private javax.swing.JLabel unallocatedSizeValue;
616  // End of variables declaration//GEN-END:variables
617 }

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