19 package org.sleuthkit.autopsy.directorytree;
22 import java.awt.event.ActionListener;
29 class FileSystemDetailsPanel
extends javax.swing.JPanel {
34 FileSystemDetailsPanel() {
43 @SuppressWarnings(
"unchecked")
45 private
void initComponents() {
47 OKButton =
new javax.swing.JButton();
48 jSplitPane1 =
new javax.swing.JSplitPane();
49 genInfoPanel =
new javax.swing.JPanel();
50 fsTypeLabel =
new javax.swing.JLabel();
51 imgOffsetLabel =
new javax.swing.JLabel();
52 volumeIDLabel =
new javax.swing.JLabel();
53 blockSizeLabel =
new javax.swing.JLabel();
54 blockCountLabel =
new javax.swing.JLabel();
55 rootInumLabel =
new javax.swing.JLabel();
56 firstInumLabel =
new javax.swing.JLabel();
57 lastInumLabel =
new javax.swing.JLabel();
58 fsTypeValue =
new javax.swing.JLabel();
59 imgOffsetValue =
new javax.swing.JLabel();
60 volumeIDValue =
new javax.swing.JLabel();
61 blockSizeValue =
new javax.swing.JLabel();
62 blockCountValue =
new javax.swing.JLabel();
63 rootInumValue =
new javax.swing.JLabel();
64 firstInumValue =
new javax.swing.JLabel();
65 lastInumValue =
new javax.swing.JLabel();
66 genInfoLabel =
new javax.swing.JLabel();
67 jSeparator1 =
new javax.swing.JSeparator();
68 jLabel2 =
new javax.swing.JLabel();
69 jLabel3 =
new javax.swing.JLabel();
70 detailInfoPanel =
new javax.swing.JPanel();
71 jLabel1 =
new javax.swing.JLabel();
73 OKButton.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.OKButton.text"));
75 jSplitPane1.setDividerLocation(180);
76 jSplitPane1.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
78 genInfoPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder());
79 genInfoPanel.setPreferredSize(
new java.awt.Dimension(815, 170));
81 fsTypeLabel.setFont(fsTypeLabel.getFont().deriveFont(fsTypeLabel.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
82 fsTypeLabel.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.fsTypeLabel.text"));
84 imgOffsetLabel.setFont(imgOffsetLabel.getFont().deriveFont(imgOffsetLabel.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
85 imgOffsetLabel.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.imgOffsetLabel.text"));
87 volumeIDLabel.setFont(volumeIDLabel.getFont().deriveFont(volumeIDLabel.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
88 volumeIDLabel.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.volumeIDLabel.text"));
90 blockSizeLabel.setFont(blockSizeLabel.getFont().deriveFont(blockSizeLabel.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
91 blockSizeLabel.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.blockSizeLabel.text"));
93 blockCountLabel.setFont(blockCountLabel.getFont().deriveFont(blockCountLabel.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
94 blockCountLabel.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.blockCountLabel.text"));
96 rootInumLabel.setFont(rootInumLabel.getFont().deriveFont(rootInumLabel.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
97 rootInumLabel.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.rootInumLabel.text"));
99 firstInumLabel.setFont(firstInumLabel.getFont().deriveFont(firstInumLabel.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
100 firstInumLabel.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.firstInumLabel.text"));
102 lastInumLabel.setFont(lastInumLabel.getFont().deriveFont(lastInumLabel.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
103 lastInumLabel.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.lastInumLabel.text"));
105 fsTypeValue.setFont(fsTypeValue.getFont().deriveFont(fsTypeValue.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
106 fsTypeValue.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.fsTypeValue.text"));
108 imgOffsetValue.setFont(imgOffsetValue.getFont().deriveFont(imgOffsetValue.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
109 imgOffsetValue.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.imgOffsetValue.text"));
111 volumeIDValue.setFont(volumeIDValue.getFont().deriveFont(volumeIDValue.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
112 volumeIDValue.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.volumeIDValue.text"));
114 blockSizeValue.setFont(blockSizeValue.getFont().deriveFont(blockSizeValue.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
115 blockSizeValue.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.blockSizeValue.text"));
117 blockCountValue.setFont(blockCountValue.getFont().deriveFont(blockCountValue.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
118 blockCountValue.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.blockCountValue.text"));
120 rootInumValue.setFont(rootInumValue.getFont().deriveFont(rootInumValue.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
121 rootInumValue.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.rootInumValue.text"));
123 firstInumValue.setFont(firstInumValue.getFont().deriveFont(firstInumValue.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
124 firstInumValue.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.firstInumValue.text"));
126 lastInumValue.setFont(lastInumValue.getFont().deriveFont(lastInumValue.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
127 lastInumValue.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.lastInumValue.text"));
129 genInfoLabel.setFont(genInfoLabel.getFont().deriveFont(genInfoLabel.getFont().getStyle() | java.awt.Font.BOLD, 18));
130 genInfoLabel.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.genInfoLabel.text"));
132 jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);
134 jLabel2.setFont(jLabel2.getFont().deriveFont(jLabel2.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
135 jLabel2.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.jLabel2.text"));
137 jLabel3.setFont(jLabel3.getFont().deriveFont(jLabel3.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
138 jLabel3.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.jLabel3.text"));
140 javax.swing.GroupLayout genInfoPanelLayout =
new javax.swing.GroupLayout(genInfoPanel);
141 genInfoPanel.setLayout(genInfoPanelLayout);
142 genInfoPanelLayout.setHorizontalGroup(
143 genInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
144 .addGroup(genInfoPanelLayout.createSequentialGroup()
146 .addGroup(genInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
147 .addComponent(fsTypeLabel)
148 .addComponent(imgOffsetLabel)
149 .addComponent(volumeIDLabel)
150 .addComponent(blockSizeLabel))
151 .addGap(108, 108, 108)
152 .addGroup(genInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
153 .addComponent(genInfoLabel)
154 .addGroup(genInfoPanelLayout.createSequentialGroup()
155 .addGroup(genInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
156 .addComponent(blockSizeValue)
157 .addComponent(volumeIDValue)
158 .addComponent(imgOffsetValue)
159 .addComponent(fsTypeValue))
161 .addGroup(genInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
162 .addComponent(jLabel2)
163 .addComponent(jLabel3))
165 .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
167 .addGroup(genInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
168 .addComponent(blockCountLabel)
169 .addComponent(rootInumLabel)
170 .addComponent(firstInumLabel)
171 .addComponent(lastInumLabel))
172 .addGap(111, 111, 111)
173 .addGroup(genInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
174 .addComponent(lastInumValue)
175 .addComponent(firstInumValue)
176 .addComponent(rootInumValue)
177 .addComponent(blockCountValue))))
178 .addGap(245, 245, 245))
180 genInfoPanelLayout.setVerticalGroup(
181 genInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
182 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, genInfoPanelLayout.createSequentialGroup()
183 .addContainerGap(23, Short.MAX_VALUE)
184 .addComponent(genInfoLabel)
186 .addGroup(genInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
187 .addGroup(genInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
188 .addGroup(genInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
189 .addGroup(genInfoPanelLayout.createSequentialGroup()
190 .addComponent(fsTypeLabel)
191 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
192 .addComponent(imgOffsetLabel)
193 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
194 .addComponent(volumeIDLabel)
195 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
196 .addComponent(blockSizeLabel))
197 .addGroup(genInfoPanelLayout.createSequentialGroup()
198 .addComponent(fsTypeValue)
199 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
200 .addGroup(genInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
201 .addComponent(imgOffsetValue)
202 .addComponent(jLabel2))
203 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
204 .addComponent(volumeIDValue)
205 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
206 .addGroup(genInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
207 .addComponent(blockSizeValue)
208 .addComponent(jLabel3))))
209 .addGroup(genInfoPanelLayout.createSequentialGroup()
210 .addComponent(blockCountValue)
211 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
212 .addComponent(rootInumValue)
213 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
214 .addComponent(firstInumValue)
215 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
216 .addComponent(lastInumValue))
217 .addGroup(genInfoPanelLayout.createSequentialGroup()
218 .addComponent(blockCountLabel)
219 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
220 .addComponent(rootInumLabel)
221 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
222 .addComponent(firstInumLabel)
223 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
224 .addComponent(lastInumLabel)))
225 .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 101, Short.MAX_VALUE))
229 jSplitPane1.setTopComponent(genInfoPanel);
231 detailInfoPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder());
232 detailInfoPanel.setPreferredSize(
new java.awt.Dimension(516, 293));
234 jLabel1.setFont(jLabel1.getFont().deriveFont(jLabel1.getFont().getStyle() | java.awt.Font.BOLD, 18));
235 jLabel1.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.jLabel1.text"));
237 javax.swing.GroupLayout detailInfoPanelLayout =
new javax.swing.GroupLayout(detailInfoPanel);
238 detailInfoPanel.setLayout(detailInfoPanelLayout);
239 detailInfoPanelLayout.setHorizontalGroup(
240 detailInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
241 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, detailInfoPanelLayout.createSequentialGroup()
242 .addContainerGap(278, Short.MAX_VALUE)
243 .addComponent(jLabel1)
244 .addGap(276, 276, 276))
246 detailInfoPanelLayout.setVerticalGroup(
247 detailInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
248 .addGroup(detailInfoPanelLayout.createSequentialGroup()
250 .addComponent(jLabel1)
251 .addContainerGap(235, Short.MAX_VALUE))
254 jSplitPane1.setRightComponent(detailInfoPanel);
256 javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(
this);
257 this.setLayout(layout);
258 layout.setHorizontalGroup(
259 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
260 .addGroup(layout.createSequentialGroup()
261 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
262 .addGroup(layout.createSequentialGroup()
263 .addGap(367, 367, 367)
264 .addComponent(OKButton, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE))
265 .addGroup(layout.createSequentialGroup()
267 .addComponent(jSplitPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 786, javax.swing.GroupLayout.PREFERRED_SIZE)))
268 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
270 layout.setVerticalGroup(
271 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
272 .addGroup(layout.createSequentialGroup()
274 .addComponent(jSplitPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
276 .addComponent(OKButton)
277 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
286 public void setFileSystemTypeValue(String arg) {
287 fsTypeValue.setText(arg);
295 public void setImageOffsetValue(String arg) {
296 imgOffsetValue.setText(arg);
304 public void setVolumeIDValue(String arg) {
305 volumeIDValue.setText(arg);
313 public void setBlockSizeValue(String arg) {
314 blockSizeValue.setText(arg);
322 public void setBlockCountValue(String arg) {
323 blockCountValue.setText(arg);
331 public void setRootInumValue(String arg) {
332 rootInumValue.setText(arg);
340 public void setFirstInumValue(String arg) {
341 firstInumValue.setText(arg);
349 public void setLastInumValue(String arg) {
350 lastInumValue.setText(arg);
358 public void setOKButtonActionListener(ActionListener e) {
359 OKButton.addActionListener(e);
362 private javax.swing.JButton OKButton;
363 private javax.swing.JLabel blockCountLabel;
364 private javax.swing.JLabel blockCountValue;
365 private javax.swing.JLabel blockSizeLabel;
366 private javax.swing.JLabel blockSizeValue;
367 private javax.swing.JPanel detailInfoPanel;
368 private javax.swing.JLabel firstInumLabel;
369 private javax.swing.JLabel firstInumValue;
370 private javax.swing.JLabel fsTypeLabel;
371 private javax.swing.JLabel fsTypeValue;
372 private javax.swing.JLabel genInfoLabel;
373 private javax.swing.JPanel genInfoPanel;
374 private javax.swing.JLabel imgOffsetLabel;
375 private javax.swing.JLabel imgOffsetValue;
376 private javax.swing.JLabel jLabel1;
377 private javax.swing.JLabel jLabel2;
378 private javax.swing.JLabel jLabel3;
379 private javax.swing.JSeparator jSeparator1;
380 private javax.swing.JSplitPane jSplitPane1;
381 private javax.swing.JLabel lastInumLabel;
382 private javax.swing.JLabel lastInumValue;
383 private javax.swing.JLabel rootInumLabel;
384 private javax.swing.JLabel rootInumValue;
385 private javax.swing.JLabel volumeIDLabel;
386 private javax.swing.JLabel volumeIDValue;