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 jLabel1 =
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.setFont(flagsValue.getFont().deriveFont(flagsValue.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
60 flagsValue.setText(
org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class,
"VolumeDetailsPanel.flagsValue.text"));
62 descValue.setFont(descValue.getFont().deriveFont(descValue.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
63 descValue.setText(
org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class,
"VolumeDetailsPanel.descValue.text"));
65 lengthValue.setFont(lengthValue.getFont().deriveFont(lengthValue.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
66 lengthValue.setText(
org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class,
"VolumeDetailsPanel.lengthValue.text"));
68 startValue.setFont(startValue.getFont().deriveFont(startValue.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
69 startValue.setText(
org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class,
"VolumeDetailsPanel.startValue.text"));
71 startLabel.setFont(startLabel.getFont().deriveFont(startLabel.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
72 startLabel.setText(
org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class,
"VolumeDetailsPanel.startLabel.text"));
74 lengthLabel.setFont(lengthLabel.getFont().deriveFont(lengthLabel.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
75 lengthLabel.setText(
org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class,
"VolumeDetailsPanel.lengthLabel.text"));
77 jLabel1.setFont(jLabel1.getFont().deriveFont(jLabel1.getFont().getStyle() | java.awt.Font.BOLD, 18));
78 jLabel1.setText(
org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class,
"VolumeDetailsPanel.jLabel1.text"));
80 volumeIDLabel.setFont(volumeIDLabel.getFont().deriveFont(volumeIDLabel.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
81 volumeIDLabel.setText(
org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class,
"VolumeDetailsPanel.volumeIDLabel.text"));
83 volumeIDValue.setFont(volumeIDValue.getFont().deriveFont(volumeIDValue.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
84 volumeIDValue.setText(
org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class,
"VolumeDetailsPanel.volumeIDValue.text"));
86 descLabel.setFont(descLabel.getFont().deriveFont(descLabel.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
87 descLabel.setText(
org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class,
"VolumeDetailsPanel.descLabel.text"));
89 flagsLabel.setFont(flagsLabel.getFont().deriveFont(flagsLabel.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
90 flagsLabel.setText(
org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class,
"VolumeDetailsPanel.flagsLabel.text"));
92 javax.swing.GroupLayout jPanel1Layout =
new javax.swing.GroupLayout(jPanel1);
93 jPanel1.setLayout(jPanel1Layout);
94 jPanel1Layout.setHorizontalGroup(
95 jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
96 .addGroup(jPanel1Layout.createSequentialGroup()
97 .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
98 .addGroup(jPanel1Layout.createSequentialGroup()
99 .addGap(112, 112, 112)
100 .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
101 .addComponent(startLabel)
102 .addComponent(volumeIDLabel)
103 .addComponent(lengthLabel)
104 .addComponent(descLabel)
105 .addComponent(flagsLabel))
107 .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
108 .addComponent(flagsValue)
109 .addComponent(descValue)
110 .addComponent(lengthValue)
111 .addComponent(startValue)
112 .addComponent(volumeIDValue)))
113 .addGroup(jPanel1Layout.createSequentialGroup()
115 .addComponent(jLabel1)))
116 .addContainerGap(58, Short.MAX_VALUE))
118 jPanel1Layout.setVerticalGroup(
119 jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
120 .addGroup(jPanel1Layout.createSequentialGroup()
122 .addComponent(jLabel1)
124 .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
125 .addComponent(volumeIDLabel)
126 .addComponent(volumeIDValue))
127 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
128 .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
129 .addComponent(startLabel)
130 .addComponent(startValue))
131 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
132 .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
133 .addComponent(lengthLabel)
134 .addComponent(lengthValue))
135 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
136 .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
137 .addGroup(jPanel1Layout.createSequentialGroup()
138 .addComponent(descLabel)
139 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
140 .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
141 .addComponent(flagsLabel)
142 .addComponent(flagsValue)))
143 .addGroup(jPanel1Layout.createSequentialGroup()
144 .addComponent(descValue)
145 .addGap(25, 25, 25)))
146 .addContainerGap(29, Short.MAX_VALUE))
149 OKButton.setFont(OKButton.getFont().deriveFont(OKButton.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
150 OKButton.setText(
org.openide.util.NbBundle.getMessage(VolumeDetailsPanel.class,
"VolumeDetailsPanel.OKButton.text"));
152 javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(
this);
153 this.setLayout(layout);
154 layout.setHorizontalGroup(
155 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
156 .addGroup(layout.createSequentialGroup()
158 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
159 .addGroup(layout.createSequentialGroup()
160 .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
162 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
163 .addComponent(OKButton, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
164 .addGap(145, 145, 145))))
166 layout.setVerticalGroup(
167 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
168 .addGroup(layout.createSequentialGroup()
170 .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
172 .addComponent(OKButton, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
177 public void setVolumeIDValue(String arg) {
178 volumeIDValue.setText(arg);
181 public void setStartValue(String arg) {
182 startValue.setText(arg);
185 public void setLengthValue(String arg) {
186 lengthValue.setText(arg);
189 public void setDescValue(String arg) {
190 descValue.setText(arg);
193 public void setFlagsValue(String arg) {
194 flagsValue.setText(arg);
197 public void setOKButtonActionListener(ActionListener e) {
198 OKButton.addActionListener(e);
202 private javax.swing.JButton OKButton;
203 private javax.swing.JLabel descLabel;
204 private javax.swing.JLabel descValue;
205 private javax.swing.JLabel flagsLabel;
206 private javax.swing.JLabel flagsValue;
207 private javax.swing.JLabel jLabel1;
208 private javax.swing.JPanel jPanel1;
209 private javax.swing.JLabel lengthLabel;
210 private javax.swing.JLabel lengthValue;
211 private javax.swing.JLabel startLabel;
212 private javax.swing.JLabel startValue;
213 private javax.swing.JLabel volumeIDLabel;
214 private javax.swing.JLabel volumeIDValue;