Package Inherited

Source Code of Inherited.WhiteRussian

package Inherited;

import DisplayProject.Constants;
import DisplayProject.CursorMgr;
import DisplayProject.GridField;
import DisplayProject.UDSWindow;
import DisplayProject.UIutils;
import DisplayProject.WindowManager;
import DisplayProject.WindowUsageMap;
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.TextGraphic;
import DisplayProject.events.ClientEventManager;
import DisplayProject.factory.CompoundFieldFactory;
import DisplayProject.factory.GraphicFactory;
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.GridBagConstraints;
import java.awt.Insets;
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;

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

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

    // ------------
    // Constructors
    // ------------
    public WhiteRussian() {
        // 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 GridField qq_GridField65549;
    public GridField qq_GridField65550;
    public GridField qq_GridField65551;
    public GridField qq_GridField65552;
    public GridField qq_outer;
    public JCheckBox qq_JCheckBox65553;
    public TextGraphic qq_SomeTextLbl;

    /**
     * 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.setStartX(63);
            qq_aLine.setEndX(1958);
            qq_aLine.setStartY(63);
            qq_aLine.setEndY(115);
            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_GridField65552: transformed from: qqds_GridField
     * TagId=65552
     * isInherited=FALSE
     * In forte this was a 1x1 grid field.
     * There are no cell margins set
     * The width policy is set to Natural, and the height policy is set to Natural.
     */
    protected void setqq_GridField65552Properties() {
        qq_GridField65552.setCollapsed(true);
        qq_GridField65552.setHeightPolicy(Constants.SP_NATURAL);
        qq_GridField65552.setWidthPolicy(Constants.SP_NATURAL);
        qq_GridField65552.setBackground(null);
    }

    public GridField getqq_GridField65552() {
        if (qq_GridField65552 == null) {
            qq_GridField65552 = CompoundFieldFactory.newGridField("qq_GridField65552", true);
            setqq_GridField65552Properties();
            qq_GridField65552.setMinimumSize(new Dimension(199, 21));
            GridBagConstraints qq_gbc = new GridBagConstraints();
            qq_gbc.gridx = 0; // Column 1
            qq_gbc.gridy = 0; // Row 1
            qq_gbc.weightx = 0;
            qq_gbc.weighty = 0;
            qq_gbc.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
            qq_gbc.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
            qq_gbc.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
            qq_GridField65552.add( getqq_aLine(), qq_gbc );

        }
        return qq_GridField65552;
    }

    public void setqq_GridField65552(GridField value) {
        GridField oldValue = qq_GridField65552;
        qq_GridField65552 = value;
        this.qq_Listeners.firePropertyChange("qq_GridField65552", oldValue, value);
    }

    /**
     * qq_JCheckBox65553: transformed from: qqds_ToggleField
     * TagId=65553
     * isInherited=FALSE
     */
    public JCheckBox getqq_JCheckBox65553() {
        if (qq_JCheckBox65553 == null) {
            qq_JCheckBox65553 = ToggleFieldFactory.newToggleField("White Russian", "");
            // OPTIONAL UIutils.reloadLabelText(qq_JCheckBox65553, mcat);
        }
        return qq_JCheckBox65553;
    }

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

    /**
     * qq_GridField65551: transformed from: qqds_GridField
     * TagId=65551
     * isInherited=FALSE
     * In forte this was a 1x2 grid field.
     * There are no cell margins set
     * The width policy is set to Natural, and the height policy is set to Natural.
     */
    protected void setqq_GridField65551Properties() {
        qq_GridField65551.setCollapsed(true);
        qq_GridField65551.setHeightPolicy(Constants.SP_NATURAL);
        qq_GridField65551.setWidthPolicy(Constants.SP_NATURAL);
        qq_GridField65551.setBackground(null);
    }

    public GridField getqq_GridField65551() {
        if (qq_GridField65551 == null) {
            qq_GridField65551 = CompoundFieldFactory.newGridField("qq_GridField65551", true);
            setqq_GridField65551Properties();
            qq_GridField65551.setMinimumSize(new Dimension(203, 50));
            GridBagConstraints qq_gbc = new GridBagConstraints();
            qq_gbc.gridx = 0; // Column 1
            qq_gbc.gridy = 0; // Row 1
            qq_gbc.weightx = 0;
            qq_gbc.weighty = 0;
            qq_gbc.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
            qq_gbc.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
            qq_gbc.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
            qq_GridField65551.add( getqq_GridField65552(), qq_gbc );

            GridBagConstraints qq_gbc1 = new GridBagConstraints();
            qq_gbc1.gridx = 0; // Column 1
            qq_gbc1.gridy = 1; // Row 2
            qq_gbc1.weightx = 0;
            qq_gbc1.weighty = 0;
            qq_gbc1.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
            qq_gbc1.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
            qq_gbc1.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
            qq_GridField65551.add( getqq_JCheckBox65553(), qq_gbc1 );

        }
        return qq_GridField65551;
    }

    public void setqq_GridField65551(GridField value) {
        GridField oldValue = qq_GridField65551;
        qq_GridField65551 = value;
        this.qq_Listeners.firePropertyChange("qq_GridField65551", oldValue, value);
    }

    /**
     * qq_GridField65550: transformed from: qqds_GridField
     * TagId=65550
     * isInherited=FALSE
     * In forte this was a 1x1 grid field.
     * There are no cell margins set
     * The width policy is set to Natural, and the height policy is set to Natural.
     */
    protected void setqq_GridField65550Properties() {
        qq_GridField65550.setCollapsed(true);
        qq_GridField65550.setHeightPolicy(Constants.SP_NATURAL);
        qq_GridField65550.setWidthPolicy(Constants.SP_NATURAL);
        qq_GridField65550.setBackground(null);
    }

    public GridField getqq_GridField65550() {
        if (qq_GridField65550 == null) {
            qq_GridField65550 = CompoundFieldFactory.newGridField("qq_GridField65550", true);
            setqq_GridField65550Properties();
            qq_GridField65550.setMinimumSize(new Dimension(206, 55));
            GridBagConstraints qq_gbc = new GridBagConstraints();
            qq_gbc.gridx = 0; // Column 1
            qq_gbc.gridy = 0; // Row 1
            qq_gbc.weightx = 0;
            qq_gbc.weighty = 0;
            qq_gbc.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
            qq_gbc.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
            qq_gbc.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
            qq_GridField65550.add( getqq_GridField65551(), qq_gbc );

        }
        return qq_GridField65550;
    }

    public void setqq_GridField65550(GridField value) {
        GridField oldValue = qq_GridField65550;
        qq_GridField65550 = value;
        this.qq_Listeners.firePropertyChange("qq_GridField65550", oldValue, value);
    }

    /**
     * qq_SomeTextLbl: transformed from: qqds_TextGraphic
     * TagId=65554
     * isInherited=FALSE
     */
    public TextGraphic getqq_SomeTextLbl() {
        if (qq_SomeTextLbl == null) {
            qq_SomeTextLbl = GraphicFactory.newTextGraphic("Some text\n", "");
            // OPTIONAL UIutils.reloadLabelText(qq_SomeTextLbl, mcat);
            WidthPolicy.set(qq_SomeTextLbl, Constants.SP_NATURAL);
            HeightPolicy.set(qq_SomeTextLbl, Constants.SP_NATURAL);
            qq_SomeTextLbl.setMinimumSize(new Dimension(64, 19));
        }
        return qq_SomeTextLbl;
    }

    public void setqq_SomeTextLbl(TextGraphic value) {
        TextGraphic oldValue = qq_SomeTextLbl;
        qq_SomeTextLbl = value;
        this.qq_Listeners.firePropertyChange("qq_SomeTextLbl", oldValue, value);
    }

    /**
     * qq_GridField65549: transformed from: qqds_GridField
     * TagId=65549
     * isInherited=FALSE
     * In forte this was a 1x2 grid field.
     * There are no cell margins set
     * The width policy is set to Natural, and the height policy is set to Natural.
     */
    protected void setqq_GridField65549Properties() {
        qq_GridField65549.setCollapsed(true);
        qq_GridField65549.setHeightPolicy(Constants.SP_NATURAL);
        qq_GridField65549.setWidthPolicy(Constants.SP_NATURAL);
        qq_GridField65549.setBackground(null);
    }

    public GridField getqq_GridField65549() {
        if (qq_GridField65549 == null) {
            qq_GridField65549 = CompoundFieldFactory.newGridField("qq_GridField65549", true);
            setqq_GridField65549Properties();
            qq_GridField65549.setMinimumSize(new Dimension(211, 79));
            GridBagConstraints qq_gbc = new GridBagConstraints();
            qq_gbc.gridx = 0; // Column 1
            qq_gbc.gridy = 0; // Row 1
            qq_gbc.weightx = 0;
            qq_gbc.weighty = 0;
            qq_gbc.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
            qq_gbc.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
            qq_gbc.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
            qq_GridField65549.add( getqq_GridField65550(), qq_gbc );

            GridBagConstraints qq_gbc1 = new GridBagConstraints();
            qq_gbc1.gridx = 0; // Column 1
            qq_gbc1.gridy = 1; // Row 2
            qq_gbc1.weightx = 0;
            qq_gbc1.weighty = 0;
            qq_gbc1.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
            qq_gbc1.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
            qq_gbc1.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
            qq_GridField65549.add( getqq_SomeTextLbl(), qq_gbc1 );

        }
        return qq_GridField65549;
    }

    public void setqq_GridField65549(GridField value) {
        GridField oldValue = qq_GridField65549;
        qq_GridField65549 = value;
        this.qq_Listeners.firePropertyChange("qq_GridField65549", oldValue, value);
    }

    /**
     * qq_outer: transformed from: qqds_GridField
     * TagId=65548
     * isInherited=FALSE
     * In forte this was a 1x1 grid field.
     * There are no cell margins set
     * The width policy is set to Natural, and the height policy is set to Natural.
     */
    protected void setqq_outerProperties() {
        qq_outer.setCollapsed(true);
        qq_outer.setHeightPolicy(Constants.SP_NATURAL);
        qq_outer.setWidthPolicy(Constants.SP_NATURAL);
        qq_outer.setBackground(null);
        qq_outer.setLocation(9, 0);
    }

    public GridField getqq_outer() {
        if (qq_outer == null) {
            qq_outer = CompoundFieldFactory.newGridField("outer", false);
            setqq_outerProperties();
            qq_outer.setMinimumSize(new Dimension(215, 84));
            GridBagConstraints qq_gbc = new GridBagConstraints();
            qq_gbc.gridx = 0; // Column 1
            qq_gbc.gridy = 0; // Row 1
            qq_gbc.weightx = 0;
            qq_gbc.weighty = 0;
            qq_gbc.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
            qq_gbc.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
            qq_gbc.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
            qq_outer.add( getqq_GridField65549(), qq_gbc );

        }
        return qq_outer;
    }

    public void setqq_outer(GridField value) {
        GridField oldValue = qq_outer;
        qq_outer = value;
        this.qq_Listeners.firePropertyChange("qq_outer", 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_outer() );
        }
        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( "whiteRussian" );
            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_outer(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
        this.usage.add(getqq_GridField65549(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
        this.usage.add(getqq_GridField65550(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
        this.usage.add(getqq_GridField65551(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
        this.usage.add(getqq_GridField65552(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
        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_JCheckBox65553(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
        this.usage.add(getqq_SomeTextLbl(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
    }
    // </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);
            WhiteRussian myClass = new WhiteRussian();
            myClass.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            myClass.setVisible(true);
            UIutils.processGUIActions();
        }
// end class whiteRussian
// c Pass 2 Conversion Time: 188 milliseconds
TOP

Related Classes of Inherited.WhiteRussian

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.