19 package org.sleuthkit.autopsy.directorytree;
22 import java.awt.event.ActionListener;
29 class FileSystemDetailsPanel
extends javax.swing.JPanel {
32 FileSystemDetailsPanel() {
41 @SuppressWarnings(
"unchecked")
43 private
void initComponents() {
45 OKButton =
new javax.swing.JButton();
46 jSplitPane1 =
new javax.swing.JSplitPane();
47 genInfoPanel =
new javax.swing.JPanel();
48 fsTypeLabel =
new javax.swing.JLabel();
49 imgOffsetLabel =
new javax.swing.JLabel();
50 volumeIDLabel =
new javax.swing.JLabel();
51 blockSizeLabel =
new javax.swing.JLabel();
52 blockCountLabel =
new javax.swing.JLabel();
53 rootInumLabel =
new javax.swing.JLabel();
54 firstInumLabel =
new javax.swing.JLabel();
55 lastInumLabel =
new javax.swing.JLabel();
56 fsTypeValue =
new javax.swing.JLabel();
57 imgOffsetValue =
new javax.swing.JLabel();
58 volumeIDValue =
new javax.swing.JLabel();
59 blockSizeValue =
new javax.swing.JLabel();
60 blockCountValue =
new javax.swing.JLabel();
61 rootInumValue =
new javax.swing.JLabel();
62 firstInumValue =
new javax.swing.JLabel();
63 lastInumValue =
new javax.swing.JLabel();
64 genInfoLabel =
new javax.swing.JLabel();
65 jSeparator1 =
new javax.swing.JSeparator();
66 jLabel2 =
new javax.swing.JLabel();
67 jLabel3 =
new javax.swing.JLabel();
68 detailInfoPanel =
new javax.swing.JPanel();
69 jLabel1 =
new javax.swing.JLabel();
71 OKButton.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.OKButton.text"));
73 jSplitPane1.setDividerLocation(180);
74 jSplitPane1.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
76 genInfoPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder());
77 genInfoPanel.setPreferredSize(
new java.awt.Dimension(815, 170));
79 fsTypeLabel.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.fsTypeLabel.text"));
81 imgOffsetLabel.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.imgOffsetLabel.text"));
83 volumeIDLabel.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.volumeIDLabel.text"));
85 blockSizeLabel.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.blockSizeLabel.text"));
87 blockCountLabel.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.blockCountLabel.text"));
89 rootInumLabel.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.rootInumLabel.text"));
91 firstInumLabel.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.firstInumLabel.text"));
93 lastInumLabel.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.lastInumLabel.text"));
95 fsTypeValue.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.fsTypeValue.text"));
97 imgOffsetValue.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.imgOffsetValue.text"));
99 volumeIDValue.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.volumeIDValue.text"));
101 blockSizeValue.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.blockSizeValue.text"));
103 blockCountValue.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.blockCountValue.text"));
105 rootInumValue.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.rootInumValue.text"));
107 firstInumValue.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.firstInumValue.text"));
109 lastInumValue.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.lastInumValue.text"));
111 genInfoLabel.setFont(genInfoLabel.getFont().deriveFont(Font.BOLD, 18));
112 genInfoLabel.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.genInfoLabel.text"));
114 jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);
116 jLabel2.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.jLabel2.text"));
118 jLabel3.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.jLabel3.text"));
120 javax.swing.GroupLayout genInfoPanelLayout =
new javax.swing.GroupLayout(genInfoPanel);
121 genInfoPanel.setLayout(genInfoPanelLayout);
122 genInfoPanelLayout.setHorizontalGroup(
123 genInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
124 .addGroup(genInfoPanelLayout.createSequentialGroup()
126 .addGroup(genInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
127 .addComponent(fsTypeLabel)
128 .addComponent(imgOffsetLabel)
129 .addComponent(volumeIDLabel)
130 .addComponent(blockSizeLabel))
131 .addGap(108, 108, 108)
132 .addGroup(genInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
133 .addComponent(genInfoLabel)
134 .addGroup(genInfoPanelLayout.createSequentialGroup()
135 .addGroup(genInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
136 .addComponent(blockSizeValue)
137 .addComponent(volumeIDValue)
138 .addComponent(imgOffsetValue)
139 .addComponent(fsTypeValue))
141 .addGroup(genInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
142 .addComponent(jLabel2)
143 .addComponent(jLabel3))
145 .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
147 .addGroup(genInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
148 .addComponent(blockCountLabel)
149 .addComponent(rootInumLabel)
150 .addComponent(firstInumLabel)
151 .addComponent(lastInumLabel))
152 .addGap(111, 111, 111)
153 .addGroup(genInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
154 .addComponent(lastInumValue)
155 .addComponent(firstInumValue)
156 .addComponent(rootInumValue)
157 .addComponent(blockCountValue))))
158 .addGap(245, 245, 245))
160 genInfoPanelLayout.setVerticalGroup(
161 genInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
162 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, genInfoPanelLayout.createSequentialGroup()
163 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
164 .addComponent(genInfoLabel)
166 .addGroup(genInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
167 .addGroup(genInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
168 .addGroup(genInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
169 .addGroup(genInfoPanelLayout.createSequentialGroup()
170 .addComponent(fsTypeLabel)
171 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
172 .addComponent(imgOffsetLabel)
173 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
174 .addComponent(volumeIDLabel)
175 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
176 .addComponent(blockSizeLabel))
177 .addGroup(genInfoPanelLayout.createSequentialGroup()
178 .addComponent(fsTypeValue)
179 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
180 .addGroup(genInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
181 .addComponent(imgOffsetValue)
182 .addComponent(jLabel2))
183 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
184 .addComponent(volumeIDValue)
185 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
186 .addGroup(genInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
187 .addComponent(blockSizeValue)
188 .addComponent(jLabel3))))
189 .addGroup(genInfoPanelLayout.createSequentialGroup()
190 .addComponent(blockCountValue)
191 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
192 .addComponent(rootInumValue)
193 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
194 .addComponent(firstInumValue)
195 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
196 .addComponent(lastInumValue))
197 .addGroup(genInfoPanelLayout.createSequentialGroup()
198 .addComponent(blockCountLabel)
199 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
200 .addComponent(rootInumLabel)
201 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
202 .addComponent(firstInumLabel)
203 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
204 .addComponent(lastInumLabel)))
205 .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE))
209 jSplitPane1.setTopComponent(genInfoPanel);
211 detailInfoPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder());
212 detailInfoPanel.setPreferredSize(
new java.awt.Dimension(516, 293));
214 jLabel1.setFont(jLabel1.getFont().deriveFont(Font.BOLD, 18));
215 jLabel1.setText(
org.openide.util.NbBundle.getMessage(FileSystemDetailsPanel.class,
"FileSystemDetailsPanel.jLabel1.text"));
217 javax.swing.GroupLayout detailInfoPanelLayout =
new javax.swing.GroupLayout(detailInfoPanel);
218 detailInfoPanel.setLayout(detailInfoPanelLayout);
219 detailInfoPanelLayout.setHorizontalGroup(
220 detailInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
221 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, detailInfoPanelLayout.createSequentialGroup()
222 .addContainerGap(278, Short.MAX_VALUE)
223 .addComponent(jLabel1)
224 .addGap(276, 276, 276))
226 detailInfoPanelLayout.setVerticalGroup(
227 detailInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
228 .addGroup(detailInfoPanelLayout.createSequentialGroup()
230 .addComponent(jLabel1)
231 .addContainerGap(259, Short.MAX_VALUE))
234 jSplitPane1.setRightComponent(detailInfoPanel);
236 javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(
this);
237 this.setLayout(layout);
238 layout.setHorizontalGroup(
239 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
240 .addGroup(layout.createSequentialGroup()
241 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
242 .addGroup(layout.createSequentialGroup()
243 .addGap(367, 367, 367)
244 .addComponent(OKButton, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE))
245 .addGroup(layout.createSequentialGroup()
247 .addComponent(jSplitPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 786, javax.swing.GroupLayout.PREFERRED_SIZE)))
248 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
250 layout.setVerticalGroup(
251 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
252 .addGroup(layout.createSequentialGroup()
254 .addComponent(jSplitPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
256 .addComponent(OKButton)
257 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
266 public void setFileSystemTypeValue(String arg) {
267 fsTypeValue.setText(arg);
275 public void setImageOffsetValue(String arg) {
276 imgOffsetValue.setText(arg);
284 public void setVolumeIDValue(String arg) {
285 volumeIDValue.setText(arg);
293 public void setBlockSizeValue(String arg) {
294 blockSizeValue.setText(arg);
302 public void setBlockCountValue(String arg) {
303 blockCountValue.setText(arg);
311 public void setRootInumValue(String arg) {
312 rootInumValue.setText(arg);
320 public void setFirstInumValue(String arg) {
321 firstInumValue.setText(arg);
329 public void setLastInumValue(String arg) {
330 lastInumValue.setText(arg);
338 public void setOKButtonActionListener(ActionListener e) {
339 OKButton.addActionListener(e);
342 private javax.swing.JButton OKButton;
343 private javax.swing.JLabel blockCountLabel;
344 private javax.swing.JLabel blockCountValue;
345 private javax.swing.JLabel blockSizeLabel;
346 private javax.swing.JLabel blockSizeValue;
347 private javax.swing.JPanel detailInfoPanel;
348 private javax.swing.JLabel firstInumLabel;
349 private javax.swing.JLabel firstInumValue;
350 private javax.swing.JLabel fsTypeLabel;
351 private javax.swing.JLabel fsTypeValue;
352 private javax.swing.JLabel genInfoLabel;
353 private javax.swing.JPanel genInfoPanel;
354 private javax.swing.JLabel imgOffsetLabel;
355 private javax.swing.JLabel imgOffsetValue;
356 private javax.swing.JLabel jLabel1;
357 private javax.swing.JLabel jLabel2;
358 private javax.swing.JLabel jLabel3;
359 private javax.swing.JSeparator jSeparator1;
360 private javax.swing.JSplitPane jSplitPane1;
361 private javax.swing.JLabel lastInumLabel;
362 private javax.swing.JLabel lastInumValue;
363 private javax.swing.JLabel rootInumLabel;
364 private javax.swing.JLabel rootInumValue;
365 private javax.swing.JLabel volumeIDLabel;
366 private javax.swing.JLabel volumeIDValue;