Package Inherited

Source Code of Inherited.Middle

package Inherited;

import DisplayProject.Constants;
import DisplayProject.CursorMgr;
import DisplayProject.UDSWindow;
import DisplayProject.UIutils;
import DisplayProject.WindowManager;
import DisplayProject.WindowUsageMap;
import DisplayProject.actions.ColourChange;
import DisplayProject.actions.FrameColor;
import DisplayProject.actions.FrameWeight;
import DisplayProject.actions.HeightPolicy;
import DisplayProject.actions.UserWindow;
import DisplayProject.actions.WidthPolicy;
import DisplayProject.binding.BindingManager;
import DisplayProject.binding.beans.Observable;
import DisplayProject.controls.Line;
import DisplayProject.controls.Panel;
import DisplayProject.events.ClientEventManager;
import DisplayProject.factory.CompoundFieldFactory;
import DisplayProject.factory.ToggleFieldFactory;
import DisplayProject.plaf.Win32LookAndFeel;
import Framework.EventHandle;
import Framework.EventManager;
import Framework.EventRegistration;
import Framework.ForteKeyboardFocusManager;
import Framework.RuntimeProperties;
import Inherited.Top;
import java.awt.Dimension;
import java.awt.KeyboardFocusManager;
import java.io.Serializable;
import javax.swing.JCheckBox;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.ToolTipManager;
import javax.swing.UIManager;

