25 package org.sleuthkit.autopsy.directorytree;
28 import java.awt.event.ActionListener;
34 class ImageDetailsPanel
extends javax.swing.JPanel {
48 @SuppressWarnings(
"unchecked")
50 private
void initComponents() {
52 imageInfoLabel =
new javax.swing.JLabel();
53 imgNameLabel =
new javax.swing.JLabel();
54 imgTypeLabel =
new javax.swing.JLabel();
55 imgSectorSizeLabel =
new javax.swing.JLabel();
56 imgNameValue =
new javax.swing.JLabel();
57 imgTypeValue =
new javax.swing.JLabel();
58 imgSectorSizeValue =
new javax.swing.JLabel();
59 OKButton =
new javax.swing.JButton();
60 imgTotalSizeLabel =
new javax.swing.JLabel();
61 imgTotalSizeValue =
new javax.swing.JLabel();
62 imgHashLabel =
new javax.swing.JLabel();
63 imgHashValue =
new javax.swing.JLabel();
65 imageInfoLabel.setFont(imageInfoLabel.getFont().deriveFont(imageInfoLabel.getFont().getStyle() | java.awt.Font.BOLD, 18));
66 imageInfoLabel.setText(
org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class,
"ImageDetailsPanel.imageInfoLabel.text"));
68 imgNameLabel.setFont(imgNameLabel.getFont().deriveFont(imgNameLabel.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
69 imgNameLabel.setText(
org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class,
"ImageDetailsPanel.imgNameLabel.text"));
71 imgTypeLabel.setFont(imgTypeLabel.getFont().deriveFont(imgTypeLabel.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
72 imgTypeLabel.setText(
org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class,
"ImageDetailsPanel.imgTypeLabel.text"));
74 imgSectorSizeLabel.setFont(imgSectorSizeLabel.getFont().deriveFont(imgSectorSizeLabel.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
75 imgSectorSizeLabel.setText(
org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class,
"ImageDetailsPanel.imgSectorSizeLabel.text"));
77 imgNameValue.setFont(imgNameValue.getFont().deriveFont(imgNameValue.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
78 imgNameValue.setText(
org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class,
"ImageDetailsPanel.imgNameValue.text"));
80 imgTypeValue.setFont(imgTypeValue.getFont().deriveFont(imgTypeValue.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
81 imgTypeValue.setText(
org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class,
"ImageDetailsPanel.imgTypeValue.text"));
83 imgSectorSizeValue.setFont(imgSectorSizeValue.getFont().deriveFont(imgSectorSizeValue.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
84 imgSectorSizeValue.setText(
org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class,
"ImageDetailsPanel.imgSectorSizeValue.text"));
86 OKButton.setFont(OKButton.getFont().deriveFont(OKButton.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
87 OKButton.setText(
org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class,
"ImageDetailsPanel.OKButton.text"));
89 imgTotalSizeLabel.setFont(imgTotalSizeLabel.getFont().deriveFont(imgTotalSizeLabel.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
90 imgTotalSizeLabel.setText(
org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class,
"ImageDetailsPanel.imgTotalSizeLabel.text"));
92 imgTotalSizeValue.setFont(imgTotalSizeValue.getFont().deriveFont(imgTotalSizeValue.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
93 imgTotalSizeValue.setText(
org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class,
"ImageDetailsPanel.imgTotalSizeValue.text"));
95 imgHashLabel.setFont(imgHashLabel.getFont().deriveFont(imgHashLabel.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
96 imgHashLabel.setText(
org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class,
"ImageDetailsPanel.imgHashLabel.text"));
98 imgHashValue.setFont(imgHashValue.getFont().deriveFont(imgHashValue.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
99 imgHashValue.setText(
org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class,
"ImageDetailsPanel.imgHashValue.text"));
101 javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(
this);
102 this.setLayout(layout);
103 layout.setHorizontalGroup(
104 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
105 .addGroup(layout.createSequentialGroup()
106 .addGap(0, 68, Short.MAX_VALUE)
107 .addComponent(imageInfoLabel)
108 .addContainerGap(78, Short.MAX_VALUE))
109 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
110 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
111 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
112 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
113 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
114 .addComponent(imgNameLabel)
115 .addComponent(imgTypeLabel)
116 .addComponent(imgSectorSizeLabel)
117 .addComponent(imgTotalSizeLabel)
118 .addComponent(imgHashLabel))
120 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
121 .addComponent(imgNameValue)
122 .addComponent(imgTypeValue)
123 .addComponent(imgSectorSizeValue)
124 .addComponent(imgTotalSizeValue)
125 .addComponent(imgHashValue))
126 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
127 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
128 .addComponent(OKButton, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
129 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
131 layout.setVerticalGroup(
132 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
133 .addGroup(layout.createSequentialGroup()
135 .addComponent(imageInfoLabel)
137 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
138 .addGroup(layout.createSequentialGroup()
139 .addComponent(imgNameValue)
140 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
141 .addComponent(imgTypeValue)
142 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
143 .addComponent(imgSectorSizeValue)
144 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
145 .addComponent(imgTotalSizeValue)
146 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
147 .addComponent(imgHashValue))
148 .addGroup(layout.createSequentialGroup()
149 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
150 .addGroup(layout.createSequentialGroup()
151 .addComponent(imgNameLabel)
152 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
153 .addComponent(imgTypeLabel)
155 .addComponent(imgSectorSizeLabel))
156 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
157 .addComponent(imgTotalSizeLabel)
158 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
159 .addComponent(imgHashLabel)))
160 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 64, Short.MAX_VALUE)
161 .addComponent(OKButton)
167 private javax.swing.JButton OKButton;
168 private javax.swing.JLabel imageInfoLabel;
169 private javax.swing.JLabel imgHashLabel;
170 private javax.swing.JLabel imgHashValue;
171 private javax.swing.JLabel imgNameLabel;
172 private javax.swing.JLabel imgNameValue;
173 private javax.swing.JLabel imgSectorSizeLabel;
174 private javax.swing.JLabel imgSectorSizeValue;
175 private javax.swing.JLabel imgTotalSizeLabel;
176 private javax.swing.JLabel imgTotalSizeValue;
177 private javax.swing.JLabel imgTypeLabel;
178 private javax.swing.JLabel imgTypeValue;
186 public void setImgNameValue(String arg) {
187 imgNameValue.setText(arg);
195 public void setImgTypeValue(String arg) {
196 imgTypeValue.setText(arg);
204 public void setImgSectorSizeValue(String arg) {
205 imgSectorSizeValue.setText(arg);
213 public void setImgTotalSizeValue(String arg) {
214 imgTotalSizeValue.setText(arg);
222 public void setImgHashValue(String arg) {
223 imgHashValue.setText(arg);
226 public void setVisibleHashInfo(
boolean visible) {
227 imgHashLabel.setVisible(visible);
228 imgHashValue.setVisible(visible);
236 public void setOKButtonActionListener(ActionListener e) {
237 OKButton.addActionListener(e);