package com.uvigo.tMaestro.SCOCreator.templates;

import com.uvigo.mhp.*;
import java.awt.*;
import java.awt.event.*;
import org.havi.ui.*;

public class page1_4 extends Page {
    public page1_4() {
        try {
            initComponents();
            courseDelegate.setPage(this);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
    
    /** 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.
     */
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
    private void initComponents() {
        mainContextManager = new com.uvigo.mhp.ContextManager();
        courseDelegate = new com.uvigo.mhp.CourseDelegate();
        hSwitchGroup1 = new com.uvigo.mhp.ui.HSwitchGroup();
        hLabel1 = new com.uvigo.mhp.ui.HLabel();
        hSwitch1 = new com.uvigo.mhp.ui.HSwitch();
        hSwitch2 = new com.uvigo.mhp.ui.HSwitch();

        courseDelegate.setPage(this);

        setLayout(null);

        setBackground(java.awt.Color.black);
        setBackgroundImageMode(com.uvigo.mhp.ui.HPanel.IMAGE_DONT_SHOW);
        setBackgroundImageURL("templates/page1_4/fondo2.jpg");
        setName("HPage");
        setOpaque(true);
        hLabel1.setBackground(java.awt.Color.cyan);
        hLabel1.setBackgroundMode(org.havi.ui.HVisible.BACKGROUND_FILL);
        hLabel1.setFont(new java.awt.Font("TypoUpright BT", 0, 36));
        hLabel1.setLabel("\u00a1Enhorabuena!\n\nHas completado el curso\nde demostraci\u00f3n");
        hLabel1.setName("hLabel1");
        add(hLabel1);
        hLabel1.setBounds(0, 0, 500, 400);

        hSwitch1.setContentFile("templates/page1_4/play.xml");
        hSwitch1.setForeground(java.awt.Color.black);
        hSwitch1.setName("hSwitch1");
        hSwitch1.setSwitchGroup(hSwitchGroup1);
        hSwitch1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                hSwitch1ActionPerformed(evt);
            }
        });

        add(hSwitch1);
        hSwitch1.setBounds(20, 420, 60, 52);

        hSwitch2.setContentFile("templates/page1_4/stop.xml");
        hSwitch2.setForeground(java.awt.Color.black);
        hSwitch2.setName("hSwitch2");
        hSwitch2.setSwitchGroup(hSwitchGroup1);
        add(hSwitch2);
        hSwitch2.setBounds(100, 420, 60, 52);

    }
    // </editor-fold>//GEN-END:initComponents

    private void hSwitch1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_hSwitch1ActionPerformed
// TODO add your handling code here:
    }//GEN-LAST:event_hSwitch1ActionPerformed
    
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private com.uvigo.mhp.CourseDelegate courseDelegate;
    private com.uvigo.mhp.ui.HLabel hLabel1;
    private com.uvigo.mhp.ui.HSwitch hSwitch1;
    private com.uvigo.mhp.ui.HSwitch hSwitch2;
    private com.uvigo.mhp.ui.HSwitchGroup hSwitchGroup1;
    private com.uvigo.mhp.ContextManager mainContextManager;
    // End of variables declaration//GEN-END:variables
    
    
    public static void main(String[] args) {
        HSceneFactory hsFactory = HSceneFactory.getInstance();
        HScene scene = hsFactory.getBestScene(new HSceneTemplate());
        scene.setLayout(new BorderLayout());
        
        scene.add(new page1_4());
        
        scene.addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e) {
                System.exit(0);
            }
        }
        );
        scene.setVisible(true);
        scene.validate();
    }
}
