19 package org.sleuthkit.autopsy.directorytree;
21 import java.awt.event.ActionListener;
26 @SuppressWarnings(
"PMD.SingularField")
27 class VolumeDetailsPanel extends javax.swing.JPanel {
32 VolumeDetailsPanel() {
41 @SuppressWarnings(
"unchecked")
43 private
void initComponents() {
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();
59 flagsValue.setText(
org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class,
"VolumeDetailsPanel.flagsValue.text"));
61 descValue.setText(
org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class,
"VolumeDetailsPanel.descValue.text"));
63 lengthValue.setText(
org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class,
"VolumeDetailsPanel.lengthValue.text"));
65 startValue.setText(
org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class,
"VolumeDetailsPanel.startValue.text"));
67 startLabel.setText(
org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class,
"VolumeDetailsPanel.startLabel.text"));
69 lengthLabel.setText(
org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class,
"VolumeDetailsPanel.lengthLabel.text"));
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"));
74 volumeIDLabel.setText(
org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class,
"VolumeDetailsPanel.volumeIDLabel.text"));
76 volumeIDValue.setText(
org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class,
"VolumeDetailsPanel.volumeIDValue.text"));
78 descLabel.setText(
org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class,
"VolumeDetailsPanel.descLabel.text"));
80 flagsLabel.setText(
org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class,
"VolumeDetailsPanel.flagsLabel.text"));
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))
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()
105 .addComponent(generalVolumeLabel)))
106 .addContainerGap(58, Short.MAX_VALUE))
108 jPanel1Layout.setVerticalGroup(
109 jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
110 .addGroup(jPanel1Layout.createSequentialGroup()
112 .addComponent(generalVolumeLabel)
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))
139 OKButton.setText(
org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class,
"VolumeDetailsPanel.OKButton.text"));
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()
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)
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))))
155 layout.setVerticalGroup(
156 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
157 .addGroup(layout.createSequentialGroup()
159 .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
161 .addComponent(OKButton, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
166 public void setVolumeIDValue(String arg) {
167 volumeIDValue.setText(arg);
170 public void setStartValue(String arg) {
171 startValue.setText(arg);
174 public void setLengthValue(String arg) {
175 lengthValue.setText(arg);
178 public void setDescValue(String arg) {
179 descValue.setText(arg);
182 public void setFlagsValue(String arg) {
183 flagsValue.setText(arg);
186 public void setOKButtonActionListener(ActionListener e) {
187 OKButton.addActionListener(e);
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;