/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * WelcomePanel.java
 *
 * Created on Jan 8, 2010, 4:27:37 PM
 */

package usda.weru.weps.startup;

import org.netbeans.spi.wizard.WizardPage;
import usda.weru.util.About;

/**
 *
 * @author Joseph Levin <joelevin@weru.ksu.edu>
 */
public class IntroductionPage extends WizardPage {
    private static final long serialVersionUID = 1L;

    private WelcomeWizard c_wizard;

    /** Creates new form WelcomePanel */
    public IntroductionPage() {
        initComponents();
        titleLabel.setText("Welcome to WEPS " + About.getVersion());
        releaseLabel.setText(About.getBuildRelease());
        
    }

	/**
	 *
	 * @param wizard
	 */
	public IntroductionPage(WelcomeWizard wizard) {
        this();
        c_wizard = wizard;
    }

	/**
	 *
	 * @return
	 */
	public static String getDescription(){
        return "Welcome";
    }

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

        titleLabel = new javax.swing.JLabel();
        releaseLabel = new javax.swing.JLabel();
        textAreaScroll = new javax.swing.JScrollPane();
        textArea = new javax.swing.JTextArea();

        titleLabel.setFont(new java.awt.Font("Tahoma", 1, 24));
        titleLabel.setText("Welcome to WEPS 0.0.0");

        releaseLabel.setFont(releaseLabel.getFont().deriveFont(releaseLabel.getFont().getStyle() | java.awt.Font.BOLD, releaseLabel.getFont().getSize()+1));
        releaseLabel.setText("DEVELOPMENT");

        textAreaScroll.setBorder(null);
        textAreaScroll.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
        textAreaScroll.setOpaque(false);

        textArea.setColumns(20);
        textArea.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        textArea.setLineWrap(true);
        textArea.setRows(5);
        textArea.setText("The Wind Erosion Prediction System (WEPS) is a process-based, daily time-step, computer model that predicts soil erosion via simulation of the fundamental processes controlling wind erosion. \n\nWEPS can calculate soil movement and predict PM-10 emissions when wind speeds exceed the erosion threshold. It also can provide the user with spatial information regarding soil flux, deposition, and loss from specific regions of a field over time. \n\nWEPS is intended for conservation planning, assessing wind erosion for USDA-NRCS's National Resources Inventory (NRI), and aiding the development of regional and national policy.");
        textArea.setWrapStyleWord(true);
        textArea.setOpaque(false);
        textAreaScroll.setViewportView(textArea);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(textAreaScroll, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)
                    .addComponent(titleLabel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)
                    .addComponent(releaseLabel, javax.swing.GroupLayout.Alignment.LEADING))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(titleLabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(releaseLabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(textAreaScroll, javax.swing.GroupLayout.DEFAULT_SIZE, 217, Short.MAX_VALUE)
                .addContainerGap())
        );
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel releaseLabel;
    private javax.swing.JTextArea textArea;
    private javax.swing.JScrollPane textAreaScroll;
    private javax.swing.JLabel titleLabel;
    // End of variables declaration//GEN-END:variables


}