/**
* Middle<p>
* <p>
* @author Generated from Forte
* @since  19-Nov-2008
*/
@RuntimeProperties(isDistributed=false, isAnchored=false, isShared=false, isTransactional=false)
@UDSWindow()
@SuppressWarnings("serial")
public class Middle
        extends Top
        implements Serializable, Observable
{

    // ----------
    // Attributes
    // ----------
    protected BindingManager bindingManager = null;

    // ------------
    // Constructors
    // ------------
    public Middle() {
        // Explicitly call the superclass constructor to prevent the implicit call
        super();
        this.initialize();

    }

    // ----------------------
    // Accessors and Mutators
    // ----------------------
    protected BindingManager getBindingManager() {
        if (this.bindingManager == null) {
            this.bindingManager = new BindingManager(this);
        }
        return bindingManager;
    }

    // -------
    // Methods
    // -------
    /**
     * display<p>
     * <p>
     */
    public void display() {
        UserWindow.open(this);
        // ----------
        // Event Loop
        // ----------
        EventManager.startEventLoop();
        try {
            EventRegistration TaskHandle_Shutdown_langThreadcurrentThread = ClientEventManager.register( Thread.currentThread(), "Shutdown" );

            while (true) {

                UIutils.processGUIActions();
                EventHandle qq_currentEvent = EventManager.waitForEvent();
                if (qq_currentEvent == null)
                    break;

                // -------------
                // task.Shutdown
                // -------------
                if (qq_currentEvent.isEvent(TaskHandle_Shutdown_langThreadcurrentThread)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        break;
                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }
            }
            EventManager.deregister( TaskHandle_Shutdown_langThreadcurrentThread );
        }
        //catch (Exception qq_error) {
            //Logger.getLogger("task.part.Event").error("Event loop terminated by unhandled exception: " + qq_error.getMessage(), qq_error );
            //throw qq_error;
        //}
        finally {
            EventManager.endEventLoop();
            UserWindow.close(this);
        }
    }

    // ------------------
    // Window Definitions
    // ------------------
    // <editor-fold defaultstate="collapsed" desc="Window Definitions">
    private int qq_defaultSet = 1;
    private int qq_msgNumber = 0;
    private int qq_msgSet = 0;
    public JCheckBox qq_JCheckBox65549;
    public Panel qq_Panel65548;

    /**
     * qq_aLine: transformed from: qqds_Line
     * TagId=12
     * isInherited=TRUE
     */
    public Line getqq_aLine() {
        if (qq_aLine == null) {
            super.getqq_aLine();
            qq_aLine.setName("aLine");
            qq_aLine.setOpaque( true );
        }
        return qq_aLine;
    }

    public void setqq_aLine(Line value) {
        Line oldValue = qq_aLine;
        qq_aLine = value;
        this.qq_Listeners.firePropertyChange("qq_aLine", oldValue, value);
    }

    /**
     * qq_JCheckBox65549: transformed from: qqds_ToggleField
     * TagId=65549
     * isInherited=FALSE
     */
    public JCheckBox getqq_JCheckBox65549() {
        if (qq_JCheckBox65549 == null) {
            qq_JCheckBox65549 = ToggleFieldFactory.newToggleField("Toggle", "");
            // OPTIONAL UIutils.reloadLabelText(qq_JCheckBox65549, mcat);
            qq_JCheckBox65549.setLocation(9, 97);
        }
        return qq_JCheckBox65549;
    }

    public void setqq_JCheckBox65549(JCheckBox value) {
        JCheckBox oldValue = qq_JCheckBox65549;
        qq_JCheckBox65549 = value;
        this.qq_Listeners.firePropertyChange("qq_JCheckBox65549", oldValue, value);
    }

    /**
     * qq_Panel65548: transformed from: qqds_Panel
     * TagId=65548
     * isInherited=FALSE
     */
    protected void setqq_Panel65548Properties() {
        FrameWeight.set(qq_Panel65548, Constants.W_DEFAULT);
        FrameColor.set(qq_Panel65548, Constants.C_INHERIT);
        HeightPolicy.set(qq_Panel65548, Constants.SP_EXPLICIT);
        WidthPolicy.set(qq_Panel65548, Constants.SP_EXPLICIT);
        ColourChange.setBackground(qq_Panel65548, Constants.C_BRIGHTYELLOW);
        qq_Panel65548.setLocation(71, 13);
    }

    public Panel getqq_Panel65548() {
        if (qq_Panel65548 == null) {
            qq_Panel65548 = CompoundFieldFactory.newPanel("qq_Panel65548");
            setqq_Panel65548Properties();
            qq_Panel65548.setMinimumSize(new Dimension(170, 199));
            qq_Panel65548.setSize(new Dimension(170, 199));
            qq_Panel65548.add( getqq_JCheckBox65549() );
        }
        return qq_Panel65548;
    }

    public void setqq_Panel65548(Panel value) {
        Panel oldValue = qq_Panel65548;
        qq_Panel65548 = value;
        this.qq_Listeners.firePropertyChange("qq_Panel65548", oldValue, value);
    }

    /**
     * Form: transformed from: qqds_Panel
     * TagId=1
     * isInherited=FALSE
     */
    protected void setFormProperties() {
        super.setFormProperties();
    }

    public JPanel getForm() {
        if (Form == null) {
            Form = CompoundFieldFactory.newForm();
            this.setFormProperties();
            Form.add( getqq_Panel65548() );
            Form.add( getqq_aLine() );
        }
        return Form;
    }

    public void setForm(JPanel value) {
        JPanel oldValue = Form;
        Form = value;
        this.qq_Listeners.firePropertyChange("Form", oldValue, value);
    }

    /**
     * Gets the default message set number for the window and its widgets.
     */
    public int getSetNum() {
        return this.qq_defaultSet;
    }

    /**
     * Sets the default message set number for the window and its widgets.
     */
    public void setSetNum(int value) {
        this.qq_defaultSet = value;
    }

    /**
     * Gets the message set number for the message number of the window's title.
     */
    public int getTitleSetNum() {
        return this.qq_msgSet;
    }

    /**
     * Sets the message set number for the message number of the window's title.
     */
    public void setTitleSetNum(int value) {
        this.qq_msgSet = value;
    }

    /**
     * Gets the message number for the message number of the window's title.
     */
    public int getTitleMsgNum() {
        return this.qq_msgNumber;
    }

    /**
     * Sets the message number for the message number of the window's title.
     */
    public void setTitleMsgNum(int value) {
        this.qq_msgNumber = value;
    }



    /**
     * Initialise the window and all its children.
     */
    protected void initialize() {
        if (this.Form == null) {
            this.setName( "middle" );
            this.setTitle( "" );
            this.setSystemClosePolicy(Constants.SC_ENABLEDSHUTDOWN);
            if (this.getContentPane() != this.getForm()) {
                this.setContentPane(getForm());
            }
            this.qq_setupWindowUsage();
            this.setResizable( false );
            this.setAlwaysOnTop(false);
            UserWindow.setIconizeEnabled(this, true);
            WindowManager.addWindowListener(this);
            this.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
            this.setUsage(DisplayProject.Constants.WU_UPDATE);
            UIutils.processGUIActions();
            this.pack();
            this.setInitialX(0);
            this.setInitialY(0);
            this.setInitialPositionPolicy(Constants.PP_SYSTEMDEFAULT);
        }
    }


    // ----------------
    //  Window usage
    //-----------------
    public void qq_setupWindowUsage() {
        this.usage = new WindowUsageMap();
        this.usage.add(getqq_aLine(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
        this.usage.add(getqq_Panel65548(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
        this.usage.add(getqq_JCheckBox65549(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
    }
    // </editor-fold>

    // -----------
    // Main method
    // -----------
        public static void main(String []args) {
            KeyboardFocusManager.setCurrentKeyboardFocusManager(new ForteKeyboardFocusManager());
            try {
                UIManager.setLookAndFeel(new Win32LookAndFeel());
            }
            catch (Exception e) {}
            ToolTipManager.sharedInstance().setDismissDelay(Integer.MAX_VALUE);
            Middle myClass = new Middle();
            myClass.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            myClass.setVisible(true);
            UIutils.processGUIActions();
        }
// end class middle
// c Pass 2 Conversion Time: 187 milliseconds
TOP

Related Classes of Inherited.Middle

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.