/*
 * Autopsy Forensic Browser
 *
 * Copyright 2011 Basis Technology Corp.
 * Contact: carrier <at> sleuthkit <dot> org
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/*
 * ImageDetailsPanel.java
 *
 * Created on May 2, 2011, 3:53:49 PM
 */

package org.sleuthkit.autopsy.directorytree;

import java.awt.event.ActionListener;

/**
 *
 * @author jantonius
 */
class ImageDetailsPanel extends javax.swing.JPanel {

    /** Creates new form ImageDetailsPanel */
    ImageDetailsPanel() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        imageInfoLabel = new javax.swing.JLabel();
        imgNameLabel = new javax.swing.JLabel();
        imgTypeLabel = new javax.swing.JLabel();
        imgSectorSizeLabel = new javax.swing.JLabel();
        imgNameValue = new javax.swing.JLabel();
        imgTypeValue = new javax.swing.JLabel();
        imgSectorSizeValue = new javax.swing.JLabel();
        OKButton = new javax.swing.JButton();

        imageInfoLabel.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        imageInfoLabel.setText(org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, "ImageDetailsPanel.imageInfoLabel.text")); // NOI18N

        imgNameLabel.setText(org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, "ImageDetailsPanel.imgNameLabel.text")); // NOI18N

        imgTypeLabel.setText(org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, "ImageDetailsPanel.imgTypeLabel.text")); // NOI18N

        imgSectorSizeLabel.setText(org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, "ImageDetailsPanel.imgSectorSizeLabel.text")); // NOI18N

        imgNameValue.setText(org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, "ImageDetailsPanel.imgNameValue.text")); // NOI18N

        imgTypeValue.setText(org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, "ImageDetailsPanel.imgTypeValue.text")); // NOI18N

        imgSectorSizeValue.setText(org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, "ImageDetailsPanel.imgSectorSizeValue.text")); // NOI18N

        OKButton.setText(org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, "ImageDetailsPanel.OKButton.text")); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(89, 89, 89)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(imgNameLabel)
                            .addComponent(imgTypeLabel)
                            .addComponent(imgSectorSizeLabel))
                        .addGap(29, 29, 29)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(imgNameValue)
                            .addComponent(imgTypeValue)
                            .addComponent(imgSectorSizeValue)))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(118, 118, 118)
                        .addComponent(OKButton, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(71, 71, 71)
                        .addComponent(imageInfoLabel)))
                .addContainerGap(75, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(38, 38, 38)
                .addComponent(imageInfoLabel)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(imgNameLabel)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(imgTypeLabel)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(imgSectorSizeLabel))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(imgNameValue)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(imgTypeValue)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(imgSectorSizeValue)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 29, Short.MAX_VALUE)
                .addComponent(OKButton)
                .addGap(22, 22, 22))
        );
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton OKButton;
    private javax.swing.JLabel imageInfoLabel;
    private javax.swing.JLabel imgNameLabel;
    private javax.swing.JLabel imgNameValue;
    private javax.swing.JLabel imgSectorSizeLabel;
    private javax.swing.JLabel imgSectorSizeValue;
    private javax.swing.JLabel imgTypeLabel;
    private javax.swing.JLabel imgTypeValue;
    // End of variables declaration//GEN-END:variables


    /**
     * Sets the image name value on this panel.
     *
     * @param arg  the new image name value
     */
    public void setImgNameValue(String arg){
        imgNameValue.setText(arg);
    }

    /**
     * Sets the image type value on this panel.
     *
     * @param arg  the new image type value
     */
    public void setImgTypeValue(String arg){
        imgTypeValue.setText(arg);
    }

    /**
     * Sets the image size value on this panel.
     * 
     * @param arg  the new image size value
     */
    public void setImgSectorSizeValue(String arg){
        imgSectorSizeValue.setText(arg);
    }

    /**
     * Sets the OK button action listener.
     *
     * @param e  the action listener
     */
    public void setOKButtonActionListener(ActionListener e){
        OKButton.addActionListener(e);
    }
}
