Autopsy  4.21.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
VolumeDetailsPanel.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2011-2018 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.directorytree;
20 
21 import java.awt.event.ActionListener;
22 
26 @SuppressWarnings("PMD.SingularField") // UI widgets cause lots of false positives
27 class VolumeDetailsPanel extends javax.swing.JPanel {
28 
32  VolumeDetailsPanel() {
33  initComponents();
34  }
35 
41  @SuppressWarnings("unchecked")
42  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
43  private void initComponents() {
44 
45  jPanel1 = new javax.swing.JPanel();
46  flagsValue = new javax.swing.JLabel();
47  descValue = new javax.swing.JLabel();
48  lengthValue = new javax.swing.JLabel();
49  startValue = new javax.swing.JLabel();
50  startLabel = new javax.swing.JLabel();
51  lengthLabel = new javax.swing.JLabel();
52  generalVolumeLabel = new javax.swing.JLabel();
53  volumeIDLabel = new javax.swing.JLabel();
54  volumeIDValue = new javax.swing.JLabel();
55  descLabel = new javax.swing.JLabel();
56  flagsLabel = new javax.swing.JLabel();
57  OKButton = new javax.swing.JButton();
58 
59  flagsValue.setText(org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class, "VolumeDetailsPanel.flagsValue.text")); // NOI18N
60 
61  descValue.setText(org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class, "VolumeDetailsPanel.descValue.text")); // NOI18N
62 
63  lengthValue.setText(org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class, "VolumeDetailsPanel.lengthValue.text")); // NOI18N
64 
65  startValue.setText(org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class, "VolumeDetailsPanel.startValue.text")); // NOI18N
66 
67  startLabel.setText(org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class, "VolumeDetailsPanel.startLabel.text")); // NOI18N
68 
69  lengthLabel.setText(org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class, "VolumeDetailsPanel.lengthLabel.text")); // NOI18N
70 
71  generalVolumeLabel.setFont(generalVolumeLabel.getFont().deriveFont(generalVolumeLabel.getFont().getStyle() | java.awt.Font.BOLD, generalVolumeLabel.getFont().getSize()+7));
72  generalVolumeLabel.setText(org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class, "VolumeDetailsPanel.generalVolumeLabel.text")); // NOI18N
73 
74  volumeIDLabel.setText(org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class, "VolumeDetailsPanel.volumeIDLabel.text")); // NOI18N
75 
76  volumeIDValue.setText(org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class, "VolumeDetailsPanel.volumeIDValue.text")); // NOI18N
77 
78  descLabel.setText(org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class, "VolumeDetailsPanel.descLabel.text")); // NOI18N
79 
80  flagsLabel.setText(org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class, "VolumeDetailsPanel.flagsLabel.text")); // NOI18N
81 
82  javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
83  jPanel1.setLayout(jPanel1Layout);
84  jPanel1Layout.setHorizontalGroup(
85  jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
86  .addGroup(jPanel1Layout.createSequentialGroup()
87  .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
88  .addGroup(jPanel1Layout.createSequentialGroup()
89  .addGap(112, 112, 112)
90  .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
91  .addComponent(startLabel)
92  .addComponent(volumeIDLabel)
93  .addComponent(lengthLabel)
94  .addComponent(descLabel)
95  .addComponent(flagsLabel))
96  .addGap(18, 18, 18)
97  .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
98  .addComponent(flagsValue)
99  .addComponent(descValue)
100  .addComponent(lengthValue)
101  .addComponent(startValue)
102  .addComponent(volumeIDValue)))
103  .addGroup(jPanel1Layout.createSequentialGroup()
104  .addGap(59, 59, 59)
105  .addComponent(generalVolumeLabel)))
106  .addContainerGap(58, Short.MAX_VALUE))
107  );
108  jPanel1Layout.setVerticalGroup(
109  jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
110  .addGroup(jPanel1Layout.createSequentialGroup()
111  .addContainerGap()
112  .addComponent(generalVolumeLabel)
113  .addGap(11, 11, 11)
114  .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
115  .addComponent(volumeIDLabel)
116  .addComponent(volumeIDValue))
117  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
118  .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
119  .addComponent(startLabel)
120  .addComponent(startValue))
121  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
122  .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
123  .addComponent(lengthLabel)
124  .addComponent(lengthValue))
125  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
126  .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
127  .addGroup(jPanel1Layout.createSequentialGroup()
128  .addComponent(descLabel)
129  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
130  .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
131  .addComponent(flagsLabel)
132  .addComponent(flagsValue)))
133  .addGroup(jPanel1Layout.createSequentialGroup()
134  .addComponent(descValue)
135  .addGap(25, 25, 25)))
136  .addContainerGap(29, Short.MAX_VALUE))
137  );
138 
139  OKButton.setText(org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class, "VolumeDetailsPanel.OKButton.text")); // NOI18N
140 
141  javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
142  this.setLayout(layout);
143  layout.setHorizontalGroup(
144  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
145  .addGroup(layout.createSequentialGroup()
146  .addContainerGap()
147  .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
148  .addGroup(layout.createSequentialGroup()
149  .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
150  .addContainerGap())
151  .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
152  .addComponent(OKButton, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
153  .addGap(145, 145, 145))))
154  );
155  layout.setVerticalGroup(
156  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
157  .addGroup(layout.createSequentialGroup()
158  .addContainerGap()
159  .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
160  .addGap(18, 18, 18)
161  .addComponent(OKButton, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
162  .addContainerGap())
163  );
164  }// </editor-fold>//GEN-END:initComponents
165 
166  public void setVolumeIDValue(String arg) {
167  volumeIDValue.setText(arg);
168  }
169 
170  public void setStartValue(String arg) {
171  startValue.setText(arg);
172  }
173 
174  public void setLengthValue(String arg) {
175  lengthValue.setText(arg);
176  }
177 
178  public void setDescValue(String arg) {
179  descValue.setText(arg);
180  }
181 
182  public void setFlagsValue(String arg) {
183  flagsValue.setText(arg);
184  }
185 
186  public void setOKButtonActionListener(ActionListener e) {
187  OKButton.addActionListener(e);
188  }
189 
190  // Variables declaration - do not modify//GEN-BEGIN:variables
191  private javax.swing.JButton OKButton;
192  private javax.swing.JLabel descLabel;
193  private javax.swing.JLabel descValue;
194  private javax.swing.JLabel flagsLabel;
195  private javax.swing.JLabel flagsValue;
196  private javax.swing.JLabel generalVolumeLabel;
197  private javax.swing.JPanel jPanel1;
198  private javax.swing.JLabel lengthLabel;
199  private javax.swing.JLabel lengthValue;
200  private javax.swing.JLabel startLabel;
201  private javax.swing.JLabel startValue;
202  private javax.swing.JLabel volumeIDLabel;
203  private javax.swing.JLabel volumeIDValue;
204  // End of variables declaration//GEN-END:variables
205 
206 }

Copyright © 2012-2022 Basis Technology. Generated on: Tue Feb 6 2024
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.