Package ArrayWithDropLists

Source Code of ArrayWithDropLists.Main

package ArrayWithDropLists;

import ArrayWithDropLists.Array_Of_Person;
import ArrayWithDropLists.Person;
import DisplayProject.ArrayColumn;
import DisplayProject.ArrayListModel;
import DisplayProject.CloseHideAdaptor;
import DisplayProject.Constants;
import DisplayProject.CursorMgr;
import DisplayProject.DataField;
import DisplayProject.GridField;
import DisplayProject.TableJButton;
import DisplayProject.UDSWindow;
import DisplayProject.UIutils;
import DisplayProject.WindowManager;
import DisplayProject.WindowUsageMap;
import DisplayProject.actions.AppletConnectionInfo;
import DisplayProject.actions.CommandType;
import DisplayProject.actions.DateTemplate;
import DisplayProject.actions.FrameColor;
import DisplayProject.actions.HeightPolicy;
import DisplayProject.actions.TableRow;
import DisplayProject.actions.UserWindow;
import DisplayProject.actions.WidthPolicy;
import DisplayProject.binding.BindingManager;
import DisplayProject.binding.beans.ExtendedPropertyChangeSupport;
import DisplayProject.binding.beans.Observable;
import DisplayProject.controls.ArrayField;
import DisplayProject.controls.DropList;
import DisplayProject.controls.FillInField;
import DisplayProject.events.ClientEventManager;
import DisplayProject.factory.CompoundFieldFactory;
import DisplayProject.factory.DataFieldFactory;
import DisplayProject.factory.DropFillinFactory;
import DisplayProject.factory.MenuFactory;
import DisplayProject.factory.PushButtonFactory;
import DisplayProject.factory.TableFactory;
import DisplayProject.plaf.Win32LookAndFeel;
import DisplayProject.table.ArrayFieldCellHelper;
import DisplayProject.table.ButtonCellEditor;
import DisplayProject.table.ButtonCellRenderer;
import DisplayProject.table.ComboBoxCellRenderer;
import DisplayProject.table.FillInFieldCellEditor;
import DisplayProject.table.FillInFieldCellRenderer;
import DisplayProject.table.FormattedCellEditor;
import DisplayProject.table.FormattedCellRenderer;
import Framework.Array_Of_ListElement;
import Framework.DateTimeData;
import Framework.ErrorMgr;
import Framework.EventHandle;
import Framework.EventManager;
import Framework.EventRegistration;
import Framework.File;
import Framework.ForteKeyboardFocusManager;
import Framework.FrameworkUtils;
import Framework.ListElement;
import Framework.RuntimeProperties;
import Framework.TextData;
import Framework.UsageException;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import java.awt.KeyboardFocusManager;
import java.awt.Window;
import java.awt.event.ComponentListener;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.Serializable;
import java.lang.String;
import java.net.MalformedURLException;
import java.net.URL;
import javax.swing.BorderFactory;
import javax.swing.JCheckBoxMenuItem;
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.UIManager;

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

    // ----------
    // Attributes
    // ----------
    protected File DefaultHelpFile;
    protected BindingManager bindingManager = null;
    public PropertyChangeSupport qq_Listeners = new ExtendedPropertyChangeSupport(this, true);
    private Array_Of_Person<Person> people;
    private String one;
    private String two;
    private boolean allowsAppend;

    // ------------
    // Constructors
    // ------------
    public Main() {
        // Explicitly call the superclass constructor to prevent the implicit call
        super();
        this.initialize();
        this.setPeople(new Array_Of_Person<Person>());

    }

    // ----------------------
    // Accessors and Mutators
    // ----------------------
    public File getDefaultHelpFile() {
        return DefaultHelpFile;
    }

    public void setDefaultHelpFile(File defaultHelpFile) {
        DefaultHelpFile = defaultHelpFile;
        UserWindow.createHelp(this, defaultHelpFile);
    }

    public void setHelpURL(String urlString) {
        try {
            URL url = new URL(urlString);
            UserWindow.createHelp(this, url);
        } catch (MalformedURLException e) {
            UsageException err = new UsageException("Cannot create help URL", e);
            ErrorMgr.addError(err);
            throw err;
        }
    }

    protected BindingManager getBindingManager() {
        if (this.bindingManager == null) {
            this.bindingManager = new BindingManager(this);
        }
        return bindingManager;
    }

    public void setPeople(Array_Of_Person<Person> people) {
        Array_Of_Person<Person> oldValue = this.people;
        this.people = people;
        this.qq_Listeners.firePropertyChange("people", oldValue, this.people);
    }

    public Array_Of_Person<Person> getPeople() {
        return this.people;
    }

    public void setOne(String one) {
        String oldValue = this.one;
        this.one = one;
        this.qq_Listeners.firePropertyChange("one", oldValue, this.one);
    }

    public String getOne() {
        return this.one;
    }

    public void setTwo(String two) {
        String oldValue = this.two;
        this.two = two;
        this.qq_Listeners.firePropertyChange("two", oldValue, this.two);
    }

    public String getTwo() {
        return this.two;
    }

    public void setAllowsAppend(boolean allowsAppend) {
        boolean oldValue = this.allowsAppend;
        this.allowsAppend = allowsAppend;
        this.qq_Listeners.firePropertyChange("allowsAppend", oldValue, this.allowsAppend);
    }

    public boolean getAllowsAppend() {
        return this.allowsAppend;
    }

    // -------
    // Methods
    // -------
    public void addPropertyChangeListener(String property, PropertyChangeListener listener) {
        qq_Listeners.addPropertyChangeListener(property, listener);
    }

    public void addPropertyChangeListener(PropertyChangeListener listener) {
        qq_Listeners.addPropertyChangeListener(listener);
    }

    public void removePropertyChangeListener(String property, PropertyChangeListener listener) {
        qq_Listeners.removePropertyChangeListener(property, listener);
    }

    public void removePropertyChangeListener(PropertyChangeListener listener) {
        qq_Listeners.removePropertyChangeListener(listener);
    }

    /**
     * display<p>
     * <p>
     */
    public void display() {
        UserWindow.open(this);

        // ----------
        // Event Loop
        // ----------
        EventManager.startEventLoop();
        try {
            EventRegistration TaskHandle_Shutdown_langThreadcurrentThread = ClientEventManager.register( Thread.currentThread(), "Shutdown" );
            EventRegistration DropList_AfterValueChange_getqq_peopleArray_Department = ClientEventManager.register( this.getqq_peopleArray_Department(), "AfterValueChange" );
            EventRegistration MenuToggle_AfterValueChange_getqq_AllowsAppend = ClientEventManager.register( this.getqq_AllowsAppend(), "AfterValueChange" );
            EventRegistration MenuCommand_Activate_getqq_doPopulate = ClientEventManager.register( this.getqq_doPopulate(), "Activate" );

            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();
                    }
                }

                // ---------------------------------------
                // <people[*].Department>.AfterValueChange
                // ---------------------------------------
                else if (qq_currentEvent.isEvent(DropList_AfterValueChange_getqq_peopleArray_Department)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        int row = TableRow.get(this.getqq_people());
                        String dep = this.getPeople().get(row-1).getDepartment();
                        //dl : fillinfield = (fillinfield)(<people>.BodyGrid.GetChildInCell(row, 3));
                        //populateList(dl, dep);
                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // -------------------------------
                // <AllowsAppend>.AfterValueChange
                // -------------------------------
                else if (qq_currentEvent.isEvent(MenuToggle_AfterValueChange_getqq_AllowsAppend)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        ((ArrayListModel)this.getqq_people().getModel()).setAllowsAppend(this.getAllowsAppend());

                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // ---------------------
                // <doPopulate>.activate
                // ---------------------
                else if (qq_currentEvent.isEvent(MenuCommand_Activate_getqq_doPopulate)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        this.populate();
                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }
            }
            EventManager.deregister( TaskHandle_Shutdown_langThreadcurrentThread );
            EventManager.deregister( DropList_AfterValueChange_getqq_peopleArray_Department );
            EventManager.deregister( MenuToggle_AfterValueChange_getqq_AllowsAppend );
            EventManager.deregister( MenuCommand_Activate_getqq_doPopulate );
        }
        //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);
        }
    }

    /**
     * populate<p>
     * <p>
     */
    public void populate() {
        Person p = new Person();
        p.setName("bob");
        p.setSize(3);
        p.setDepartment("Sales");
        this.getPeople().add(p);

        p = new Person();
        p.setName("jill");
        p.setSize(7);
        p.setDepartment("Technical");
        this.getPeople().add(p);
    }

    /**
     * populateList<p>
     * <p>
     * @param pDropList Type: FillInField
     * @param pDepartment Type: String
     */
    public void populateList(FillInField pDropList, String pDepartment) {
        Array_Of_ListElement<ListElement> listElements = new Array_Of_ListElement<ListElement>();
        if ("Sales".equals(pDepartment)) {
            listElements.add(new ListElement(1, new TextData("Darts"), ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE));
            listElements.add(new ListElement(2, new TextData("Ping pong"), ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE));
        }
        else if ("Technical".equals(pDepartment)) {
            listElements.add(new ListElement(1, new TextData("Tenis"), ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE));
            listElements.add(new ListElement(2, new TextData("Cricket"), ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE));
        }
        else if ("Administration".equals(pDepartment)) {
            listElements.add(new ListElement(1, new TextData("Swimming"), ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE));
            listElements.add(new ListElement(2, new TextData("Basket Ball"), ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE));
        }
        pDropList.setElementList(listElements);
    }

    // ------------------
    // Window Definitions
    // ------------------
    // <editor-fold defaultstate="collapsed" desc="Window Definitions">
    private int qq_defaultSet = 1;
    private int qq_msgNumber = 0;
    private int qq_msgSet = 0;
    protected Window primaryWindow = null;
    protected int initialX;
    protected int initialY;
    protected int qq_SystemClosePolicy = Constants.SC_ENABLEDSHUTDOWN;
    protected int qq_initialPositionPolicy = Constants.PP_SYSTEMDEFAULT;
    public ArrayField qq_people;
    public DataField qq_One;
    public DataField qq_Two;
    public DataField qq_peopleArray_Name;
    public DataField qq_peopleArray_date;
    public DataField qq_peopleArray_size;
    public DropList qq_peopleArray_Department;
    public FillInField qq_peopleArray_Skill;
    public GridField qq_GridField27;
    public JCheckBoxMenuItem qq_AllowsAppend;
    public JMenu qq_MainMenu;
    public JMenuBar qq_MainMenuBar;
    public JMenuItem qq_doPopulate;
    public JPanel Form;
    public JScrollPane qq_people_sp;
    public TableJButton qq_peopleArray_but;

    /**
     * qq_AllowsAppend: transformed from: qqds_MenuToggle
     */
    public JCheckBoxMenuItem getqq_AllowsAppend() {
        if (qq_AllowsAppend == null) {
            qq_AllowsAppend = MenuFactory.newMenuToggle("AllowsAppend");
            getBindingManager().bindComponent(qq_AllowsAppend, "allowsAppend");
            this.qq_AllowsAppend.setText("Allows Append");
            this.qq_AllowsAppend.setVisible(true);
            this.qq_AllowsAppend.setState(false);
        }
        return qq_AllowsAppend;
    }

    public void setqq_AllowsAppend(JCheckBoxMenuItem value) {
        JCheckBoxMenuItem oldValue = qq_AllowsAppend;
        qq_AllowsAppend = value;
        this.qq_Listeners.firePropertyChange("qq_AllowsAppend", oldValue, value);
    }


    /**
     * qq_doPopulate: transformed from: qqds_MenuCommand
     */
    public JMenuItem getqq_doPopulate() {
        if (qq_doPopulate == null) {
            qq_doPopulate = MenuFactory.newMenuItem("doPopulate", true);
            qq_doPopulate.setVerifyInputWhenFocusTarget(true);
            CommandType.set(qq_doPopulate, Constants.CT_CUSTOM);
            qq_doPopulate.setText( "Populate" );
            qq_doPopulate.setVisible(true);
        }
        return qq_doPopulate;
    }

    public void setqq_doPopulate(JMenuItem value) {
        JMenuItem oldValue = qq_doPopulate;
        qq_doPopulate = value;
        this.qq_Listeners.firePropertyChange("qq_doPopulate", oldValue, value);
    }


    /**
     * qq_MainMenu: transformed from: qqds_Submenu
     */
    public JMenu getqq_MainMenu() {
        if (qq_MainMenu == null) {
            qq_MainMenu = new JMenu();
            qq_MainMenu.setName("MainMenu");
            qq_MainMenu.setText( "Main" );
            qq_MainMenu.setVisible(true);
            qq_MainMenu.add(getqq_AllowsAppend());
            qq_MainMenu.add(getqq_doPopulate());
        }
        return qq_MainMenu;
    }


    /**
     * qq_MainMenuBar: transformed from: qqds_MenuBar
     */
    public JMenuBar getqq_MenuBar() {
        if (qq_MainMenuBar == null) {
            qq_MainMenuBar = MenuFactory.newMenuBar();
            qq_MainMenuBar.setName("MainMenuBar");
            qq_MainMenuBar.setBorderPainted(false);
            this.qq_MainMenuBar.add(getqq_MainMenu());
        }
        return qq_MainMenuBar;
    }

    public void setqq_MainMenuBar(JMenuBar value) {
        JMenuBar oldValue = qq_MainMenuBar;
        qq_MainMenuBar = value;
        this.qq_Listeners.firePropertyChange("qq_MainMenuBar", oldValue, value);
    }


    /**
     * qq_One: transformed from: qqds_DataField
     * TagId=28
     * isInherited=FALSE
     */
    public DataField getqq_One() {
        if (qq_One == null) {
            // Mask type: MK_NONE
            qq_One = DataFieldFactory.newDataField("One", 20, Constants.MK_NONE);
            qq_One.setOriginalFormatText(null);
            qq_One.setHorizontalAlignment(JTextField.LEFT);
            getBindingManager().bindComponent(qq_One, "one");
            WidthPolicy.set(qq_One, Constants.SP_EXPLICIT);
            HeightPolicy.set(qq_One, Constants.SP_NATURAL);
            qq_One.setMinimumSize(new Dimension(155, 24));
            qq_One.setSize(new Dimension(155, 24));
        }
        return qq_One;
    }

    public void setqq_One(DataField value) {
        DataField oldValue = qq_One;
        qq_One = value;
        this.qq_Listeners.firePropertyChange("qq_One", oldValue, value);
    }

    /**
     * qq_people_sp: transformed from: qqds_ArrayField
     * TagId=12
     * isInherited=FALSE
     */
    public JScrollPane getqq_people_sp() {
        if (qq_people_sp == null) {
            qq_people_sp = CompoundFieldFactory.newScrollPane();
            qq_people_sp.setName("people");
            qq_people_sp.setViewportView(getqq_people());
            qq_people_sp.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
            qq_people_sp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
            qq_people_sp.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));
            qq_people_sp.setBackground(null);
            qq_people_sp.getViewport().setBackground(null);
            FrameColor.set(qq_people_sp, Constants.C_INHERIT);
            WidthPolicy.set(qq_people_sp, Constants.SP_NATURAL);
            HeightPolicy.set(qq_people_sp, Constants.SP_NATURAL);
            // OPTIONAL qq_people_sp.setSize(new Dimension(571, 112));
            qq_people_sp.setMinimumSize(new Dimension(571, 112));
            qq_people_sp.setPreferredSize(new Dimension(571, 112));
        }
        return qq_people_sp;
    }

    public void setqq_people_sp(JScrollPane value) {
        JScrollPane oldValue = qq_people_sp;
        qq_people_sp = value;
        this.qq_Listeners.firePropertyChange("qq_people_sp", oldValue, value);
    }

    /**
     * qq_people: transformed from: qqds_ArrayField
     * TagId=12
     * isInherited=FALSE
     */
    public ArrayField getqq_people() {
        if (qq_people == null) {
            qq_people = TableFactory.newArrayField("people", 28);
            this.getBindingManager().bindComponent(qq_people, "people", Person.class,
                    new String[] { "name",
                                "size",
                                "department",
                                "",
                                "skill",
                                "date" });
            qq_people.setVisibleRows(3);

            //  === Column model setup ===

            // Name converted from qqds_DataField
            ArrayColumn qq_peopleArray_Name_Column = new ArrayColumn("Name", 0, 143, new FormattedCellRenderer(getqq_peopleArray_Name()), new FormattedCellEditor(getqq_peopleArray_Name()), true);
            qq_peopleArray_Name_Column.setHeaderValue("Name");
            qq_peopleArray_Name_Column.setVisible(true);
            qq_people.addColumn(qq_peopleArray_Name_Column);

            // size converted from qqds_DataField
            ArrayColumn qq_peopleArray_size_Column = new ArrayColumn("size", 1, 66, new FormattedCellRenderer(getqq_peopleArray_size()), new FormattedCellEditor(getqq_peopleArray_size()), true);
            qq_peopleArray_size_Column.setHeaderValue("Size");
            qq_peopleArray_size_Column.setVisible(true);
            qq_people.addColumn(qq_peopleArray_size_Column);

            // Department converted from qqds_DropList
            ArrayColumn qq_peopleArray_Department_Column = new ArrayColumn("Department", 2, getqq_peopleArray_Department().getMinimumSize().width, new ComboBoxCellRenderer(getqq_peopleArray_Department()), DropFillinFactory.newDropListEditor(getqq_peopleArray_Department()), true);
            qq_peopleArray_Department_Column.setHeaderValue("Department");
            qq_peopleArray_Department_Column.setVisible(true);
            qq_people.addColumn(qq_peopleArray_Department_Column);

            // but converted from qqds_PushButton
            ArrayColumn qq_peopleArray_but_Column = new ArrayColumn("but", 3, 30, new ButtonCellRenderer(getqq_peopleArray_but()), new ButtonCellEditor(getqq_peopleArray_but()), true);
            qq_peopleArray_but_Column.setHeaderValue(" ");
            qq_peopleArray_but_Column.setVisible(true);
            qq_people.addColumn(qq_peopleArray_but_Column);

            // Skill converted from qqds_FillInField
            ArrayColumn qq_peopleArray_Skill_Column = new ArrayColumn("Skill", 4, getqq_peopleArray_Skill().getMinimumSize().width, new FillInFieldCellRenderer(getqq_peopleArray_Skill()), new FillInFieldCellEditor(getqq_peopleArray_Skill()), true);
            qq_peopleArray_Skill_Column.setHeaderValue("Skill");
            qq_peopleArray_Skill_Column.setVisible(true);
            qq_people.addColumn(qq_peopleArray_Skill_Column);

            // date converted from qqds_DataField
            ArrayColumn qq_peopleArray_date_Column = new ArrayColumn("date", 5, 100, new FormattedCellRenderer(getqq_peopleArray_date()), new FormattedCellEditor(getqq_peopleArray_date()), true);
            qq_peopleArray_date_Column.setHeaderValue("Date");
            qq_peopleArray_date_Column.setVisible(true);
            qq_people.addColumn(qq_peopleArray_date_Column);

            //  === End column model ===

            TableFactory.postModelArrayField(qq_people);
        }
        return qq_people;
    }

    public void setqq_people(ArrayField value) {
        ArrayField oldValue = qq_people;
        qq_people = value;
        this.qq_Listeners.firePropertyChange("qq_people", oldValue, value);
    }

    /**
     * qq_Two: transformed from: qqds_DataField
     * TagId=29
     * isInherited=FALSE
     */
    public DataField getqq_Two() {
        if (qq_Two == null) {
            // Mask type: MK_NONE
            qq_Two = DataFieldFactory.newDataField("Two", 20, Constants.MK_NONE);
            qq_Two.setOriginalFormatText(null);
            qq_Two.setHorizontalAlignment(JTextField.LEFT);
            getBindingManager().bindComponent(qq_Two, "two");
            WidthPolicy.set(qq_Two, Constants.SP_EXPLICIT);
            HeightPolicy.set(qq_Two, Constants.SP_NATURAL);
            qq_Two.setMinimumSize(new Dimension(155, 24));
            qq_Two.setSize(new Dimension(155, 24));
        }
        return qq_Two;
    }

    public void setqq_Two(DataField value) {
        DataField oldValue = qq_Two;
        qq_Two = value;
        this.qq_Listeners.firePropertyChange("qq_Two", oldValue, value);
    }

    /**
     * qq_GridField27: transformed from: qqds_GridField
     * TagId=27
     * isInherited=FALSE
     * In forte this was a 1x3 grid field.
     * The cell margins are all 100 mils
     * The width policy is set to Natural, and the height policy is set to Natural.
     */
    protected void setqq_GridField27Properties() {
        qq_GridField27.setCellTopMargin(50);
        qq_GridField27.setCellBottomMargin(50);
        qq_GridField27.setCellLeftMargin(50);
        qq_GridField27.setCellRightMargin(50);
        qq_GridField27.setCellGravity(Constants.CG_MIDDLELEFT);
        qq_GridField27.setCollapsed(true);
        qq_GridField27.setHeightPolicy(Constants.SP_NATURAL);
        qq_GridField27.setWidthPolicy(Constants.SP_NATURAL);
        qq_GridField27.setBackground(null);
        qq_GridField27.setLocation(7, 11);
    }

    public GridField getqq_GridField27() {
        if (qq_GridField27 == null) {
            qq_GridField27 = CompoundFieldFactory.newGridField("qq_GridField27", true);
            setqq_GridField27Properties();
            qq_GridField27.setMinimumSize(new Dimension(590, 201));
            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.WEST; // Gravity - original: CG_MIDDLELEFT gf
            qq_gbc.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
            qq_gbc.insets = new Insets(4, 4, 4, 4); // Top, Left, Bottom, Right Margin
            qq_GridField27.add( getqq_One(), 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.WEST; // Gravity - original: CG_MIDDLELEFT gf
            qq_gbc1.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
            qq_gbc1.insets = new Insets(4, 4, 4, 4); // Top, Left, Bottom, Right Margin
            qq_GridField27.add( getqq_people_sp(), qq_gbc1 );

            GridBagConstraints qq_gbc2 = new GridBagConstraints();
            qq_gbc2.gridx = 0; // Column 1
            qq_gbc2.gridy = 2; // Row 3
            qq_gbc2.weightx = 0;
            qq_gbc2.weighty = 0;
            qq_gbc2.anchor = GridBagConstraints.WEST; // Gravity - original: CG_MIDDLELEFT gf
            qq_gbc2.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
            qq_gbc2.insets = new Insets(4, 4, 4, 4); // Top, Left, Bottom, Right Margin
            qq_GridField27.add( getqq_Two(), qq_gbc2 );

        }
        return qq_GridField27;
    }

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

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

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

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

    /**
     * Gets the system close policy
     *
     * The SystemClosePolicy property determines how a window responds to user attempts to close it by using the native window system through the window close box or a window system menu command.
     * SystemClosePolicy responds to window closure attempts according to the following parameters:
     * <li>Constants.SC_DISABLED  Does not allow window closure through window system.</li>
     * <li>Constants.SC_ENABLEDNOFINALIZE  Window can be closed, but the contents are not verified, guaranteeing that the window will close (for example, the user clicks the Cancel button).</li>
     * <li>Constants.SC_ENABLEDFINALIZE  Posts the RequestFinalize method on the window, with a reason code of zero.</li>
     * <li>Constants.SC_ENABLEDSHUTDOWN  Posts Shutdown event to window�s task and to all tasks started by that task. This is the default value.</li>
     */
    public int getSystemClosePolicy() {
        return qq_SystemClosePolicy;
    }

    /**
     * Sets the system close policy
     *
     * The SystemClosePolicy property determines how a window responds to user attempts to close it by using the native window system through the window close box or a window system menu command.
     * SystemClosePolicy responds to window closure attempts according to the following parameters:
     * <li>Constants.SC_DISABLED  Does not allow window closure through window system.</li>
     * <li>Constants.SC_ENABLEDNOFINALIZE  Window can be closed, but the contents are not verified, guaranteeing that the window will close (for example, the user clicks the Cancel button).</li>
     * <li>Constants.SC_ENABLEDFINALIZE  Posts the RequestFinalize method on the window, with a reason code of zero.</li>
     * <li>Constants.SC_ENABLEDSHUTDOWN  Posts Shutdown event to window�s task and to all tasks started by that task. This is the default value.</li>
     */
    public void setSystemClosePolicy(int policy) {
        this.qq_SystemClosePolicy = policy;
        if (policy == Constants.SC_DISABLED) {
            this.addComponentListener(new CloseHideAdaptor(this));
        } else {
            for (ComponentListener cl : this.getComponentListeners()) {
                if (cl instanceof CloseHideAdaptor) {
                    this.removeComponentListener(cl);
                    break;
                }
            }
        }
    }

    /**
     * Gets the initial position policy
     *
     * The InitialPositionPolicy property sets the position of a main window when it is first displayed, relative to a primary window or the screen.
     * You use the InitialPositionPolicy property in conjunction with the InitialX, InitialY properties.
     * InitialPositionPolicy sets the position of a window according to the following values:
     * <li>Constants.PP_SYSTEMDEFAULT    Accepts the default window system placement specification.</li>
     * <li>Constants.PP_PRIMARYCENTERED  Centers the window relative to the window specified as the PrimaryWindow property.</li>
     * <li>Constants.PP_PRIMARYRELATIVE  Positions the window relative to the primary window, using the PrimaryWindow, InitialX and InitialY attributes.</li>
     * <li>Constants.PP_SCREENCENTERED  Centers the window relative to the screen.</li>
     * <li>Constants.PP_SCREENRELATIVE  Positions the window relative to the screen, using the InitialX and InitialY properties.</li>
     */
    public int getInitialPositionPolicy() {
        return qq_initialPositionPolicy;
    }

    /**
     * Sets the initial position policy
     *
     * The InitialPositionPolicy property sets the position of a main window when it is first displayed, relative to a primary window or the screen.
     * You use the InitialPositionPolicy property in conjunction with the InitialX, InitialY properties.
     * InitialPositionPolicy sets the position of a window according to the following values:
     * <li>Constants.PP_SYSTEMDEFAULT    Accepts the default window system placement specification.</li>
     * <li>Constants.PP_PRIMARYCENTERED  Centers the window relative to the window specified as the PrimaryWindow property.</li>
     * <li>Constants.PP_PRIMARYRELATIVE  Positions the window relative to the primary window, using the PrimaryWindow, InitialX and InitialY attributes.</li>
     * <li>Constants.PP_SCREENCENTERED  Centers the window relative to the screen.</li>
     * <li>Constants.PP_SCREENRELATIVE  Positions the window relative to the screen, using the InitialX and InitialY properties.</li>
     */
    public void setInitialPositionPolicy(int policy) {
        this.qq_initialPositionPolicy = policy;
    }

    /**
     * Gets the primary window
     *
     * The primary window property designates a window, known as a primary window, to serve as an initial position reference for the current window.
     * When a main window first realizes itself through the Open method on the UserWindow, it assumes a position according to the InitialPositionPolicy attribute.
     * When the InitialPositionPolicy property is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_PRIMARYCENTERED (centered on the primary window),
     * the window realizes itself in a position relative to the designated primary window.<p>
     * <p>
     * To take a position relative to the primary window, a window uses the PrimaryWindow attribute in conjunction with the InitialX and InitialY properties, which specify the window�s horizontal and vertical coordinates.
     */
    public Window getPrimaryWindow() {
        return this.primaryWindow;
    }

    /**
     * Sets the primary window
     *
     * The primary window property designates a window, known as a primary window, to serve as an initial position reference for the current window.
     * When a main window first realizes itself through the Open method on the UserWindow, it assumes a position according to the InitialPositionPolicy attribute.
     * When the InitialPositionPolicy property is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_PRIMARYCENTERED (centered on the primary window),
     * the window realizes itself in a position relative to the designated primary window.<p>
     * <p>
     * To take a position relative to the primary window, a window uses the PrimaryWindow attribute in conjunction with the InitialX and InitialY properties, which specify the window�s horizontal and vertical coordinates.
     */
    public void setPrimaryWindow(Window value) {
        this.primaryWindow = value;
    }

    /**
     * Gets the InitialX value
     *
     * The InitialX property (integer) is the window�s initial horizontal screen position, relative to a primary window or the screen. It is specified in mils.
     * InitialX applies only to main windows and only when a window�s InitialPositionPolicy attribute is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_SCREENRELATIVE (relative to the screen).
     * InitialX, and its corollary, InitialY, work in conjunction with the PrimaryWindow and InitialPositionPolicy attributes to determine the position of a main window when it is first realized.
     */
    public int getInitialX() {
        return initialX;
    }

    /**
     * Sets the InitialX value
     *
     * The InitialX property (integer) is the window�s initial horizontal screen position, relative to a primary window or the screen. It is specified in mils.
     * InitialX applies only to main windows and only when a window�s InitialPositionPolicy attribute is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_SCREENRELATIVE (relative to the screen).
     * InitialX, and its corollary, InitialY, work in conjunction with the PrimaryWindow and InitialPositionPolicy attributes to determine the position of a main window when it is first realized.
     */
    public void setInitialX(int value) {
        this.initialX = value;
    }

    /**
     * Gets the InitialY value
     *
     * The InitialY property (integer) is the window�s initial vertical screen position, relative to a primary window or the screen. It is specified in mils.
     * InitialY applies only to main windows and only when a window�s InitialPositionPolicy attribute is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_SCREENRELATIVE (relative to the screen).
     * InitialY, and its corollary, InitialX, work in conjunction with the PrimaryWindow and InitialPositionPolicy attributes to determine the position of a main window when it is first realized.
     */
    public int getInitialY() {
        return initialY;
    }

    /**
     * Sets the InitialY value
     *
     * The InitialY property (integer) is the window�s initial vertical screen position, relative to a primary window or the screen. It is specified in mils.
     * InitialY applies only to main windows and only when a window�s InitialPositionPolicy attribute is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_SCREENRELATIVE (relative to the screen).
     * InitialY, and its corollary, InitialX, work in conjunction with the PrimaryWindow and InitialPositionPolicy attributes to determine the position of a main window when it is first realized.
     */
    public void setInitialY(int value) {
        this.initialY = 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;
    }


    /**
     * qq_peopleArray_Name: transformed from: qqds_DataField
     * TagId=13
     * isInherited=FALSE
     */
    public DataField getqq_peopleArray_Name() {
        if (qq_peopleArray_Name == null) {
            // Mask type: MK_NONE
            qq_peopleArray_Name = DataFieldFactory.newDataField("Name", 19, Constants.MK_NONE);
            qq_peopleArray_Name.setOriginalFormatText(null);
            qq_peopleArray_Name.setHorizontalAlignment(JTextField.LEFT);
            WidthPolicy.set(qq_peopleArray_Name, Constants.SP_EXPLICIT);
            HeightPolicy.set(qq_peopleArray_Name, Constants.SP_NATURAL);
            qq_peopleArray_Name.setMinimumSize(new Dimension(143, 24));
            qq_peopleArray_Name.setSize(new Dimension(143, 24));
            qq_peopleArray_Name.setLocation(21, 23);
            ArrayFieldCellHelper.setUpCellEditor(qq_peopleArray_Name, qq_people, 0, false);
        }
        return qq_peopleArray_Name;
    }

    public void setqq_peopleArray_Name(DataField value) {
        DataField oldValue = qq_peopleArray_Name;
        qq_peopleArray_Name = value;
        this.qq_Listeners.firePropertyChange("qq_peopleArray_Name", oldValue, value);
    }

    /**
     * qq_peopleArray_size: transformed from: qqds_DataField
     * TagId=21
     * isInherited=FALSE
     */
    public DataField getqq_peopleArray_size() {
        if (qq_peopleArray_size == null) {
            // Mask type: Constants.MK_INTEGER
            qq_peopleArray_size = DataFieldFactory.newDataField("size", 20, Constants.MK_INTEGER);
            qq_peopleArray_size.setOriginalFormatText(null);
            qq_peopleArray_size.setHorizontalAlignment(JTextField.RIGHT);
            WidthPolicy.set(qq_peopleArray_size, Constants.SP_EXPLICIT);
            HeightPolicy.set(qq_peopleArray_size, Constants.SP_NATURAL);
            qq_peopleArray_size.setMinimumSize(new Dimension(66, 24));
            qq_peopleArray_size.setSize(new Dimension(66, 24));
            qq_peopleArray_size.setLocation(112, 28);
            ArrayFieldCellHelper.setUpCellEditor(qq_peopleArray_size, qq_people, 1, false);
        }
        return qq_peopleArray_size;
    }

    public void setqq_peopleArray_size(DataField value) {
        DataField oldValue = qq_peopleArray_size;
        qq_peopleArray_size = value;
        this.qq_Listeners.firePropertyChange("qq_peopleArray_size", oldValue, value);
    }

    /**
     * qq_peopleArray_Department: transformed from: qqds_DropList
     * TagId=15
     * isInherited=FALSE
     */
    public DropList getqq_peopleArray_Department() {
        if (qq_peopleArray_Department == null) {
            ListElement[] elements = new ListElement[3];
            elements[0] = new ListElement( 1, "Sales", ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE );
            elements[1] = new ListElement( 2, "Technical", ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE );
            elements[2] = new ListElement( 3, "Administration", ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE );

            qq_peopleArray_Department = DropFillinFactory.newDropList(elements);
            qq_peopleArray_Department.setName("Department");
            // OPTIONAL UIutils.reloadLabelText(qq_peopleArray_Department, mcat);
            qq_peopleArray_Department.setMaximumRowCount(4);
            ArrayFieldCellHelper.setUpCellEditor(qq_peopleArray_Department, qq_people, 2, false);
            WidthPolicy.set(qq_peopleArray_Department, Constants.SP_NATURAL);
            HeightPolicy.set(qq_peopleArray_Department, Constants.SP_NATURAL);
            qq_peopleArray_Department.setMinimumSize(new Dimension(120, 24));
            qq_peopleArray_Department.setLocation(143, 0);
        }
        return qq_peopleArray_Department;
    }

    public void setqq_peopleArray_Department(DropList value) {
        DropList oldValue = qq_peopleArray_Department;
        qq_peopleArray_Department = value;
        this.qq_Listeners.firePropertyChange("qq_peopleArray_Department", oldValue, value);
    }

    /**
     * qq_peopleArray_but: transformed from: qqds_PushButton
     * TagId=23
     * isInherited=FALSE
     */
    public TableJButton getqq_peopleArray_but() {
        if (qq_peopleArray_but == null) {
            qq_peopleArray_but = PushButtonFactory.newTableInstance("but", "...");
            qq_peopleArray_but.setVerifyInputWhenFocusTarget(true);
            ArrayFieldCellHelper.setUpCellEditor(qq_peopleArray_but, qq_people, 3, false);
            WidthPolicy.set(qq_peopleArray_but, Constants.SP_NATURAL);
            HeightPolicy.set(qq_peopleArray_but, Constants.SP_NATURAL);
            qq_peopleArray_but.setMinimumSize(new Dimension(30, 28));
            qq_peopleArray_but.setLocation(326, 35);
        }
        return qq_peopleArray_but;
    }

    public void setqq_peopleArray_but(TableJButton value) {
        TableJButton oldValue = qq_peopleArray_but;
        qq_peopleArray_but = value;
        this.qq_Listeners.firePropertyChange("qq_peopleArray_but", oldValue, value);
    }

    /**
     * qq_peopleArray_Skill: transformed from: qqds_FillInField
     * TagId=17
     * isInherited=FALSE
     */
    public FillInField getqq_peopleArray_Skill() {
        if (qq_peopleArray_Skill == null) {
            ListElement[] elements = new ListElement[3];
            elements[0] = new ListElement( 1, "Reading", ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE );
            elements[1] = new ListElement( 2, "Writting", ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE );
            elements[2] = new ListElement( 3, "Arithmetic", ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE );
            qq_peopleArray_Skill = DropFillinFactory.newFillinField(elements);
            qq_peopleArray_Skill.setName("Skill");
            // OPTIONAL UIutils.reloadLabelText(qq_peopleArray_Skill, mcat);
            qq_peopleArray_Skill.setMaximumRowCount(4);
            qq_peopleArray_Skill.setVisibleColumns(20);
            ArrayFieldCellHelper.setUpCellEditor(qq_peopleArray_Skill, qq_people, 4, false);
            WidthPolicy.set(qq_peopleArray_Skill, Constants.SP_EXPLICIT);
            HeightPolicy.set(qq_peopleArray_Skill, Constants.SP_NATURAL);
            qq_peopleArray_Skill.setMinimumSize(new Dimension(96, 24));
            qq_peopleArray_Skill.setSize(new Dimension(96, 24));
            qq_peopleArray_Skill.setLocation(239, 0);
        }
        return qq_peopleArray_Skill;
    }

    public void setqq_peopleArray_Skill(FillInField value) {
        FillInField oldValue = qq_peopleArray_Skill;
        qq_peopleArray_Skill = value;
        this.qq_Listeners.firePropertyChange("qq_peopleArray_Skill", oldValue, value);
    }

    /**
     * qq_peopleArray_date: transformed from: qqds_DataField
     * TagId=25
     * isInherited=FALSE
     */
    public DataField getqq_peopleArray_date() {
        if (qq_peopleArray_date == null) {
            // Mask type: MK_TEMPLATE
            // original Forte format string -->DATE<--
            qq_peopleArray_date = DataFieldFactory.newDataField("date", 20, DateTimeData.class);
            DateTemplate.set(qq_peopleArray_date, "DATE", DateTimeData.class);
            qq_peopleArray_date.setOriginalFormatText("DATE");
            qq_peopleArray_date.setHorizontalAlignment(JTextField.LEFT);
            WidthPolicy.set(qq_peopleArray_date, Constants.SP_EXPLICIT);
            HeightPolicy.set(qq_peopleArray_date, Constants.SP_NATURAL);
            qq_peopleArray_date.setMinimumSize(new Dimension(100, 24));
            qq_peopleArray_date.setSize(new Dimension(100, 24));
            qq_peopleArray_date.setLocation(444, 31);
            ArrayFieldCellHelper.setUpCellEditor(qq_peopleArray_date, qq_people, 5, false);
        }
        return qq_peopleArray_date;
    }

    public void setqq_peopleArray_date(DataField value) {
        DataField oldValue = qq_peopleArray_date;
        qq_peopleArray_date = value;
        this.qq_Listeners.firePropertyChange("qq_peopleArray_date", oldValue, value);
    }


    /**
     * Initialise the window and all its children.
     */
    protected void initialize() {
        if (this.Form == null) {
            this.setName( "Main" );
            this.setTitle( "" );
            this.setSystemClosePolicy(Constants.SC_ENABLEDSHUTDOWN);
            this.setJMenuBar( getqq_MenuBar() );
            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
    //-----------------
    protected WindowUsageMap usage = new WindowUsageMap();
    public int getUsage() {
        return this.usage.getUsage();
    }
    public WindowUsageMap getUsageMap() {
        return this.usage;
    }
    /**
     * Sets the window usage
     *
     * The Usage property sets the state for all a window�s child widgets at once, providing collective widget state changes on a predefined basis. A widget�s state determines how the widget reacts to mouse actions and how it displays itself. A window�s Usage property provides a convenient way to control the states of a group of widgets in the context of their parent window. With the Usage attribute, you can synchronize widget states to conform to a pattern you establish for the window.
     * The Usage attribute accepts the following values:
     * <li>Constants.WU_EDIT  Edit usage: widgets themselves are editable, but not underlying data.</li>
     * <li>Constants.WU_QUERY  Query only usage: widget data is editable, but not widgets themselves.</li>
     * <li>Constants.WU_UPDATE  Update usage: mouse actions and keyboard input accepted. Widgets themselves are changeable. This is the default.</li>
     * <li>Constants.WU_USER1  A user-defined usage. Default values same as WU_UPDATE.</li>
     * <li>Constants.WU_USER2  A user-defined usage. Default values same as WU_UPDATE.</li>
     * <li>Constants.WU_USER3  A user-defined usage. Default values same as WU_UPDATE.</li>
     * <li>Constants.WU_VIEW  View-only usage: no keyboard input is accepted. Widget posts Click events for mouse clicks.</li>
     */
    public void setUsage(int usage) {
        this.usage.setUsage(usage);
    }
    public void qq_setupWindowUsage() {
        this.usage = new WindowUsageMap();
        this.usage.add(getqq_AllowsAppend(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
        this.usage.add(getqq_doPopulate(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
        this.usage.add(getqq_MainMenu(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
        this.usage.add(getqq_GridField27(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
        this.usage.add(getqq_One(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
        this.usage.add(getqq_people(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
        this.usage.add(getqq_peopleArray_Name(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
        this.usage.add(getqq_peopleArray_size(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
        this.usage.add(getqq_peopleArray_Department(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
        this.usage.add(getqq_peopleArray_but(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
        this.usage.add(getqq_peopleArray_Skill(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
        this.usage.add(getqq_peopleArray_date(), Constants.FS_VIEWONLY, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
        this.usage.add(getqq_Two(), 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 ) {
        FrameworkUtils.setCmdLineArgs(args);
        AppletConnectionInfo client = null;
        try {
            // Install our own focus manager. MUST be done prior to setting the
            // UIManager, otherwise you'll run into issues like things have the wrong focus.
            KeyboardFocusManager.setCurrentKeyboardFocusManager(new ForteKeyboardFocusManager());

            UIManager.setLookAndFeel(new Win32LookAndFeel());

            client = UserWindow.postAPPLETStarted();
            Main main_start = new Main();
            main_start.display();
            UserWindow.postAPPLETStopped(client);
            System.exit(0);
        } catch (Throwable e) {
            ErrorMgr.showErrors(null, "Unhandled exception", e);
            UserWindow.postAPPLETStopped(client);
            System.exit(0);
        }
    }
// end class Main
// c Pass 2 Conversion Time: 530 milliseconds
TOP

Related Classes of ArrayWithDropLists.Main

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.