Package DisplayProject

Source Code of DisplayProject.CalendarWindow$qq_CalendarWindow_WindowAdapter

/*
Copyright (c) 2003-2009 ITerative Consulting Pty Ltd. All Rights Reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted
provided that the following conditions are met:

o Redistributions of source code must retain the above copyright notice, this list of conditions and
the following disclaimer.
 
o Redistributions in binary form must reproduce the above copyright notice, this list of conditions
and the following disclaimer in the documentation and/or other materials provided with the distribution.
   
o This jcTOOL Helper Class software, whether in binary or source form may not be used within,
or to derive, any other product without the specific prior written permission of the copyright holder

 
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


*/
package DisplayProject;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.Point;
import java.awt.event.ComponentEvent;
import java.awt.event.ComponentListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.Serializable;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.WindowConstants;

import DisplayProject.actions.FrameColor;
import DisplayProject.actions.FrameWeight;
import DisplayProject.actions.UserWindow;
import DisplayProject.events.ClientEventManager;
import DisplayProject.factory.CompoundFieldFactory;
import DisplayProject.factory.GraphicFactory;
import DisplayProject.factory.PushButtonFactory;
import Framework.Array_Of_TextNullable;
import Framework.DateTimeData;
import Framework.DateTimeNullable;
import Framework.EventHandle;
import Framework.EventManager;
import Framework.EventRegistration;
import Framework.EventRegistrationCallback;
import Framework.IntervalData;
import Framework.ParameterHolder;
import Framework.ParameterHolder_DateTimeData;
import Framework.TextData;
import Framework.TextNullable;

