package usda.weru.weps.gui;

/**
 * This gui panel tells when all of the out files have been converted to csv.
 * 
 * @author Benjamin.Todd
 */
public class NrmvProgress extends javax.swing.JFrame {

    private static final long serialVersionUID = 1L;

    /**
     * Creates new form NrmvProgress
     */
    public NrmvProgress() {
        initComponents();
        this.setTitle("NRMV Conversion");
    }

    /**
     * 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() {

        PBNrmvProgress = new javax.swing.JProgressBar();
        LProgress = new javax.swing.JLabel();
        LStatus = new javax.swing.JLabel();
        LCurrentStatus = new javax.swing.JLabel();
        LError = new javax.swing.JLabel();
        LErrorStatus = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

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

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

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

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

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

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(LProgress, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(PBNrmvProgress, javax.swing.GroupLayout.DEFAULT_SIZE, 456, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(LError)
                        .addGap(53, 53, 53)
                        .addComponent(LErrorStatus, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(LStatus, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(LCurrentStatus)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(27, 27, 27)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(LStatus)
                    .addComponent(LCurrentStatus))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(PBNrmvProgress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(LProgress))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(LError)
                    .addComponent(LErrorStatus))
                .addContainerGap(27, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
     * @return 
     */
    public javax.swing.JProgressBar getBar() {
        return this.PBNrmvProgress;
    }

    public void setStatus(String newLabel) {
        LCurrentStatus.setText(newLabel);
    }

    public void setError(String s) {
        LErrorStatus.setText(s);
    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel LCurrentStatus;
    private javax.swing.JLabel LError;
    private javax.swing.JLabel LErrorStatus;
    private javax.swing.JLabel LProgress;
    private javax.swing.JLabel LStatus;
    private javax.swing.JProgressBar PBNrmvProgress;
    // End of variables declaration//GEN-END:variables
}
