package com.uvigo.tMaestro.SCOCreator.templates;

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

public class Simple extends Page {
    public Simple() {
        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();
        hTextLook21 = new com.uvigo.mhp.looks.HTextLook2();
        hPanel1 = new com.uvigo.mhp.ui.HPanel();
        hImage1 = new com.uvigo.mhp.ui.HImage();
        hLabel3 = new com.uvigo.mhp.ui.HLabel();
        hLabel1 = new com.uvigo.mhp.ui.HLabel();
        hLabel2 = new com.uvigo.mhp.ui.HLabel();

        courseDelegate.setPage(this);
        hTextLook21.setSeparator("   ");

        setLayout(null);

        setBackground(java.awt.Color.orange);
        setBackgroundImageMode(com.uvigo.mhp.ui.HPanel.IMAGE_STRETCH);
        setFont(new java.awt.Font("Dialog", 0, 14));
        setForeground(java.awt.Color.black);
        setName("hPage");
        hPanel1.setLayout(null);

        hPanel1.setBackground(java.awt.Color.orange);
        hPanel1.setBackgroundImageMode(com.uvigo.mhp.ui.HPanel.IMAGE_DONT_SHOW);
        hPanel1.setName("hPanel1");
        hImage1.setName("hImage1");
        hPanel1.add(hImage1);
        hImage1.setBounds(110, 20, 220, 200);

        hLabel3.setBackground(java.awt.Color.orange);
        hLabel3.setLabel("Label3");
        hLabel3.setName("hLabel3");
        hPanel1.add(hLabel3);
        hLabel3.setBounds(100, 260, 230, 30);

        add(hPanel1);
        hPanel1.setBounds(130, 70, 430, 350);

        hLabel1.setBackground(java.awt.Color.black);
        hLabel1.setBackgroundMode(org.havi.ui.HVisible.BACKGROUND_FILL);
        hLabel1.setFont(new java.awt.Font("Bremen Bd BT", 0, 36));
        hLabel1.setForeground(java.awt.Color.orange);
        hLabel1.setLabel("Label1");
        hLabel1.setName("hLabel1");
        add(hLabel1);
        hLabel1.setBounds(10, 10, 640, 50);

        hLabel2.setBackground(java.awt.Color.magenta);
        hLabel2.setBackgroundMode(org.havi.ui.HVisible.BACKGROUND_FILL);
        hLabel2.setFont(new java.awt.Font("Dialog", 0, 24));
        hLabel2.setLabel("Label2");
        hLabel2.setName("hLabel2");
        add(hLabel2);
        hLabel2.setBounds(10, 430, 640, 40);

    }// </editor-fold>//GEN-END:initComponents
                    
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private com.uvigo.mhp.CourseDelegate courseDelegate;
    private com.uvigo.mhp.ui.HImage hImage1;
    private com.uvigo.mhp.ui.HLabel hLabel1;
    private com.uvigo.mhp.ui.HLabel hLabel2;
    private com.uvigo.mhp.ui.HLabel hLabel3;
    private com.uvigo.mhp.ui.HPanel hPanel1;
    private com.uvigo.mhp.looks.HTextLook2 hTextLook21;
    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());
        
        Page oPage = new Simple();
        scene.add(oPage);
        
        scene.addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e) {
                System.exit(0);
            }
        }
        );
        if (!java.beans.Beans.isDesignTime()) {
            com.uvigo.tMaestro.SCO.AutoConfigurer oConfigurer = new com.uvigo.tMaestro.SCO.AutoConfigurer();
            com.uvigo.tMaestro.SCO.Adaptation oAdaptation = new com.uvigo.tMaestro.SCO.Adaptation();
            oConfigurer.configure(oPage,oAdaptation.adapt());
        }
        
        scene.setVisible(true);
        scene.validate();
    }
}