/**
*  A utility window to display a calendar.
* <p>
* <p>
* @since 06-Oct-2005
*/
public class CalendarWindow
extends JFrame
implements Serializable
{
    /**
     *
     */
    private static final long serialVersionUID = 7045934778943695357L;

    public CalendarWindow() {
        this.initialize();
        this.init();
    }
    private static final int CELL_X = 20;

    private static final int CELL_Y = 20;


    // ----------
    // Attributes
    // ----------
    private Array_Of_TextNullable<TextNullable> FA;
    private String currentDay;
    private JComponent currentHighlight;
    private DateTimeData selectedDate;
    private JComponent dateField;
    private DateTimeNullable dateInput;

    protected void qq_SetAttributeDefaults() {
        this.FA = null;
        this.currentDay = null;
        this.currentHighlight = null;
        this.selectedDate = null;
    }

    // --------------------------------
    // Accessor methods for attributes.
    // --------------------------------
    public void setFA(Array_Of_TextNullable<TextNullable> pValue) {
        this.FA = pValue;
    }

    public Array_Of_TextNullable<TextNullable> getFA() {
        return this.FA;
    }

    public void setCurrentDay(String pValue) {
        this.currentDay = pValue;
    }

    public String getCurrentDay() {
        return this.currentDay;
    }

    public void setCurrentHighlight(JComponent pValue) {
        this.currentHighlight = pValue;
    }

    public JComponent getCurrentHighlight() {
        return this.currentHighlight;
    }

    public void setSelectedDate(DateTimeData pValue) {
        this.selectedDate = pValue;
    }

    public DateTimeData getSelectedDate() {
        return this.selectedDate;
    }
    public void setDateField(JComponent pValue) {
        this.dateField = pValue;
    }

    public JComponent getDateField() {
        return this.dateField;
    }

    public void setDateInput(DateTimeNullable pValue) {
        this.dateInput = pValue;
    }

    public DateTimeNullable getDateInput() {
        return this.dateInput;
    }

    public JPanel Form;
    public GridField qq_GridField;
    public GridField qq_GridField1;
    public GridField qq_GridField2;
    public JButton qq_LeftArrow;
    public JButton qq_LeftArrow2;
    public JButton qq_CancelDate;
    public GridField qq_GridField3;
    public JButton qq_RightArrow2;
    public JButton qq_RightArrow;
    public JLabel qq_MonthYear;
    public GridField qq_CellGrid;
    public JLabel qq_F1;
    public JLabel qq_F2;
    public JLabel qq_F3;
    public JLabel qq_F4;
    public JLabel qq_F5;
    public JLabel qq_F6;
    public JLabel qq_F7;
    public JLabel qq_F8;
    public JLabel qq_F9;
    public JLabel qq_F10;
    public JLabel qq_F15;
    public JLabel qq_F22;
    public JLabel qq_F29;
    public JLabel qq_F11;
    public JLabel qq_F12;
    public JLabel qq_F13;
    public JLabel qq_F14;
    public JLabel qq_F16;
    public JLabel qq_F17;
    public JLabel qq_F18;
    public JLabel qq_F19;
    public JLabel qq_F20;
    public JLabel qq_F21;
    public JLabel qq_F23;
    public JLabel qq_F24;
    public JLabel qq_F25;
    public JLabel qq_F26;
    public JLabel qq_F27;
    public JLabel qq_F28;
    public JLabel qq_F30;
    public JLabel qq_F31;
    public JLabel qq_F32;
    public JLabel qq_F33;
    public JLabel qq_F34;
    public JLabel qq_F35;
    public JLabel qq_F36;
    public JLabel qq_F37;
    public JLabel qq_JLabel;
    public JLabel qq_JLabel1;
    public JLabel qq_JLabel2;
    public JLabel qq_JLabel3;
    public JLabel qq_JLabel4;
    public JLabel qq_JLabel5;
    public JLabel qq_JLabel6;

    /**
     *  qq_LeftArrow: transformed from: qqds_PictureButton
     */
        public JButton getqq_LeftArrow() {
        if (qq_LeftArrow == null) {
            qq_LeftArrow = PushButtonFactory.newInstance("qq_LeftArrow", new ImageIcon(getClass().getResource("CalendarWindow.qq_LeftArrow.gif"))); //$NON-NLS-1$ //$NON-NLS-2$
            java.awt.Dimension widgetSize = new java.awt.Dimension(UIutils.milsToPixels(167), UIutils.milsToPixels(142));
            qq_LeftArrow.setSize(widgetSize);
            qq_LeftArrow.setMinimumSize(widgetSize);
            qq_LeftArrow.setPreferredSize(widgetSize);
        }
        return qq_LeftArrow;
        }


        /**
     *  qq_LeftArrow2: transformed from: qqds_PictureButton
     */
        public JButton getqq_LeftArrow2() {
            if (qq_LeftArrow2 == null) {
                qq_LeftArrow2 = PushButtonFactory.newInstance("qq_LeftArrow2", new ImageIcon(getClass().getResource("CalendarWindow.qq_LeftArrow2.gif"))); //$NON-NLS-1$ //$NON-NLS-2$
                java.awt.Dimension widgetSize = new java.awt.Dimension(UIutils.milsToPixels(125), UIutils.milsToPixels(142));
                qq_LeftArrow2.setSize(widgetSize);
                qq_LeftArrow2.setMinimumSize(widgetSize);
                qq_LeftArrow2.setPreferredSize(widgetSize);
            }
            return qq_LeftArrow2;
        }


        /**
     *  qq_GridField2: transformed from: qqds_GridField
     * In forte this was a 2x1 grid field.
     * There are no cell margins set
     * The width policy is set to Natural, and the height policy is set to Natural.
     */
        public GridField getqq_GridField2() {
            if (qq_GridField2 == null) {
                qq_GridField2 = CompoundFieldFactory.newGridField("qq_GridField2", Constants.W_NONE, "", java.awt.Color.black); //$NON-NLS-1$ //$NON-NLS-2$
                qq_GridField2.setCellTopMargin(0);
                qq_GridField2.setCellBottomMargin(0);
                qq_GridField2.setCellLeftMargin(0);
                qq_GridField2.setCellRightMargin(0);
                qq_GridField2.setCellGravity(Constants.CG_CENTER);
                // Color = C_INHERIT
                qq_GridField2.setOpaque(false);
                GridBagConstraints qq_gbc = new GridBagConstraints();
                qq_gbc.gridx = 0; // Column
                qq_gbc.gridy = 0; // Row
                qq_gbc.weightx = 1;
                qq_gbc.weighty = 1;
                qq_gbc.anchor = java.awt.GridBagConstraints.WEST; // Gravity
                qq_gbc.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_GridField2.add( getqq_LeftArrow(), qq_gbc );

                GridBagConstraints qq_gbc1 = new GridBagConstraints();
                qq_gbc1.gridx = 1; // Column
                qq_gbc1.gridy = 0; // Row
                qq_gbc1.weightx = 1;
                qq_gbc1.weighty = 1;
                qq_gbc1.anchor = java.awt.GridBagConstraints.WEST; // Gravity
                qq_gbc1.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc1.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_GridField2.add( getqq_LeftArrow2(), qq_gbc1 );

            }
            return qq_GridField2;
        }


        /**
     *  qq_RightArrow2: transformed from: qqds_PictureButton
     */
        public JButton getqq_RightArrow2() {
            if (qq_RightArrow2 == null) {
                qq_RightArrow2 = PushButtonFactory.newInstance("qq_RightArrow2", new ImageIcon(getClass().getResource("CalendarWindow.qq_RightArrow2.gif"))); //$NON-NLS-1$ //$NON-NLS-2$
                java.awt.Dimension widgetSize = new java.awt.Dimension(UIutils.milsToPixels(125), UIutils.milsToPixels(142));
                qq_RightArrow2.setSize(widgetSize);
                qq_RightArrow2.setMinimumSize(widgetSize);
                qq_RightArrow2.setPreferredSize(widgetSize);
            }
            return qq_RightArrow2;
        }


        /**
     *  qq_RightArrow: transformed from: qqds_PictureButton
     */
        public JButton getqq_RightArrow() {
            if (qq_RightArrow == null) {
                qq_RightArrow = PushButtonFactory.newInstance("qq_RightArrow", new ImageIcon(getClass().getResource("CalendarWindow.qq_RightArrow.gif"))); //$NON-NLS-1$ //$NON-NLS-2$
                java.awt.Dimension widgetSize = new java.awt.Dimension(UIutils.milsToPixels(167), UIutils.milsToPixels(142));
                qq_RightArrow.setSize(widgetSize);
                qq_RightArrow.setMinimumSize(widgetSize);
                qq_RightArrow.setPreferredSize(widgetSize);
            }
            return qq_RightArrow;
        }


        /**
     *  qq_GridField3: transformed from: qqds_GridField
     * In forte this was a 2x1 grid field.
     * There are no cell margins set
     * The width policy is set to Natural, and the height policy is set to Natural.
     */
        public GridField getqq_GridField3() {
            if (qq_GridField3 == null) {
                qq_GridField3 = CompoundFieldFactory.newGridField("qq_GridField3", Constants.W_NONE, "", java.awt.Color.black); //$NON-NLS-1$ //$NON-NLS-2$
                qq_GridField3.setCellTopMargin(0);
                qq_GridField3.setCellBottomMargin(0);
                qq_GridField3.setCellLeftMargin(0);
                qq_GridField3.setCellRightMargin(0);
                qq_GridField3.setCellGravity(Constants.CG_CENTER);
                // Color = C_INHERIT
                qq_GridField3.setOpaque(false);
                GridBagConstraints qq_gbc = new GridBagConstraints();
                qq_gbc.gridx = 0; // Column
                qq_gbc.gridy = 0; // Row
                qq_gbc.weightx = 1;
                qq_gbc.weighty = 1;
                qq_gbc.anchor = java.awt.GridBagConstraints.EAST; // Gravity
                qq_gbc.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_GridField3.add( getqq_RightArrow2(), qq_gbc );

                GridBagConstraints qq_gbc1 = new GridBagConstraints();
                qq_gbc1.gridx = 1; // Column
                qq_gbc1.gridy = 0; // Row
                qq_gbc1.weightx = 1;
                qq_gbc1.weighty = 1;
                qq_gbc1.anchor = java.awt.GridBagConstraints.EAST; // Gravity
                qq_gbc1.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc1.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_GridField3.add( getqq_RightArrow(), qq_gbc1 );

            }
            return qq_GridField3;
        }


        /**
     *  qq_MonthYear: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_MonthYear() {
            if (qq_MonthYear == null) {
                qq_MonthYear = GraphicFactory.newTextGraphic("Month - Year\n", "qq_MonthYear"); //$NON-NLS-1$ //$NON-NLS-2$
            }
            UIutils.labelWidth(qq_MonthYear);
            return qq_MonthYear;
        }


        /**
     *  qq_GridField1: transformed from: qqds_GridField
     * In forte this was a 3x1 grid field.
     * There are no cell margins set
     * The width policy is set to Parent, and the height policy is set to Natural.
     */
        public GridField getqq_GridField1() {
            if (qq_GridField1 == null) {
                qq_GridField1 = CompoundFieldFactory.newGridField("qq_GridField1", Constants.W_NONE, "", java.awt.Color.black); //$NON-NLS-1$ //$NON-NLS-2$
                qq_GridField1.setCellTopMargin(0);
                qq_GridField1.setCellBottomMargin(0);
                qq_GridField1.setCellLeftMargin(0);
                qq_GridField1.setCellRightMargin(0);
                qq_GridField1.setCellGravity(Constants.CG_CENTER);
                // Color = C_INHERIT
                qq_GridField1.setOpaque(false);
                GridBagConstraints qq_gbc = new GridBagConstraints();
                qq_gbc.gridx = 0; // Column
                qq_gbc.gridy = 0; // Row
                qq_gbc.weightx = 1;
                qq_gbc.weighty = 1;
                qq_gbc.anchor = java.awt.GridBagConstraints.WEST; // Gravity
                qq_gbc.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_GridField1.add( getqq_GridField2(), qq_gbc );

                GridBagConstraints qq_gbc1 = new GridBagConstraints();
                qq_gbc1.gridx = 1; // Column
                qq_gbc1.gridy = 0; // Row
                qq_gbc1.weightx = 1;
                qq_gbc1.weighty = 1;
                qq_gbc1.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc1.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc1.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_GridField1.add( getqq_MonthYear(), qq_gbc1 );

                GridBagConstraints qq_gbc2 = new GridBagConstraints();
                qq_gbc2.gridx = 2; // Column
                qq_gbc2.gridy = 0; // Row
                qq_gbc2.weightx = 1;
                qq_gbc2.weighty = 1;
                qq_gbc2.anchor = java.awt.GridBagConstraints.EAST; // Gravity
                qq_gbc2.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc2.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_GridField1.add( getqq_GridField3(), qq_gbc2 );

            }
            return qq_GridField1;
        }


        /**
     *  qq_F1: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F1() {
            if (qq_F1 == null) {
                qq_F1 = newDay("   ", "qq_F1"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F1;
        }


        /**
     *  qq_F2: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F2() {
            if (qq_F2 == null) {
                qq_F2 = newDay("   ", "qq_F2"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F2;
        }


        /**
     *  qq_F3: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F3() {
            if (qq_F3 == null) {
                qq_F3 = newDay("   ", "qq_F3"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F3;
        }


        /**
     *  qq_F4: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F4() {
            if (qq_F4 == null) {
                qq_F4 = newDay("   ", "qq_F4"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F4;
        }


        /**
     *  qq_F5: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F5() {
            if (qq_F5 == null) {
                qq_F5 = newDay("   ", "qq_F5"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F5;
        }


        /**
     *  qq_F6: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F6() {
            if (qq_F6 == null) {
                qq_F6 = newDay("   ", "qq_F6"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F6;
        }


        /**
     *  qq_F7: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F7() {
            if (qq_F7 == null) {
                qq_F7 = newDay("   ", "qq_F7"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F7;
        }


        /**
     *  qq_F8: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F8() {
            if (qq_F8 == null) {
                qq_F8 = newDay("   ", "qq_F8"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F8;
        }


        /**
     *  qq_F9: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F9() {
            if (qq_F9 == null) {
                qq_F9 = newDay("   ", "qq_F9"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F9;
        }


        /**
     *  qq_F10: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F10() {
            if (qq_F10 == null) {
                qq_F10 = newDay("   ", "qq_F10"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F10;
        }


        /**
     *  qq_F15: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F15() {
            if (qq_F15 == null) {
                qq_F15 = newDay("   ", "qq_F15"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F15;
        }


        /**
     *  qq_F22: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F22() {
            if (qq_F22 == null) {
                qq_F22 = newDay("   ", "qq_F22"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F22;
        }


        /**
     *  qq_F29: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F29() {
            if (qq_F29 == null) {
                qq_F29 = newDay("   ", "qq_F29"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F29;
        }


        /**
     *  qq_F11: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F11() {
            if (qq_F11 == null) {
                qq_F11 = newDay("   ", "qq_F11"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F11;
        }


        /**
     *  qq_F12: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F12() {
            if (qq_F12 == null) {
                qq_F12 = newDay("   ", "qq_F12"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F12;
        }


        /**
     *  qq_F13: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F13() {
            if (qq_F13 == null) {
                qq_F13 = newDay("   ", "qq_F13"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F13;
        }


        /**
     *  qq_F14: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F14() {
            if (qq_F14 == null) {
                qq_F14 = newDay("   ", "qq_F14"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F14;
        }


        /**
     *  qq_F16: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F16() {
            if (qq_F16 == null) {
                qq_F16 = newDay("   ", "qq_F16"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F16;
        }


        /**
     *  qq_F17: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F17() {
            if (qq_F17 == null) {
                qq_F17 = newDay("   ", "qq_F17"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F17;
        }


        /**
     *  qq_F18: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F18() {
            if (qq_F18 == null) {
                qq_F18 = newDay("   ", "qq_F18"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F18;
        }


        /**
     *  qq_F19: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F19() {
            if (qq_F19 == null) {
                qq_F19 = newDay("   ", "qq_F19"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F19;
        }


        /**
     *  qq_F20: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F20() {
            if (qq_F20 == null) {
                qq_F20 = newDay("   ", "qq_F20"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F20;
        }


        /**
     *  qq_F21: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F21() {
            if (qq_F21 == null) {
                qq_F21 = newDay("   ", "qq_F21"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F21;
        }


        /**
     *  qq_F23: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F23() {
            if (qq_F23 == null) {
                qq_F23 = newDay("   ", "qq_F23"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F23;
        }


        /**
     *  qq_F24: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F24() {
            if (qq_F24 == null) {
                qq_F24 = newDay("   ", "qq_F24"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F24;
        }


        /**
     *  qq_F25: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F25() {
            if (qq_F25 == null) {
                qq_F25 = newDay("   ", "qq_F25"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F25;
        }


        /**
     *  qq_F26: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F26() {
            if (qq_F26 == null) {
                qq_F26 = newDay("   ", "qq_F26"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F26;
        }


        /**
     *  qq_F27: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F27() {
            if (qq_F27 == null) {
                qq_F27 = newDay("   ", "qq_F27"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F27;
        }


        /**
     *  qq_F28: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F28() {
            if (qq_F28 == null) {
                qq_F28 = newDay("   ", "qq_F28"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F28;
        }


        /**
     *  qq_F30: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F30() {
            if (qq_F30 == null) {
                qq_F30 = newDay("   ", "qq_F30"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F30;
        }


        /**
     *  qq_F31: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F31() {
            if (qq_F31 == null) {
                qq_F31 = newDay("   ", "qq_F31"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F31;
        }


        /**
     *  qq_F32: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F32() {
            if (qq_F32 == null) {
                qq_F32 = newDay("   ", "qq_F32"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F32;
        }


        /**
     *  qq_F33: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F33() {
            if (qq_F33 == null) {
                qq_F33 = newDay("   ", "qq_F33"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F33;
        }


        /**
     *  qq_F34: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F34() {
            if (qq_F34 == null) {
                qq_F34 = newDay("   ", "qq_F34"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F34;
        }


        /**
     *  qq_F35: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F35() {
            if (qq_F35 == null) {
                qq_F35 = newDay("   ", "qq_F35"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F35;
        }


        /**
     *  qq_F36: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F36() {
            if (qq_F36 == null) {
                qq_F36 = newDay("   ", "qq_F36"); //$NON-NLS-1$ //$NON-NLS-2$
            }

            return qq_F36;
        }


        /**
     *  qq_F37: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_F37() {
            if (qq_F37 == null) {
                qq_F37 = newDay("   ", "qq_F37"); //$NON-NLS-1$ //$NON-NLS-2$
            }


            return qq_F37;
        }


        /**
     *  qq_JLabel: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_JLabel() {
            if (qq_JLabel == null) {
                qq_JLabel = GraphicFactory.newTextGraphic(Messages.getString("CalendarWindow.5"), "qq_JLabel"); //$NON-NLS-1$ //$NON-NLS-2$
            }
            UIutils.labelWidth(qq_JLabel);
            return qq_JLabel;
        }


        /**
     *  qq_JLabel1: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_JLabel1() {
            if (qq_JLabel1 == null) {
                qq_JLabel1 = GraphicFactory.newTextGraphic(Messages.getString("CalendarWindow.6"), "qq_JLabel1"); //$NON-NLS-1$ //$NON-NLS-2$
            }
            UIutils.labelWidth(qq_JLabel1);
            return qq_JLabel1;
        }


        /**
     *  qq_JLabel2: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_JLabel2() {
            if (qq_JLabel2 == null) {
                qq_JLabel2 = GraphicFactory.newTextGraphic(Messages.getString("CalendarWindow.7"), "qq_JLabel2"); //$NON-NLS-1$ //$NON-NLS-2$
            }
            UIutils.labelWidth(qq_JLabel2);
            return qq_JLabel2;
        }


        /**
     *  qq_JLabel3: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_JLabel3() {
            if (qq_JLabel3 == null) {
                qq_JLabel3 = GraphicFactory.newTextGraphic(Messages.getString("CalendarWindow.4"), "qq_JLabel3"); //$NON-NLS-1$ //$NON-NLS-2$
            }
            UIutils.labelWidth(qq_JLabel3);
            return qq_JLabel3;
        }


        /**
     *  qq_JLabel4: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_JLabel4() {
            if (qq_JLabel4 == null) {
                qq_JLabel4 = GraphicFactory.newTextGraphic(Messages.getString("CalendarWindow.3"), "qq_JLabel4"); //$NON-NLS-1$ //$NON-NLS-2$
            }
            UIutils.labelWidth(qq_JLabel4);
            return qq_JLabel4;
        }


        /**
     *  qq_JLabel5: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_JLabel5() {
            if (qq_JLabel5 == null) {
                qq_JLabel5 = GraphicFactory.newTextGraphic(Messages.getString("CalendarWindow.1"), "qq_JLabel5"); //$NON-NLS-1$ //$NON-NLS-2$
            }
            UIutils.labelWidth(qq_JLabel5);
            return qq_JLabel5;
        }


        /**
     *  qq_JLabel6: transformed from: qqds_TextGraphic
     */
        public JLabel getqq_JLabel6() {
            if (qq_JLabel6 == null) {
                qq_JLabel6 = GraphicFactory.newTextGraphic(Messages.getString("CalendarWindow.2"), "qq_JLabel6"); //$NON-NLS-1$ //$NON-NLS-2$
            }
            UIutils.labelWidth(qq_JLabel6);
            return qq_JLabel6;
        }


        /**
     *  qq_CellGrid: transformed from: qqds_GridField
     * In forte this was a 7x7 grid field.
     * There are no cell margins set
     * The width policy is set to Natural, and the height policy is set to Natural.
     */
        public GridField getqq_CellGrid() {
            if (qq_CellGrid == null) {
                qq_CellGrid = CompoundFieldFactory.newGridField("qq_CellGrid", Constants.W_NONE, "", java.awt.Color.black); //$NON-NLS-1$ //$NON-NLS-2$
                qq_CellGrid.setCellTopMargin(0);
                qq_CellGrid.setCellBottomMargin(0);
                qq_CellGrid.setCellLeftMargin(0);
                qq_CellGrid.setCellRightMargin(0);
                qq_CellGrid.setCellGravity(Constants.CG_CENTER);
                // Color = C_INHERIT
                qq_CellGrid.setOpaque(false);
                GridBagConstraints qq_gbc = new GridBagConstraints();
                qq_gbc.gridx = 0; // Column
                qq_gbc.gridy = 0; // Row
                qq_gbc.weightx = 1;
                qq_gbc.weighty = 1;
                qq_gbc.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_JLabel(), qq_gbc );

                GridBagConstraints qq_gbc1 = new GridBagConstraints();
                qq_gbc1.gridx = 1; // Column
                qq_gbc1.gridy = 0; // Row
                qq_gbc1.weightx = 1;
                qq_gbc1.weighty = 1;
                qq_gbc1.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc1.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc1.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_JLabel1(), qq_gbc1 );

                GridBagConstraints qq_gbc2 = new GridBagConstraints();
                qq_gbc2.gridx = 2; // Column
                qq_gbc2.gridy = 0; // Row
                qq_gbc2.weightx = 1;
                qq_gbc2.weighty = 1;
                qq_gbc2.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc2.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc2.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_JLabel2(), qq_gbc2 );

                GridBagConstraints qq_gbc3 = new GridBagConstraints();
                qq_gbc3.gridx = 3; // Column
                qq_gbc3.gridy = 0; // Row
                qq_gbc3.weightx = 1;
                qq_gbc3.weighty = 1;
                qq_gbc3.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc3.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc3.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_JLabel3(), qq_gbc3 );

                GridBagConstraints qq_gbc4 = new GridBagConstraints();
                qq_gbc4.gridx = 4; // Column
                qq_gbc4.gridy = 0; // Row
                qq_gbc4.weightx = 1;
                qq_gbc4.weighty = 1;
                qq_gbc4.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc4.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc4.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_JLabel4(), qq_gbc4 );

                GridBagConstraints qq_gbc5 = new GridBagConstraints();
                qq_gbc5.gridx = 5; // Column
                qq_gbc5.gridy = 0; // Row
                qq_gbc5.weightx = 1;
                qq_gbc5.weighty = 1;
                qq_gbc5.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc5.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc5.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_JLabel5(), qq_gbc5 );

                GridBagConstraints qq_gbc6 = new GridBagConstraints();
                qq_gbc6.gridx = 6; // Column
                qq_gbc6.gridy = 0; // Row
                qq_gbc6.weightx = 1;
                qq_gbc6.weighty = 1;
                qq_gbc6.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc6.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc6.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_JLabel6(), qq_gbc6 );

                GridBagConstraints qq_gbc7 = new GridBagConstraints();
                qq_gbc7.gridx = 0; // Column
                qq_gbc7.gridy = 1; // Row
                qq_gbc7.weightx = 1;
                qq_gbc7.weighty = 1;
                qq_gbc7.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc7.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc7.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F1(), qq_gbc7 );

                GridBagConstraints qq_gbc8 = new GridBagConstraints();
                qq_gbc8.gridx = 1; // Column
                qq_gbc8.gridy = 1; // Row
                qq_gbc8.weightx = 1;
                qq_gbc8.weighty = 1;
                qq_gbc8.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc8.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc8.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F2(), qq_gbc8 );

                GridBagConstraints qq_gbc9 = new GridBagConstraints();
                qq_gbc9.gridx = 2; // Column
                qq_gbc9.gridy = 1; // Row
                qq_gbc9.weightx = 1;
                qq_gbc9.weighty = 1;
                qq_gbc9.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc9.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc9.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F3(), qq_gbc9 );

                GridBagConstraints qq_gbc10 = new GridBagConstraints();
                qq_gbc10.gridx = 3; // Column
                qq_gbc10.gridy = 1; // Row
                qq_gbc10.weightx = 1;
                qq_gbc10.weighty = 1;
                qq_gbc10.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc10.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc10.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F4(), qq_gbc10 );

                GridBagConstraints qq_gbc11 = new GridBagConstraints();
                qq_gbc11.gridx = 4; // Column
                qq_gbc11.gridy = 1; // Row
                qq_gbc11.weightx = 1;
                qq_gbc11.weighty = 1;
                qq_gbc11.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc11.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc11.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F5(), qq_gbc11 );

                GridBagConstraints qq_gbc12 = new GridBagConstraints();
                qq_gbc12.gridx = 5; // Column
                qq_gbc12.gridy = 1; // Row
                qq_gbc12.weightx = 1;
                qq_gbc12.weighty = 1;
                qq_gbc12.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc12.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc12.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F6(), qq_gbc12 );

                GridBagConstraints qq_gbc13 = new GridBagConstraints();
                qq_gbc13.gridx = 6; // Column
                qq_gbc13.gridy = 1; // Row
                qq_gbc13.weightx = 1;
                qq_gbc13.weighty = 1;
                qq_gbc13.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc13.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc13.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F7(), qq_gbc13 );

                GridBagConstraints qq_gbc14 = new GridBagConstraints();
                qq_gbc14.gridx = 0; // Column
                qq_gbc14.gridy = 2; // Row
                qq_gbc14.weightx = 1;
                qq_gbc14.weighty = 1;
                qq_gbc14.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc14.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc14.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F8(), qq_gbc14 );

                GridBagConstraints qq_gbc15 = new GridBagConstraints();
                qq_gbc15.gridx = 1; // Column
                qq_gbc15.gridy = 2; // Row
                qq_gbc15.weightx = 1;
                qq_gbc15.weighty = 1;
                qq_gbc15.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc15.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc15.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F9(), qq_gbc15 );

                GridBagConstraints qq_gbc16 = new GridBagConstraints();
                qq_gbc16.gridx = 2; // Column
                qq_gbc16.gridy = 2; // Row
                qq_gbc16.weightx = 1;
                qq_gbc16.weighty = 1;
                qq_gbc16.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc16.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc16.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F10(), qq_gbc16 );

                GridBagConstraints qq_gbc17 = new GridBagConstraints();
                qq_gbc17.gridx = 3; // Column
                qq_gbc17.gridy = 2; // Row
                qq_gbc17.weightx = 1;
                qq_gbc17.weighty = 1;
                qq_gbc17.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc17.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc17.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F11(), qq_gbc17 );

                GridBagConstraints qq_gbc18 = new GridBagConstraints();
                qq_gbc18.gridx = 4; // Column
                qq_gbc18.gridy = 2; // Row
                qq_gbc18.weightx = 1;
                qq_gbc18.weighty = 1;
                qq_gbc18.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc18.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc18.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F12(), qq_gbc18 );

                GridBagConstraints qq_gbc19 = new GridBagConstraints();
                qq_gbc19.gridx = 5; // Column
                qq_gbc19.gridy = 2; // Row
                qq_gbc19.weightx = 1;
                qq_gbc19.weighty = 1;
                qq_gbc19.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc19.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc19.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F13(), qq_gbc19 );

                GridBagConstraints qq_gbc20 = new GridBagConstraints();
                qq_gbc20.gridx = 6; // Column
                qq_gbc20.gridy = 2; // Row
                qq_gbc20.weightx = 1;
                qq_gbc20.weighty = 1;
                qq_gbc20.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc20.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc20.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F14(), qq_gbc20 );

                GridBagConstraints qq_gbc21 = new GridBagConstraints();
                qq_gbc21.gridx = 0; // Column
                qq_gbc21.gridy = 3; // Row
                qq_gbc21.weightx = 1;
                qq_gbc21.weighty = 1;
                qq_gbc21.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc21.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc21.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F15(), qq_gbc21 );

                GridBagConstraints qq_gbc22 = new GridBagConstraints();
                qq_gbc22.gridx = 1; // Column
                qq_gbc22.gridy = 3; // Row
                qq_gbc22.weightx = 1;
                qq_gbc22.weighty = 1;
                qq_gbc22.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc22.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc22.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F16(), qq_gbc22 );

                GridBagConstraints qq_gbc23 = new GridBagConstraints();
                qq_gbc23.gridx = 2; // Column
                qq_gbc23.gridy = 3; // Row
                qq_gbc23.weightx = 1;
                qq_gbc23.weighty = 1;
                qq_gbc23.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc23.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc23.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F17(), qq_gbc23 );

                GridBagConstraints qq_gbc24 = new GridBagConstraints();
                qq_gbc24.gridx = 3; // Column
                qq_gbc24.gridy = 3; // Row
                qq_gbc24.weightx = 1;
                qq_gbc24.weighty = 1;
                qq_gbc24.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc24.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc24.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F18(), qq_gbc24 );

                GridBagConstraints qq_gbc25 = new GridBagConstraints();
                qq_gbc25.gridx = 4; // Column
                qq_gbc25.gridy = 3; // Row
                qq_gbc25.weightx = 1;
                qq_gbc25.weighty = 1;
                qq_gbc25.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc25.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc25.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F19(), qq_gbc25 );

                GridBagConstraints qq_gbc26 = new GridBagConstraints();
                qq_gbc26.gridx = 5; // Column
                qq_gbc26.gridy = 3; // Row
                qq_gbc26.weightx = 1;
                qq_gbc26.weighty = 1;
                qq_gbc26.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc26.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc26.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F20(), qq_gbc26 );

                GridBagConstraints qq_gbc27 = new GridBagConstraints();
                qq_gbc27.gridx = 6; // Column
                qq_gbc27.gridy = 3; // Row
                qq_gbc27.weightx = 1;
                qq_gbc27.weighty = 1;
                qq_gbc27.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc27.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc27.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F21(), qq_gbc27 );

                GridBagConstraints qq_gbc28 = new GridBagConstraints();
                qq_gbc28.gridx = 0; // Column
                qq_gbc28.gridy = 4; // Row
                qq_gbc28.weightx = 1;
                qq_gbc28.weighty = 1;
                qq_gbc28.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc28.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc28.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F22(), qq_gbc28 );

                GridBagConstraints qq_gbc29 = new GridBagConstraints();
                qq_gbc29.gridx = 1; // Column
                qq_gbc29.gridy = 4; // Row
                qq_gbc29.weightx = 1;
                qq_gbc29.weighty = 1;
                qq_gbc29.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc29.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc29.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F23(), qq_gbc29 );

                GridBagConstraints qq_gbc30 = new GridBagConstraints();
                qq_gbc30.gridx = 2; // Column
                qq_gbc30.gridy = 4; // Row
                qq_gbc30.weightx = 1;
                qq_gbc30.weighty = 1;
                qq_gbc30.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc30.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc30.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F24(), qq_gbc30 );

                GridBagConstraints qq_gbc31 = new GridBagConstraints();
                qq_gbc31.gridx = 3; // Column
                qq_gbc31.gridy = 4; // Row
                qq_gbc31.weightx = 1;
                qq_gbc31.weighty = 1;
                qq_gbc31.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc31.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc31.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F25(), qq_gbc31 );

                GridBagConstraints qq_gbc32 = new GridBagConstraints();
                qq_gbc32.gridx = 4; // Column
                qq_gbc32.gridy = 4; // Row
                qq_gbc32.weightx = 1;
                qq_gbc32.weighty = 1;
                qq_gbc32.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc32.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc32.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F26(), qq_gbc32 );

                GridBagConstraints qq_gbc33 = new GridBagConstraints();
                qq_gbc33.gridx = 5; // Column
                qq_gbc33.gridy = 4; // Row
                qq_gbc33.weightx = 1;
                qq_gbc33.weighty = 1;
                qq_gbc33.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc33.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc33.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F27(), qq_gbc33 );

                GridBagConstraints qq_gbc34 = new GridBagConstraints();
                qq_gbc34.gridx = 6; // Column
                qq_gbc34.gridy = 4; // Row
                qq_gbc34.weightx = 1;
                qq_gbc34.weighty = 1;
                qq_gbc34.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc34.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc34.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F28(), qq_gbc34 );

                GridBagConstraints qq_gbc35 = new GridBagConstraints();
                qq_gbc35.gridx = 0; // Column
                qq_gbc35.gridy = 5; // Row
                qq_gbc35.weightx = 1;
                qq_gbc35.weighty = 1;
                qq_gbc35.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc35.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc35.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F29(), qq_gbc35 );

                GridBagConstraints qq_gbc36 = new GridBagConstraints();
                qq_gbc36.gridx = 1; // Column
                qq_gbc36.gridy = 5; // Row
                qq_gbc36.weightx = 1;
                qq_gbc36.weighty = 1;
                qq_gbc36.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc36.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc36.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F30(), qq_gbc36 );

                GridBagConstraints qq_gbc37 = new GridBagConstraints();
                qq_gbc37.gridx = 2; // Column
                qq_gbc37.gridy = 5; // Row
                qq_gbc37.weightx = 1;
                qq_gbc37.weighty = 1;
                qq_gbc37.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc37.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc37.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F31(), qq_gbc37 );

                GridBagConstraints qq_gbc38 = new GridBagConstraints();
                qq_gbc38.gridx = 3; // Column
                qq_gbc38.gridy = 5; // Row
                qq_gbc38.weightx = 1;
                qq_gbc38.weighty = 1;
                qq_gbc38.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc38.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc38.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F32(), qq_gbc38 );

                GridBagConstraints qq_gbc39 = new GridBagConstraints();
                qq_gbc39.gridx = 4; // Column
                qq_gbc39.gridy = 5; // Row
                qq_gbc39.weightx = 1;
                qq_gbc39.weighty = 1;
                qq_gbc39.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc39.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc39.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F33(), qq_gbc39 );

                GridBagConstraints qq_gbc40 = new GridBagConstraints();
                qq_gbc40.gridx = 5; // Column
                qq_gbc40.gridy = 5; // Row
                qq_gbc40.weightx = 1;
                qq_gbc40.weighty = 1;
                qq_gbc40.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc40.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc40.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F34(), qq_gbc40 );

                GridBagConstraints qq_gbc41 = new GridBagConstraints();
                qq_gbc41.gridx = 6; // Column
                qq_gbc41.gridy = 5; // Row
                qq_gbc41.weightx = 1;
                qq_gbc41.weighty = 1;
                qq_gbc41.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc41.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc41.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F35(), qq_gbc41 );

                GridBagConstraints qq_gbc42 = new GridBagConstraints();
                qq_gbc42.gridx = 0; // Column
                qq_gbc42.gridy = 6; // Row
                qq_gbc42.weightx = 1;
                qq_gbc42.weighty = 1;
                qq_gbc42.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc42.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc42.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F36(), qq_gbc42 );

                GridBagConstraints qq_gbc43 = new GridBagConstraints();
                qq_gbc43.gridx = 1; // Column
                qq_gbc43.gridy = 6; // Row
                qq_gbc43.weightx = 1;
                qq_gbc43.weighty = 1;
                qq_gbc43.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc43.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc43.insets = new Insets(0,0,0,0); // Top, Left, Bottom, Right Margin
                qq_CellGrid.add( getqq_F37(), qq_gbc43 );

            }
            return qq_CellGrid;
        }


        /**
     *  qq_GridField: transformed from: qqds_GridField
     * In forte this was a 1x2 grid field.
     * The cell margins are all 40 mils
     * The width policy is set to Natural, and the height policy is set to Natural.
     */
        public GridField getqq_GridField() {
            if (qq_GridField == null) {
                qq_GridField = CompoundFieldFactory.newGridField("qq_GridField", Constants.W_NONE, "", java.awt.Color.black); //$NON-NLS-1$ //$NON-NLS-2$
                qq_GridField.setCellTopMargin(20);
                qq_GridField.setCellBottomMargin(20);
                qq_GridField.setCellLeftMargin(20);
                qq_GridField.setCellRightMargin(20);
                qq_GridField.setCellGravity(Constants.CG_CENTER);
                // Color = C_INHERIT
                qq_GridField.setOpaque(false);
                java.awt.Dimension widgetSize = new java.awt.Dimension(UIutils.milsToPixels(1833), UIutils.milsToPixels(1725));
                qq_GridField.setSize(widgetSize);
                qq_GridField.setMinimumSize(widgetSize);
                qq_GridField.setPreferredSize(widgetSize);
                GridBagConstraints qq_gbc = new GridBagConstraints();
                qq_gbc.gridx = 0; // Column
                qq_gbc.gridy = 0; // Row
                qq_gbc.weightx = 1;
                qq_gbc.weighty = 1;
                qq_gbc.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc.fill = java.awt.GridBagConstraints.HORIZONTAL; // Size to parent
                qq_gbc.insets = new Insets(UIutils.milsToPixels(20), UIutils.milsToPixels(20), UIutils.milsToPixels(20), UIutils.milsToPixels(20)); // Top, Left, Bottom, Right Margin
                qq_GridField.add( getqq_GridField1(), qq_gbc );

                GridBagConstraints qq_gbc1 = new GridBagConstraints();
                qq_gbc1.gridx = 0; // Column
                qq_gbc1.gridy = 1; // Row
                qq_gbc1.weightx = 1;
                qq_gbc1.weighty = 1;
                qq_gbc1.anchor = java.awt.GridBagConstraints.CENTER; // Gravity
                qq_gbc1.fill = java.awt.GridBagConstraints.NONE; // Size to parent
                qq_gbc1.insets = new Insets(UIutils.milsToPixels(20), UIutils.milsToPixels(20), UIutils.milsToPixels(20), UIutils.milsToPixels(20)); // Top, Left, Bottom, Right Margin
                qq_GridField.add( getqq_CellGrid(), qq_gbc1 );

                GridBagConstraints qq_gbc3 = new GridBagConstraints();
                qq_gbc3.gridx = 0; // Column
                qq_gbc3.gridy = 3; // Row
                qq_gbc3.weightx = 1;
                qq_gbc3.weighty = 1;
                qq_gbc3.anchor = java.awt.GridBagConstraints.CENTER; // Gravity - original: CG_CENTER gf
                qq_gbc3.fill = java.awt.GridBagConstraints.NONE; // Size to parent - original: No size to parent
                qq_gbc3.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
                qq_GridField.add( getqq_CancelDate(), qq_gbc3 );

            }
            return qq_GridField;
        }


        /**
     *  qq_CancelDate: transformed from: qqds_PushButton
     */
        public JButton getqq_CancelDate() {
            if (qq_CancelDate == null) {
                qq_CancelDate = PushButtonFactory.newInstance("qq_CancelDate", "Cancel");
                qq_CancelDate.setVerifyInputWhenFocusTarget(true);
                // OPTIONAL UIutils.reloadLabelText(qq_CancelDate, mcat);
                // OPTIONAL qq_CancelDate.setSize(new java.awt.Dimension(60, 27));
                qq_CancelDate.setMinimumSize(new java.awt.Dimension(60, 27));
                qq_CancelDate.setPreferredSize(new java.awt.Dimension(60, 27));
            }
            return qq_CancelDate;
        }
        /**
     *  Form: transformed from: qqds_Panel
     */
        public JPanel getForm() {
            if (Form == null) {
                Form = CompoundFieldFactory.newForm();
                Form.setBorder(javax.swing.BorderFactory.createEmptyBorder(UIutils.milsToPixels(0),UIutils.milsToPixels(0),UIutils.milsToPixels(0),UIutils.milsToPixels(0)));
                Form.setLayout( new GridBagLayout() );
                Form.setOpaque( true );
                FrameWeight.set(Form, Constants.W_ONEPIXEL);
                FrameColor.set(Form, Constants.C_BLACK);
                //Form.setBackground(java.awt.Color.lightGray);
                java.awt.Dimension widgetSize = new java.awt.Dimension(UIutils.milsToPixels(1833), UIutils.milsToPixels(1725));
                // OPTIONAL Form.setSize(widgetSize);
                Form.setMinimumSize(widgetSize);
                Form.setPreferredSize(widgetSize);
                GridBagConstraints Form_gbc = new GridBagConstraints();
                Form_gbc.gridx = 0;
                Form_gbc.gridy = 0;
                Form_gbc.weightx = 1;
                Form_gbc.weighty = 1;
                Form_gbc.fill = java.awt.GridBagConstraints.BOTH;
                Form_gbc.anchor = java.awt.GridBagConstraints.CENTER;
                Form.add( getqq_GridField(), Form_gbc );
            }
            return Form;
        }




        public void initialize() {
            this.setName( "CalendarWindow" ); //$NON-NLS-1$
            if (getForm() != getContentPane()) {
                this.setContentPane(getForm());
            }
            this.setUndecorated(true);
            this.addWindowListener(new WindowManager());
            this.addWindowListener(new qq_CalendarWindow_WindowAdapter());
            this.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
            this.pack();
            Point p = WindowManager.getPrimaryLocation();
            if (p != null)
                this.setLocation( p.x + 24, p.y + 24 );
            else
                this.setLocation( 24, 24 );
        }



        /**
     *  dateCellHandler
     * (Translation of Forte Event Handler)
     * <p>
     * <p>
     * @return EventRegistration
     */
        public EventRegistration dateCellHandler()
        {
            EventRegistration qq_resultRegistration = new EventRegistration();

            // ----------
            // <F1>.Click
            // ----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F1(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F1") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================

                                if (CalendarWindow.this.getqq_F1().getText().equals("")) { //$NON-NLS-1$
                                    CalendarWindow.this.getqq_F1().setOpaque(false);

                                }
                                else {
                                    CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F1().getText());
                                    highlightDay();
                                    qq_HandlerResult = false;
                                    break qq_Block;
                                }
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // ----------
            // <F2>.Click
            // ----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F2(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F2") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================

                                if (CalendarWindow.this.getqq_F2().getText().equals("")) { //$NON-NLS-1$
                                    CalendarWindow.this.getqq_F2().setOpaque(false);

                                }
                                else {
                                    CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F2().getText());
                                    highlightDay();
                                    qq_HandlerResult = false;
                                    break qq_Block;
                                }
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // ----------
            // <F3>.Click
            // ----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F3(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F3") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================

                                if (CalendarWindow.this.getqq_F3().getText().equals("")) { //$NON-NLS-1$
                                    CalendarWindow.this.getqq_F3().setOpaque(false);

                                }
                                else {
                                    CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F3().getText());
                                    highlightDay();
                                    qq_HandlerResult = false;
                                    break qq_Block;
                                }
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // ----------
            // <F4>.Click
            // ----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F4(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F4") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================

                                if (CalendarWindow.this.getqq_F4().getText().equals("")) { //$NON-NLS-1$
                                    CalendarWindow.this.getqq_F4().setOpaque(false);

                                }
                                else {
                                    CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F4().getText());
                                    highlightDay();
                                    qq_HandlerResult = false;
                                    break qq_Block;
                                }
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // ----------
            // <F5>.Click
            // ----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F5(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F5") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================

                                if (CalendarWindow.this.getqq_F5().getText().equals("")) { //$NON-NLS-1$
                                    CalendarWindow.this.getqq_F5().setOpaque(false);

                                }
                                else {
                                    CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F5().getText());
                                    highlightDay();
                                    qq_HandlerResult = false;
                                    break qq_Block;
                                }
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // ----------
            // <F6>.Click
            // ----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F6(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F6") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================

                                if (CalendarWindow.this.getqq_F6().getText().equals("")) { //$NON-NLS-1$
                                    CalendarWindow.this.getqq_F6().setOpaque(false);

                                }
                                else {
                                    CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F6().getText());
                                    highlightDay();
                                    qq_HandlerResult = false;
                                    break qq_Block;
                                }
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // ----------
            // <F7>.Click
            // ----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F7(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F7") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================
                                CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F7().getText());
                                highlightDay();
                                qq_HandlerResult = false;
                                break qq_Block;
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // ----------
            // <F8>.Click
            // ----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F8(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F8") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================
                                CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F8().getText());
                                highlightDay();
                                //highlightDay();
                                qq_HandlerResult = false;
                                break qq_Block;
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // ----------
            // <F9>.Click
            // ----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F9(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F9") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================
                                CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F9().getText());
                                highlightDay();
                                qq_HandlerResult = false;
                                break qq_Block;
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // -----------
            // <F10>.Click
            // -----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F10(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F10") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================
                                CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F10().getText());
                                highlightDay();
                                qq_HandlerResult = false;
                                break qq_Block;
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // -----------
            // <F11>.Click
            // -----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F11(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F11") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================
                                CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F11().getText());
                                highlightDay();
                                qq_HandlerResult = false;
                                break qq_Block;
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // -----------
            // <F12>.Click
            // -----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F12(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F12") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================
                                CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F12().getText());
                                highlightDay();
                                qq_HandlerResult = false;
                                break qq_Block;
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // -----------
            // <F13>.Click
            // -----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F13(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F13") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================
                                CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F13().getText());
                                highlightDay();
                                qq_HandlerResult = false;
                                break qq_Block;
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // -----------
            // <F14>.Click
            // -----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F14(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F14") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================
                                CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F14().getText());
                                highlightDay();
                                qq_HandlerResult = false;
                                break qq_Block;
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // -----------
            // <F15>.Click
            // -----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F15(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F15") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================
                                CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F15().getText());
                                highlightDay();
                                qq_HandlerResult = false;
                                break qq_Block;
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // -----------
            // <F16>.Click
            // -----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F16(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F16") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================
                                CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F16().getText());
                                highlightDay();
                                qq_HandlerResult = false;
                                break qq_Block;
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // -----------
            // <F17>.Click
            // -----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F17(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F17") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================
                                CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F17().getText());
                                highlightDay();
                                qq_HandlerResult = false;
                                break qq_Block;
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // -----------
            // <F18>.Click
            // -----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F18(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F18") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================
                                CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F18().getText());
                                highlightDay();
                                qq_HandlerResult = false;
                                break qq_Block;
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // -----------
            // <F19>.Click
            // -----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F19(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F19") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================
                                CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F19().getText());
                                highlightDay();
                                qq_HandlerResult = false;
                                break qq_Block;
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // -----------
            // <F20>.Click
            // -----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F20(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F20") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================
                                CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F20().getText());
                                highlightDay();
                                qq_HandlerResult = false;
                                break qq_Block;
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // -----------
            // <F21>.Click
            // -----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F21(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F21") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================
                                CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F21().getText());
                                highlightDay();
                                qq_HandlerResult = false;
                                break qq_Block;
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // -----------
            // <F22>.Click
            // -----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F22(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F22") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================
                                CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F22().getText());
                                highlightDay();
                                qq_HandlerResult = false;
                                break qq_Block;
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // -----------
            // <F23>.Click
            // -----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F23(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F23") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================
                                CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F23().getText());
                                highlightDay();
                                qq_HandlerResult = false;
                                break qq_Block;
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // -----------
            // <F24>.Click
            // -----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F24(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F24") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================
                                CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F24().getText());
                                highlightDay();
                                qq_HandlerResult = false;
                                break qq_Block;
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // -----------
            // <F25>.Click
            // -----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F25(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F25") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================
                                CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F25().getText());
                                highlightDay();
                                qq_HandlerResult = false;
                                break qq_Block;
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // -----------
            // <F26>.Click
            // -----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F26(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F26") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================
                                CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F26().getText());
                                highlightDay();
                                qq_HandlerResult = false;
                                break qq_Block;
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // -----------
            // <F27>.Click
            // -----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F27(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F27") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================
                                CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F27().getText());
                                highlightDay();
                                qq_HandlerResult = false;
                                break qq_Block;
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // -----------
            // <F28>.Click
            // -----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F28(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F28") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================
                                CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F28().getText());
                                highlightDay();
                                qq_HandlerResult = false;
                                break qq_Block;
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // -----------
            // <F29>.Click
            // -----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F29(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F29") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================

                                if (CalendarWindow.this.getqq_F29().getText().equals("")) { //$NON-NLS-1$
                                    CalendarWindow.this.getqq_F29().setOpaque(false);

                                }
                                else {
                                    CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F29().getText());
                                    highlightDay();
                                    qq_HandlerResult = false;
                                    break qq_Block;
                                }
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // -----------
            // <F30>.Click
            // -----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F30(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F30") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================

                                if (CalendarWindow.this.getqq_F30().getText().equals("")) { //$NON-NLS-1$
                                    CalendarWindow.this.getqq_F30().setOpaque(false);

                                }
                                else {
                                    CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F30().getText());
                                    highlightDay();
                                    qq_HandlerResult = false;
                                    break qq_Block;
                                }
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // -----------
            // <F31>.Click
            // -----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F31(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F31") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================

                                if (CalendarWindow.this.getqq_F31().getText().equals("")) { //$NON-NLS-1$
                                    CalendarWindow.this.getqq_F31().setOpaque(false);

                                }
                                else {
                                    CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F31().getText());
                                    highlightDay();
                                    qq_HandlerResult = false;
                                    break qq_Block;
                                }
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // -----------
            // <F32>.Click
            // -----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F32(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F32") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================

                                if (CalendarWindow.this.getqq_F32().getText().equals("")) { //$NON-NLS-1$
                                    CalendarWindow.this.getqq_F32().setOpaque(false);

                                }
                                else {
                                    CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F32().getText());
                                    highlightDay();
                                    qq_HandlerResult = false;
                                    break qq_Block;
                                }
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // -----------
            // <F33>.Click
            // -----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F33(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F33") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================

                                if (CalendarWindow.this.getqq_F33().getText().equals("")) { //$NON-NLS-1$
                                    CalendarWindow.this.getqq_F33().setOpaque(false);

                                }
                                else {
                                    CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F33().getText());
                                    highlightDay();
                                    qq_HandlerResult = false;
                                    break qq_Block;
                                }
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // -----------
            // <F34>.Click
            // -----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F34(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F34") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================

                                if (CalendarWindow.this.getqq_F34().getText().equals("")) { //$NON-NLS-1$
                                    CalendarWindow.this.getqq_F34().setOpaque(false);

                                }
                                else {
                                    CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F34().getText());
                                    highlightDay();
                                    qq_HandlerResult = false;
                                    break qq_Block;
                                }
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // -----------
            // <F35>.Click
            // -----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F35(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F35") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================

                                if (CalendarWindow.this.getqq_F35().getText().equals("")) { //$NON-NLS-1$
                                    CalendarWindow.this.getqq_F35().setOpaque(false);

                                }
                                else {
                                    CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F35().getText());
                                    highlightDay();
                                    qq_HandlerResult = false;
                                    break qq_Block;
                                }
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // -----------
            // <F36>.Click
            // -----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F36(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F36") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================

                                if (CalendarWindow.this.getqq_F36().getText().equals("")) { //$NON-NLS-1$
                                    CalendarWindow.this.getqq_F36().setOpaque(false);

                                }
                                else {
                                    CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F36().getText());
                                    highlightDay();
                                    qq_HandlerResult = false;
                                    break qq_Block;
                                }
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );


            // -----------
            // <F37>.Click
            // -----------
            qq_resultRegistration.addRegistration( EventManager.register(
                    this.getqq_F37(), "Click", //$NON-NLS-1$
                    new EventRegistrationCallback("TextGraphic_Click_getqq_F37") //$NON-NLS-1$
                    {
                        public boolean handleEvent(EventHandle qq_currentEvent) {
                            boolean qq_HandlerResult = true;
                            qq_Block: try {
                                UIutils.startWaitCursor();
                                // ================ Begin Forte Event Handler Translation ================

                                if (CalendarWindow.this.getqq_F37().getText().equals("")) { //$NON-NLS-1$
                                    CalendarWindow.this.getqq_F37().setOpaque(false);

                                }
                                else {
                                    CalendarWindow.this.setCurrentDay(CalendarWindow.this.getqq_F37().getText());
                                    highlightDay();
                                    qq_HandlerResult = false;
                                    break qq_Block;
                                }
                                // ================= End Forte Event Handler Translation =================
                            }
                            finally {
                                UIutils.stopWaitCursor();
                            }
                            return qq_HandlerResult;
                        }
                    }) );

            return qq_resultRegistration;
        }
        public void display()
        {
            this.display(null, null);
        }
        /**
     *  display
     * <p>
     * <p>
     * @param DateInput Type: DateTimeData
     * @param DateField Type: JComponent
     */
        public boolean display(ParameterHolder_DateTimeData DateInput, JComponent pDateField)
        {
            boolean RC = false;
            JComponent DateField = null;
            DateTimeData OldDate = new DateTimeData();
            if (DateInput != null){
                OldDate.setValue((DateTimeData)DateInput.getObject());
                this.fillCalendar(((DateTimeData)DateInput.getObject()));
            }else
                this.fillCalendar(this.getDateInput());
            if (pDateField == null)
                DateField = this.getDateField();
            else
                DateField = pDateField;
            boolean CancelEntry = false;
            this.setLocation(UIutils.pixelsToMils(DateField.getX())+DateField.getWidth(), ((int)this.getLocation().getY()));
            this.setLocation(((int)this.getLocation().getX()), UIutils.pixelsToMils(DateField.getY())+DateField.getHeight());

            IntervalData OneMonth = new IntervalData();
            OneMonth.addUnit(0, 1, 0, 0, 0, 0, 0);
            IntervalData OneYear = new IntervalData();
            OneYear.addUnit(1, 0, 0, 0, 0, 0, 0);

            UserWindow.open(this);
            this.highlightDay();

            // ----------
            // Event Loop
            // ----------
            EventManager.startEventLoop();
            try {
                EventRegistration TaskHandle_Shutdown_task = EventManager.register( this, "Shutdown" ); //$NON-NLS-1$
                EventRegistration TextGraphic_AfterValueChange_getqq_MonthYear = EventManager.register( this.getqq_MonthYear(), "AfterValueChange" ); //$NON-NLS-1$
                EventRegistration PictureButton_Click_getqq_LeftArrow = EventManager.register( this.getqq_LeftArrow(), "Click" ); //$NON-NLS-1$
                EventRegistration PictureButton_Click_getqq_RightArrow = EventManager.register( this.getqq_RightArrow(), "Click" ); //$NON-NLS-1$
                EventRegistration PictureButton_Click_getqq_LeftArrow2 = EventManager.register( this.getqq_LeftArrow2(), "Click" ); //$NON-NLS-1$
                EventRegistration PictureButton_Click_getqq_RightArrow2 = EventManager.register( this.getqq_RightArrow2(), "Click" ); //$NON-NLS-1$
                EventRegistration Window_FunctionKeyPress_this = ClientEventManager.register( this, "FunctionKeyPress" );
                EventRegistration PushButton_Click_getqq_CancelDate = ClientEventManager.register( this.getqq_CancelDate(), "Click" );
                this.dateCellHandler();

                while (true) {

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

                    // -------------
                    // task.Shutdown
                    // -------------
                    if (qq_currentEvent.isEvent(TaskHandle_Shutdown_task)) {
                        // ================ Begin Forte Event Handler Translation ================
                        break;
                        // ================ End Forte Event Handler Translation ================
                    }

                    // ----------------------------
                    // <MonthYear>.AfterValueChange
                    // ----------------------------
                    else if (qq_currentEvent.isEvent(TextGraphic_AfterValueChange_getqq_MonthYear)) {
                        try {
                            UIutils.startWaitCursor();
                            // ================ Begin Forte Event Handler Translation ================
                            break;
                            // ================ End Forte Event Handler Translation ================
                        }
                        finally {
                            UIutils.stopWaitCursor();
                        }
                    }

                    // -----------------
                    // <LeftArrow>.Click
                    // -----------------
                    else if (qq_currentEvent.isEvent(PictureButton_Click_getqq_LeftArrow)) {
                        try {
                            UIutils.startWaitCursor();
                            // ================ Begin Forte Event Handler Translation ================
                            this.fillCalendar(((DateTimeData)DateInput.getObject()).subtract(OneYear));
                            this.highlightDay();
                            // ================ End Forte Event Handler Translation ================
                        }
                        finally {
                            UIutils.stopWaitCursor();
                        }
                    }

                    // ------------------
                    // <RightArrow>.Click
                    // ------------------
                    else if (qq_currentEvent.isEvent(PictureButton_Click_getqq_RightArrow)) {
                        try {
                            UIutils.startWaitCursor();
                            // ================ Begin Forte Event Handler Translation ================
                            this.fillCalendar(((DateTimeData)DateInput.getObject()).add(OneYear));
                            this.highlightDay();
                            // ================ End Forte Event Handler Translation ================
                        }
                        finally {
                            UIutils.stopWaitCursor();
                        }
                    }

                    // ------------------
                    // <LeftArrow2>.Click
                    // ------------------
                    else if (qq_currentEvent.isEvent(PictureButton_Click_getqq_LeftArrow2)) {
                        try {
                            UIutils.startWaitCursor();
                            // ================ Begin Forte Event Handler Translation ================
                            this.fillCalendar(((DateTimeData)DateInput.getObject()).subtract(OneMonth));
                            this.highlightDay();
                            // ================ End Forte Event Handler Translation ================
                        }
                        finally {
                            UIutils.stopWaitCursor();
                        }
                    }

                    // -------------------
                    // <RightArrow2>.Click
                    // -------------------
                    else if (qq_currentEvent.isEvent(PictureButton_Click_getqq_RightArrow2)) {
                        try {
                            UIutils.startWaitCursor();
                            // ================ Begin Forte Event Handler Translation ================
                            this.fillCalendar(((DateTimeData)DateInput.getObject()).add(OneMonth));
                            this.highlightDay();
                            // ================ End Forte Event Handler Translation ================
                        }
                        finally {
                            UIutils.stopWaitCursor();
                        }
                    }
                    // ------------------
                    // <CancelDate>.Click
                    // ------------------
                    else if (qq_currentEvent.isEvent(PushButton_Click_getqq_CancelDate)) {
                        try {
                            UIutils.startWaitCursor();
                            // ================ Begin Forte Event Handler Translation ================
                            CancelEntry = true;
                            UIutils.setBackground(this.getCurrentHighlight(), Color.lightGray);
                            ((DateTimeData)DateInput.getObject()).setValue(OldDate);
                            this.fillCalendar((DateTimeData)DateInput.getObject());
                            this.highlightDay();
                            break;
                            // ================ End Forte Event Handler Translation ================
                        }
                        finally {
                            UIutils.stopWaitCursor();
                        }
                    }

                    // -----------------------
                    // Window.FunctionKeyPress
                    // -----------------------
                    else if (qq_currentEvent.isEvent(Window_FunctionKeyPress_this)) {
                        try {
                            UIutils.startWaitCursor();
                            // ================ Begin Forte Event Handler Translation ================
                            int key = ((ParameterHolder)qq_currentEvent.getParameter("keyID")).getInt();

                            if (key == Constants.VK_ESCAPE) {
                                CancelEntry = true;
                                UIutils.setBackground(this.getCurrentHighlight(), Color.lightGray);
                                ((DateTimeData)DateInput.getObject()).setValue(OldDate);
                                this.fillCalendar((DateTimeData)DateInput.getObject());
                                this.highlightDay();
                                break;
                            }
                            // ================ End Forte Event Handler Translation ================
                        }
                        finally {
                            UIutils.stopWaitCursor();
                        }
                    }
                }
                EventManager.deregister( TaskHandle_Shutdown_task );
                EventManager.deregister( TextGraphic_AfterValueChange_getqq_MonthYear );
                EventManager.deregister( PictureButton_Click_getqq_LeftArrow );
                EventManager.deregister( PictureButton_Click_getqq_RightArrow );
                EventManager.deregister( PictureButton_Click_getqq_LeftArrow2 );
                EventManager.deregister( PictureButton_Click_getqq_RightArrow2 );
            }
            //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);

            if (!(CancelEntry)) {
//       -----------------------------------
                // Parameters for call to SetSelection
                // -----------------------------------
                ParameterHolder_DateTimeData qq_DateInput = new ParameterHolder_DateTimeData(((DateTimeData)DateInput.getObject()));
                this.setSelection(qq_DateInput);
                DateInput.setObject(((DateTimeData)qq_DateInput.getObject()));
                RC = true;
            }
            else {
                RC = false;
            }
            return RC;
        }

        /**
     *  fillCalendar
     * <p>
     * <p>
     * @param DateInput Type: DateTimeData
     */
        public void fillCalendar(DateTimeData DateInput)
        {
            //  This method fills the calendar window with the dates in the right places
            //  Set the label of the window with month and year
            //  It looks like this: February - 1964
            Framework.DateFormat Fmt = new Framework.DateFormat();
            Fmt.setTemplate(new TextData("m"));
            TextData Month = Fmt.formatDate(DateInput);
            Fmt.setTemplate(new TextData("mmmm - yyyy")); //$NON-NLS-1$
            this.getqq_MonthYear().setText(Fmt.formatDate(DateInput).toString());

            //  Change the color of the label to BLUE if it is the
            //  current month. All other months stays BLACK
            DateTimeData CurrentMonthYear = new DateTimeData();
            CurrentMonthYear.setCurrent();

            if (this.getqq_MonthYear().getText().equals(Fmt.formatDate(CurrentMonthYear))) {
                UIutils.setForeground(this.getqq_MonthYear(), Color.blue);
            }
            else {
                UIutils.setForeground(this.getqq_MonthYear(), Color.black);
            }

            //  Get the current day of the month
            //  so that it can be highlighted
            Fmt.setTemplate(new TextData("d"));
            this.setCurrentDay(Fmt.formatDate(DateInput).getValue());

            //  Find out what day of the week does the 1st of the month fall on
            Fmt.setTemplate(new TextData("m/yyyy")); //$NON-NLS-1$
            TextData FirstOfMonthText = new TextData("1/"); //$NON-NLS-1$
            FirstOfMonthText.concat( Fmt.formatDate(DateInput) );
            Fmt.setTemplate(new TextData("d/m/yyyy"));
            DateTimeData FirstOfMonth = Fmt.decodeDate(FirstOfMonthText);
            int DateStart = FirstOfMonth.dayOfWeek();

            //  Find out how many days are there in this month
            //  Note that we need to deal with leap year
            int DateEnd = 0;

            if (Month.toString().equals("4") || Month.toString().equals("6") || Month.toString().equals("9") || Month.toString().equals("11")) { //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
                DateEnd = DateStart+29;
            }
            else if (Month.toString().equals("2")) { //$NON-NLS-1$
                IntervalData Days28 = new IntervalData();
                Days28.addUnit(0, 0, 28, 0, 0, 0, 0);
                FirstOfMonth.add(Days28);
                Fmt.setTemplate(new TextData("m"));
                TextData FebOrMarch = Fmt.formatDate(FirstOfMonth);

                if (FebOrMarch.toString().equals("2")) { //$NON-NLS-1$
                    //  Leap year
                    DateEnd = DateStart+28;
                }
                else {
                    DateEnd = DateStart+27;
                }
            }
            else {
                DateEnd = DateStart+30;
            }

            //  Clears any info left from previous month's display
            //  up to the first day of the month
            for (int i = 1; i <= DateStart-1; i++) {
                ((TextNullable)this.getFA().get(i-1)).setValue(""); //$NON-NLS-1$
                ((TextNullable)this.getFA().get(i-1)).setIsNull(true);

                //  Clears any info left from previous month's display
                //  after the last month
            }
            for (int i = DateEnd+1; i <= 37; i++) {
                ((TextNullable)this.getFA().get(i-1)).setValue(""); //$NON-NLS-1$
                ((TextNullable)this.getFA().get(i-1)).setIsNull(true);

                //  Fills the calendar window with the appropriate days
            }
            int j = 1;
            for (int i = DateStart; i <= DateEnd; i++) {
                ((TextNullable)this.getFA().get(i-1)).setValue( j );

                j = j+1;
            }
            refreshDays();
        }

        /**
     *  highlightDay
     * <p>
     * <p>
     */
        public void highlightDay()
        {
            this.invalidate();
            JLabel f = null;
            for (int i = 1; i <= 37; i++) {
                f = ((JLabel)this.getqq_CellGrid().getComponents()[i-1]);

                if (f.getText().equals(this.getCurrentDay())) {
                    f.setOpaque(true);
                    this.setCurrentHighlight(f);
                }
                else {
                    f.setOpaque(false);
                }
            }
        }

        /**
     *  init
     * <p>
     * <p>
     */
        public void init()
        {
            // super.init();
            this.setCurrentDay(""); //$NON-NLS-1$

            this.setFA(new Array_Of_TextNullable<TextNullable>());
            for (int k = 1; k <= 37; k++) {
                this.getFA().set(k-1, new TextNullable());

            }
            refreshDays();
        }

        protected void refreshDays(){
            this.getqq_F1().setText(((TextNullable)this.getFA().get(0)).toString());
            this.getqq_F2().setText(((TextNullable)this.getFA().get(1)).toString());
            this.getqq_F3().setText(((TextNullable)this.getFA().get(2)).toString());
            this.getqq_F4().setText(((TextNullable)this.getFA().get(3)).toString());
            this.getqq_F5().setText(((TextNullable)this.getFA().get(4)).toString());
            this.getqq_F6().setText(((TextNullable)this.getFA().get(5)).toString());
            this.getqq_F7().setText(((TextNullable)this.getFA().get(6)).toString());
            this.getqq_F8().setText(((TextNullable)this.getFA().get(7)).toString());
            this.getqq_F9().setText(((TextNullable)this.getFA().get(8)).toString());
            this.getqq_F10().setText(((TextNullable)this.getFA().get(9)).toString());
            this.getqq_F11().setText(((TextNullable)this.getFA().get(10)).toString());
            this.getqq_F12().setText(((TextNullable)this.getFA().get(11)).toString());
            this.getqq_F13().setText(((TextNullable)this.getFA().get(12)).toString());
            this.getqq_F14().setText(((TextNullable)this.getFA().get(13)).toString());
            this.getqq_F15().setText(((TextNullable)this.getFA().get(14)).toString());
            this.getqq_F16().setText(((TextNullable)this.getFA().get(15)).toString());
            this.getqq_F17().setText(((TextNullable)this.getFA().get(16)).toString());
            this.getqq_F18().setText(((TextNullable)this.getFA().get(17)).toString());
            this.getqq_F19().setText(((TextNullable)this.getFA().get(18)).toString());
            this.getqq_F20().setText(((TextNullable)this.getFA().get(19)).toString());
            this.getqq_F21().setText(((TextNullable)this.getFA().get(20)).toString());
            this.getqq_F22().setText(((TextNullable)this.getFA().get(21)).toString());
            this.getqq_F23().setText(((TextNullable)this.getFA().get(22)).toString());
            this.getqq_F24().setText(((TextNullable)this.getFA().get(23)).toString());
            this.getqq_F25().setText(((TextNullable)this.getFA().get(24)).toString());
            this.getqq_F26().setText(((TextNullable)this.getFA().get(25)).toString());
            this.getqq_F27().setText(((TextNullable)this.getFA().get(26)).toString());
            this.getqq_F28().setText(((TextNullable)this.getFA().get(27)).toString());
            this.getqq_F29().setText(((TextNullable)this.getFA().get(28)).toString());
            this.getqq_F30().setText(((TextNullable)this.getFA().get(29)).toString());
            this.getqq_F31().setText(((TextNullable)this.getFA().get(30)).toString());
            this.getqq_F32().setText(((TextNullable)this.getFA().get(31)).toString());
            this.getqq_F33().setText(((TextNullable)this.getFA().get(32)).toString());
            this.getqq_F34().setText(((TextNullable)this.getFA().get(33)).toString());
            this.getqq_F35().setText(((TextNullable)this.getFA().get(34)).toString());
            this.getqq_F36().setText(((TextNullable)this.getFA().get(35)).toString());
            this.getqq_F37().setText(((TextNullable)this.getFA().get(36)).toString());

        }
        /**
     *  setSelection
     * <p>
     * <p>
     * @param DateInput Type: DateTimeData
     */
        public void setSelection(ParameterHolder_DateTimeData DateInput)
        {
            Framework.DateFormat Fmt = new Framework.DateFormat(new TextData("m/yyyy"), Framework.DateFormat.qq_Resolver.cTEMPLATE);
            TextData Selection = new TextData();
            Selection.setValue( this.getCurrentDay() );
            Selection.concat( "/" ); //$NON-NLS-1$
            Selection.concat( Fmt.formatDate(((DateTimeData)DateInput.getObject())) );
            Fmt.setTemplate(new TextData(Messages.getString("CalendarWindow.0"))); //$NON-NLS-1$

            DateInput.setObject(Fmt.decodeDate(Selection));
        }

        private JLabel newDay(String value, String name){
            JLabel l = GraphicFactory.newTextGraphic(value, name);
            l.setPreferredSize(new Dimension(CELL_X, CELL_Y));
            l.setBackground(new Color(255,75,75));
            l.setOpaque(false);
            l.addMouseListener(new ForteMouseAdapter());
            return l;
        }

        class qq_CalendarWindow_WindowAdapter extends WindowAdapter implements ComponentListener
        {
            public void componentHidden(ComponentEvent e) {
            }
            public void componentMoved(ComponentEvent e) {
            }
            public void componentResized(ComponentEvent e) {
            }
            public void componentShown(ComponentEvent e) {
            }
            public void windowClosing(WindowEvent e) {
            }
            public void windowOpened(WindowEvent e) {

            }
        }
// end class CalendarWindow
TOP

Related Classes of DisplayProject.CalendarWindow$qq_CalendarWindow_WindowAdapter

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.