26 package org.sleuthkit.autopsy.directorytree;
 
   29 import java.awt.event.ActionListener;
 
   35 class ImageDetailsPanel 
extends javax.swing.JPanel {
 
   47     @SuppressWarnings(
"unchecked")
 
   49     private 
void initComponents() {
 
   51         imageInfoLabel = 
new javax.swing.JLabel();
 
   52         imgNameLabel = 
new javax.swing.JLabel();
 
   53         imgTypeLabel = 
new javax.swing.JLabel();
 
   54         imgSectorSizeLabel = 
new javax.swing.JLabel();
 
   55         imgNameValue = 
new javax.swing.JLabel();
 
   56         imgTypeValue = 
new javax.swing.JLabel();
 
   57         imgSectorSizeValue = 
new javax.swing.JLabel();
 
   58         OKButton = 
new javax.swing.JButton();
 
   59         imgTotalSizeLabel = 
new javax.swing.JLabel();
 
   60         imgTotalSizeValue = 
new javax.swing.JLabel();
 
   61         imgHashLabel = 
new javax.swing.JLabel();
 
   62         imgHashValue = 
new javax.swing.JLabel();
 
   64         imageInfoLabel.setFont(imageInfoLabel.getFont().deriveFont(Font.BOLD, 18));
 
   65         imageInfoLabel.setText(
org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, 
"ImageDetailsPanel.imageInfoLabel.text")); 
 
   67         imgNameLabel.setText(
org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, 
"ImageDetailsPanel.imgNameLabel.text")); 
 
   69         imgTypeLabel.setText(
org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, 
"ImageDetailsPanel.imgTypeLabel.text")); 
 
   71         imgSectorSizeLabel.setText(
org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, 
"ImageDetailsPanel.imgSectorSizeLabel.text")); 
 
   73         imgNameValue.setText(
org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, 
"ImageDetailsPanel.imgNameValue.text")); 
 
   75         imgTypeValue.setText(
org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, 
"ImageDetailsPanel.imgTypeValue.text")); 
 
   77         imgSectorSizeValue.setText(
org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, 
"ImageDetailsPanel.imgSectorSizeValue.text")); 
 
   79         OKButton.setText(
org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, 
"ImageDetailsPanel.OKButton.text")); 
 
   81         imgTotalSizeLabel.setText(
org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, 
"ImageDetailsPanel.imgTotalSizeLabel.text")); 
 
   83         imgTotalSizeValue.setText(
org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, 
"ImageDetailsPanel.imgTotalSizeValue.text")); 
 
   85         imgHashLabel.setText(
org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, 
"ImageDetailsPanel.imgHashLabel.text")); 
 
   87         imgHashValue.setText(
org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, 
"ImageDetailsPanel.imgHashValue.text")); 
 
   89         javax.swing.GroupLayout layout = 
new javax.swing.GroupLayout(
this);
 
   90         this.setLayout(layout);
 
   91         layout.setHorizontalGroup(
 
   92             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
   93             .addGroup(layout.createSequentialGroup()
 
   94                 .addGap(0, 68, Short.MAX_VALUE)
 
   95                 .addComponent(imageInfoLabel)
 
   96                 .addContainerGap(78, Short.MAX_VALUE))
 
   97             .addGroup(layout.createSequentialGroup()
 
   98                 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 
   99                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  100                     .addComponent(imgNameLabel)
 
  101                     .addComponent(imgTypeLabel)
 
  102                     .addComponent(imgSectorSizeLabel)
 
  103                     .addComponent(imgTotalSizeLabel)
 
  104                     .addComponent(imgHashLabel))
 
  106                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  107                     .addComponent(imgNameValue)
 
  108                     .addComponent(imgTypeValue)
 
  109                     .addComponent(imgSectorSizeValue)
 
  110                     .addComponent(imgTotalSizeValue)
 
  111                     .addComponent(imgHashValue))
 
  112                 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
 
  113             .addGroup(layout.createSequentialGroup()
 
  114                 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 
  115                 .addComponent(OKButton, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
 
  116                 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
 
  118         layout.setVerticalGroup(
 
  119             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  120             .addGroup(layout.createSequentialGroup()
 
  122                 .addComponent(imageInfoLabel)
 
  124                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
 
  125                     .addGroup(layout.createSequentialGroup()
 
  126                         .addComponent(imgNameValue)
 
  127                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
 
  128                         .addComponent(imgTypeValue)
 
  129                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
 
  130                         .addComponent(imgSectorSizeValue)
 
  131                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
 
  132                         .addComponent(imgTotalSizeValue)
 
  133                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
 
  134                         .addComponent(imgHashValue))
 
  135                     .addGroup(layout.createSequentialGroup()
 
  136                         .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
 
  137                             .addGroup(layout.createSequentialGroup()
 
  138                                 .addComponent(imgNameLabel)
 
  139                                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
 
  140                                 .addComponent(imgTypeLabel)
 
  142                             .addGroup(layout.createSequentialGroup()
 
  144                                 .addComponent(imgSectorSizeLabel)))
 
  145                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
 
  146                         .addComponent(imgTotalSizeLabel)
 
  147                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
 
  148                         .addComponent(imgHashLabel)))
 
  149                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 64, Short.MAX_VALUE)
 
  150                 .addComponent(OKButton)
 
  157     private javax.swing.JButton OKButton;
 
  158     private javax.swing.JLabel imageInfoLabel;
 
  159     private javax.swing.JLabel imgHashLabel;
 
  160     private javax.swing.JLabel imgHashValue;
 
  161     private javax.swing.JLabel imgNameLabel;
 
  162     private javax.swing.JLabel imgNameValue;
 
  163     private javax.swing.JLabel imgSectorSizeLabel;
 
  164     private javax.swing.JLabel imgSectorSizeValue;
 
  165     private javax.swing.JLabel imgTotalSizeLabel;
 
  166     private javax.swing.JLabel imgTotalSizeValue;
 
  167     private javax.swing.JLabel imgTypeLabel;
 
  168     private javax.swing.JLabel imgTypeValue;
 
  177     public void setImgNameValue(String arg){
 
  178         imgNameValue.setText(arg);
 
  186     public void setImgTypeValue(String arg){
 
  187         imgTypeValue.setText(arg);
 
  195     public void setImgSectorSizeValue(String arg){
 
  196         imgSectorSizeValue.setText(arg);
 
  204     public void setImgTotalSizeValue(String arg) {
 
  205         imgTotalSizeValue.setText(arg);
 
  213     public void setImgHashValue(String arg) {
 
  214         imgHashValue.setText(arg);
 
  217     public void setVisibleHashInfo(
boolean visible) {
 
  218         imgHashLabel.setVisible(visible);
 
  219         imgHashValue.setVisible(visible);
 
  226     public void setOKButtonActionListener(ActionListener e){
 
  227         OKButton.addActionListener(e);