package NestedWindow;
import DisplayProject.CloseHideAdaptor;
import DisplayProject.CompoundField;
import DisplayProject.Constants;
import DisplayProject.CursorMgr;
import DisplayProject.GridField;
import DisplayProject.UDSWindow;
import DisplayProject.UIutils;
import DisplayProject.WindowManager;
import DisplayProject.WindowUsageMap;
import DisplayProject.actions.AppletConnectionInfo;
import DisplayProject.actions.ArrayVisibleRows;
import DisplayProject.actions.Column;
import DisplayProject.actions.CommandType;
import DisplayProject.actions.FrameColor;
import DisplayProject.actions.FrameWeight;
import DisplayProject.actions.HeightPolicy;
import DisplayProject.actions.IndexValue;
import DisplayProject.actions.Parent;
import DisplayProject.actions.Row;
import DisplayProject.actions.TabPages;
import DisplayProject.actions.UserWindow;
import DisplayProject.actions.WidgetState;
import DisplayProject.actions.WidthPolicy;
import DisplayProject.binding.BindingManager;
import DisplayProject.binding.beans.ExtendedPropertyChangeSupport;
import DisplayProject.binding.beans.Observable;
import DisplayProject.controls.Panel;
import DisplayProject.controls.TabFolder;
import DisplayProject.events.ClientEventManager;
import DisplayProject.factory.CompoundFieldFactory;
import DisplayProject.factory.MenuFactory;
import DisplayProject.plaf.Win32LookAndFeel;
import Framework.ErrorMgr;
import Framework.EventHandle;
import Framework.EventManager;
import Framework.EventRegistration;
import Framework.File;
import Framework.ForteKeyboardFocusManager;
import Framework.FrameworkUtils;
import Framework.RuntimeProperties;
import Framework.UsageException;
import NestedWindow.DynamicTab;
import NestedWindow.Image;
import NestedWindow.OtherClass;
import NestedWindow.PictureWin;
import NestedWindow.WinA;
import NestedWindow.WinAList;
import NestedWindow.WinB;
import NestedWindow.interfaces.*;
import java.awt.Dimension;
import java.awt.KeyboardFocusManager;
import java.awt.Window;
import java.awt.event.ComponentListener;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.Serializable;
import java.lang.String;
import java.net.MalformedURLException;
import java.net.URL;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
import javax.swing.UIManager;
/**
* Outer<p>
* <p>
* @author Generated from Forte
* @since 19-Nov-2008
*/
@RuntimeProperties(isDistributed=false, isAnchored=false, isShared=false, isTransactional=false)
@UDSWindow()
@SuppressWarnings("serial")
public class Outer
extends JFrame
implements Serializable, Observable
{
// ----------
// Attributes
// ----------
protected File DefaultHelpFile;
protected BindingManager bindingManager = null;
public PropertyChangeSupport qq_Listeners = new ExtendedPropertyChangeSupport(this, true);
private WinA aWin;
private WinB bWin;
private WinAList aWinList;
private WinA a2;
private WinA a3;
private WinAList aWinList2;
// ------------
// Constructors
// ------------
public Outer() {
// Explicitly call the superclass constructor to prevent the implicit call
super();
this.initialize();
}
// ----------------------
// Accessors and Mutators
// ----------------------
public File getDefaultHelpFile() {
return DefaultHelpFile;
}
public void setDefaultHelpFile(File defaultHelpFile) {
DefaultHelpFile = defaultHelpFile;
UserWindow.createHelp(this, defaultHelpFile);
}
public void setHelpURL(String urlString) {
try {
URL url = new URL(urlString);
UserWindow.createHelp(this, url);
} catch (MalformedURLException e) {
UsageException err = new UsageException("Cannot create help URL", e);
ErrorMgr.addError(err);
throw err;
}
}
protected BindingManager getBindingManager() {
if (this.bindingManager == null) {
this.bindingManager = new BindingManager(this);
}
return bindingManager;
}
public void setAWin(WinA aWin) {
WinA oldValue = this.aWin;
this.aWin = aWin;
this.qq_Listeners.firePropertyChange("AWin", oldValue, this.aWin);
}
public WinA getAWin() {
return this.aWin;
}
public void setBWin(WinB bWin) {
WinB oldValue = this.bWin;
this.bWin = bWin;
this.qq_Listeners.firePropertyChange("BWin", oldValue, this.bWin);
}
public WinB getBWin() {
return this.bWin;
}
public void setAWinList(WinAList aWinList) {
WinAList oldValue = this.aWinList;
this.aWinList = aWinList;
this.qq_Listeners.firePropertyChange("AWinList", oldValue, this.aWinList);
}
public WinAList getAWinList() {
return this.aWinList;
}
public void setA2(WinA a2) {
WinA oldValue = this.a2;
this.a2 = a2;
this.qq_Listeners.firePropertyChange("a2", oldValue, this.a2);
}
public WinA getA2() {
return this.a2;
}
public void setA3(WinA a3) {
WinA oldValue = this.a3;
this.a3 = a3;
this.qq_Listeners.firePropertyChange("a3", oldValue, this.a3);
}
public WinA getA3() {
return this.a3;
}
public void setAWinList2(WinAList aWinList2) {
WinAList oldValue = this.aWinList2;
this.aWinList2 = aWinList2;
this.qq_Listeners.firePropertyChange("AWinList2", oldValue, this.aWinList2);
}
public WinAList getAWinList2() {
return this.aWinList2;
}
// -------
// Methods
// -------
public void addPropertyChangeListener(String property, PropertyChangeListener listener) {
qq_Listeners.addPropertyChangeListener(property, listener);
}
public void addPropertyChangeListener(PropertyChangeListener listener) {
qq_Listeners.addPropertyChangeListener(listener);
}
public void removePropertyChangeListener(String property, PropertyChangeListener listener) {
qq_Listeners.removePropertyChangeListener(property, listener);
}
public void removePropertyChangeListener(PropertyChangeListener listener) {
qq_Listeners.removePropertyChangeListener(listener);
}
/**
* display<p>
* <p>
*/
public void display() {
JMenu sb = MenuFactory.newMenu();
UserWindow.open(this);
this.reparent();
this.getAWin().setAA(FactorySO_proxy.getInstance().getTypeA());
this.getAWinList().setAAA(FactorySO_proxy.getInstance().getArrayOfTypeA());
CompoundField x = this.getAWinList().getqq_AAA();
WidgetState.set((JComponent)x, Constants.FS_INVISIBLE);
WidgetState.set((JComponent)x, Constants.FS_UPDATE);
WidgetState.set((JComponent)this.getAWinList().getqq_AAAArray_A5(), Constants.FS_INVISIBLE);
WidgetState.set((JComponent)x, Constants.FS_INVISIBLE);
WidgetState.set((JComponent)x, Constants.FS_UPDATE);
this.getBWin().setAB(FactorySO_proxy.getInstance().getTypeB());
this.getAWinList2().setAAA(FactorySO_proxy.getInstance().getArrayOfTypeA());
WidgetState.set((JComponent)this.getqq_four(), Constants.FS_INVISIBLE);
this.getA3().setAA(FactorySO_proxy.getInstance().getTypeA());
WidgetState.set((JComponent)this.getqq_four(), Constants.FS_UPDATE);
WidgetState.set((JComponent)this.getAWinList2().getqq_AAA(), Constants.FS_INVISIBLE);
ArrayVisibleRows.set(this.getAWinList2().getqq_AAA(), 10);
WidgetState.set((JComponent)this.getAWinList2().getqq_AAA(), Constants.FS_UPDATE);
IndexValue.set(this.getqq_tabs(), 6);
WidgetState.set((JComponent)TabPages.getTopPage(this.getqq_tabs()), Constants.FS_INVISIBLE);
IndexValue.set(this.getqq_tabs(), 5);
WidgetState.set((JComponent)TabPages.getTopPage(this.getqq_tabs()), Constants.FS_INVISIBLE);
IndexValue.set(this.getqq_tabs(), 2);
// ----------
// Event Loop
// ----------
EventManager.startEventLoop();
try {
EventRegistration TaskHandle_Shutdown_langThreadcurrentThread = ClientEventManager.register( Thread.currentThread(), "Shutdown" );
EventRegistration MenuCommand_Activate_getqq_otherMenu = ClientEventManager.register( this.getqq_otherMenu(), "Activate" );
EventRegistration MenuCommand_Activate_getqq_Dynamic = ClientEventManager.register( this.getqq_Dynamic(), "Activate" );
while (true) {
UIutils.processGUIActions();
EventHandle qq_currentEvent = EventManager.waitForEvent();
if (qq_currentEvent == null)
break;
// -------------
// task.Shutdown
// -------------
if (qq_currentEvent.isEvent(TaskHandle_Shutdown_langThreadcurrentThread)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
break;
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// --------------------
// <otherMenu>.activate
// --------------------
else if (qq_currentEvent.isEvent(MenuCommand_Activate_getqq_otherMenu)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
new OtherClass().display();
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ------------------
// <Dynamic>.activate
// ------------------
else if (qq_currentEvent.isEvent(MenuCommand_Activate_getqq_Dynamic)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
new DynamicTab().display();
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
}
EventManager.deregister( TaskHandle_Shutdown_langThreadcurrentThread );
EventManager.deregister( MenuCommand_Activate_getqq_otherMenu );
EventManager.deregister( MenuCommand_Activate_getqq_Dynamic );
}
//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);
}
}
/**
* reparent<p>
* <p>
*/
public void reparent() {
this.setAWin(new WinA());
Row.set(this.getAWin(), 1);
Column.set(this.getAWin(), 1);
Parent.set(this.getAWin(), this.getqq_one());
this.setAWinList(new WinAList());
Row.set(this.getAWinList(), 1);
Column.set(this.getAWinList(), 1);
Parent.set(this.getAWinList(), this.getqq_two());
this.setBWin(new WinB());
Row.set(this.getBWin(), 1);
Column.set(this.getBWin(), 1);
Parent.set(this.getBWin(), this.getqq_three());
this.setA2(new WinA());
Row.set(this.getA2(), 1);
Column.set(this.getA2(), 2);
Parent.set(this.getA2(), this.getBWin().getqq_aB());
this.setA3(new WinA());
Row.set(this.getA3(), 1);
Column.set(this.getA3(), 1);
Parent.set(this.getA3(), this.getqq_four());
this.setAWinList2(new WinAList());
Row.set(this.getAWinList2(), 2);
Column.set(this.getAWinList2(), 1);
Parent.set(this.getAWinList2(), this.getqq_four());
PictureWin pic = new PictureWin();
Row.set(pic, 1);
Column.set(pic, 1);
Parent.set(pic, this.getqq_five());
Image img = new Image();
Row.set(img, 1);
Column.set(img, 1);
Parent.set(img, this.getqq_six());
}
// ------------------
// Window Definitions
// ------------------
// <editor-fold defaultstate="collapsed" desc="Window Definitions">
private int qq_defaultSet = 1;
private int qq_msgNumber = 0;
private int qq_msgSet = 0;
protected Window primaryWindow = null;
protected int initialX;
protected int initialY;
protected int qq_SystemClosePolicy = Constants.SC_ENABLEDSHUTDOWN;
protected int qq_initialPositionPolicy = Constants.PP_SYSTEMDEFAULT;
public GridField qq_five;
public GridField qq_four;
public GridField qq_one;
public GridField qq_six;
public GridField qq_three;
public GridField qq_two;
public JMenu qq_mainMenu;
public JMenuBar qq_MainMenuBar;
public JMenuItem qq_Dynamic;
public JMenuItem qq_otherMenu;
public JPanel Form;
public Panel qq_Panel15;
public Panel qq_Panel16;
public Panel qq_Panel18;
public Panel qq_Panel21;
public Panel qq_Panel22;
public Panel qq_Panel23;
public TabFolder qq_tabs;
/**
* qq_otherMenu: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_otherMenu() {
if (qq_otherMenu == null) {
qq_otherMenu = MenuFactory.newMenuItem("otherMenu", true);
qq_otherMenu.setVerifyInputWhenFocusTarget(true);
CommandType.set(qq_otherMenu, Constants.CT_CUSTOM);
qq_otherMenu.setText( "Other" );
qq_otherMenu.setVisible(true);
}
return qq_otherMenu;
}
public void setqq_otherMenu(JMenuItem value) {
JMenuItem oldValue = qq_otherMenu;
qq_otherMenu = value;
this.qq_Listeners.firePropertyChange("qq_otherMenu", oldValue, value);
}
/**
* qq_Dynamic: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_Dynamic() {
if (qq_Dynamic == null) {
qq_Dynamic = MenuFactory.newMenuItem("Dynamic", true);
qq_Dynamic.setVerifyInputWhenFocusTarget(true);
CommandType.set(qq_Dynamic, Constants.CT_CUSTOM);
qq_Dynamic.setText( "Dynamic" );
qq_Dynamic.setVisible(true);
}
return qq_Dynamic;
}
public void setqq_Dynamic(JMenuItem value) {
JMenuItem oldValue = qq_Dynamic;
qq_Dynamic = value;
this.qq_Listeners.firePropertyChange("qq_Dynamic", oldValue, value);
}
/**
* qq_mainMenu: transformed from: qqds_Submenu
*/
public JMenu getqq_mainMenu() {
if (qq_mainMenu == null) {
qq_mainMenu = new JMenu();
qq_mainMenu.setName("mainMenu");
qq_mainMenu.setText( "Main" );
qq_mainMenu.setVisible(true);
qq_mainMenu.add(getqq_otherMenu());
qq_mainMenu.add(getqq_Dynamic());
}
return qq_mainMenu;
}
/**
* qq_MainMenuBar: transformed from: qqds_MenuBar
*/
public JMenuBar getqq_MenuBar() {
if (qq_MainMenuBar == null) {
qq_MainMenuBar = MenuFactory.newMenuBar();
qq_MainMenuBar.setName("MainMenuBar");
qq_MainMenuBar.setBorderPainted(false);
this.qq_MainMenuBar.add(getqq_mainMenu());
}
return qq_MainMenuBar;
}
public void setqq_MainMenuBar(JMenuBar value) {
JMenuBar oldValue = qq_MainMenuBar;
qq_MainMenuBar = value;
this.qq_Listeners.firePropertyChange("qq_MainMenuBar", oldValue, value);
}
/**
* qq_one: transformed from: qqds_GridField
* TagId=17
* isInherited=FALSE
* In forte this was a 0x0 grid field.
* There are no cell margins set
* The width policy is set to Natural, and the height policy is set to Natural.
*/
protected void setqq_oneProperties() {
FrameWeight.set(qq_one, Constants.W_ONEPIXEL);
qq_one.setCollapsed(true);
qq_one.setHeightPolicy(Constants.SP_NATURAL);
qq_one.setWidthPolicy(Constants.SP_NATURAL);
qq_one.setBackground(null);
qq_one.setLocation(2, 6);
}
public GridField getqq_one() {
if (qq_one == null) {
qq_one = CompoundFieldFactory.newGridField("one", false);
setqq_oneProperties();
qq_one.setMinimumSize(new Dimension(50, 50));
}
return qq_one;
}
public void setqq_one(GridField value) {
GridField oldValue = qq_one;
qq_one = value;
this.qq_Listeners.firePropertyChange("qq_one", oldValue, value);
}
/**
* qq_Panel23: transformed from: qqds_Panel
* TagId=23
* isInherited=FALSE
*/
protected void setqq_Panel23Properties() {
FrameColor.set(qq_Panel23, Constants.C_INHERIT);
HeightPolicy.set(qq_Panel23, Constants.SP_TO_PARENT);
WidthPolicy.set(qq_Panel23, Constants.SP_TO_PARENT);
qq_Panel23.setLocation(2, 24);
}
public Panel getqq_Panel23() {
if (qq_Panel23 == null) {
qq_Panel23 = CompoundFieldFactory.newPanel("qq_Panel23");
setqq_Panel23Properties();
qq_Panel23.setMinimumSize(new Dimension(0, 0));
qq_Panel23.add( getqq_one() );
}
return qq_Panel23;
}
public void setqq_Panel23(Panel value) {
Panel oldValue = qq_Panel23;
qq_Panel23 = value;
this.qq_Listeners.firePropertyChange("qq_Panel23", oldValue, value);
}
/**
* qq_two: transformed from: qqds_GridField
* TagId=19
* isInherited=FALSE
* In forte this was a 0x0 grid field.
* There are no cell margins set
* The width policy is set to Natural, and the height policy is set to Natural.
*/
protected void setqq_twoProperties() {
FrameWeight.set(qq_two, Constants.W_ONEPIXEL);
qq_two.setCollapsed(true);
qq_two.setHeightPolicy(Constants.SP_NATURAL);
qq_two.setWidthPolicy(Constants.SP_NATURAL);
qq_two.setBackground(null);
qq_two.setLocation(2, 6);
}
public GridField getqq_two() {
if (qq_two == null) {
qq_two = CompoundFieldFactory.newGridField("two", false);
setqq_twoProperties();
qq_two.setMinimumSize(new Dimension(50, 50));
}
return qq_two;
}
public void setqq_two(GridField value) {
GridField oldValue = qq_two;
qq_two = value;
this.qq_Listeners.firePropertyChange("qq_two", oldValue, value);
}
/**
* qq_Panel22: transformed from: qqds_Panel
* TagId=22
* isInherited=FALSE
*/
protected void setqq_Panel22Properties() {
FrameColor.set(qq_Panel22, Constants.C_INHERIT);
HeightPolicy.set(qq_Panel22, Constants.SP_TO_PARENT);
WidthPolicy.set(qq_Panel22, Constants.SP_TO_PARENT);
qq_Panel22.setLocation(2, 24);
}
public Panel getqq_Panel22() {
if (qq_Panel22 == null) {
qq_Panel22 = CompoundFieldFactory.newPanel("qq_Panel22");
setqq_Panel22Properties();
qq_Panel22.setMinimumSize(new Dimension(0, 0));
qq_Panel22.add( getqq_two() );
}
return qq_Panel22;
}
public void setqq_Panel22(Panel value) {
Panel oldValue = qq_Panel22;
qq_Panel22 = value;
this.qq_Listeners.firePropertyChange("qq_Panel22", oldValue, value);
}
/**
* qq_three: transformed from: qqds_GridField
* TagId=20
* isInherited=FALSE
* In forte this was a 0x0 grid field.
* There are no cell margins set
* The width policy is set to Natural, and the height policy is set to Natural.
*/
protected void setqq_threeProperties() {
FrameWeight.set(qq_three, Constants.W_ONEPIXEL);
qq_three.setCollapsed(true);
qq_three.setHeightPolicy(Constants.SP_NATURAL);
qq_three.setWidthPolicy(Constants.SP_NATURAL);
qq_three.setBackground(null);
qq_three.setLocation(2, 6);
}
public GridField getqq_three() {
if (qq_three == null) {
qq_three = CompoundFieldFactory.newGridField("three", false);
setqq_threeProperties();
qq_three.setMinimumSize(new Dimension(50, 50));
}
return qq_three;
}
public void setqq_three(GridField value) {
GridField oldValue = qq_three;
qq_three = value;
this.qq_Listeners.firePropertyChange("qq_three", oldValue, value);
}
/**
* qq_Panel21: transformed from: qqds_Panel
* TagId=21
* isInherited=FALSE
*/
protected void setqq_Panel21Properties() {
FrameColor.set(qq_Panel21, Constants.C_INHERIT);
HeightPolicy.set(qq_Panel21, Constants.SP_TO_PARENT);
WidthPolicy.set(qq_Panel21, Constants.SP_TO_PARENT);
qq_Panel21.setLocation(2, 24);
}
public Panel getqq_Panel21() {
if (qq_Panel21 == null) {
qq_Panel21 = CompoundFieldFactory.newPanel("qq_Panel21");
setqq_Panel21Properties();
qq_Panel21.setMinimumSize(new Dimension(0, 0));
qq_Panel21.add( getqq_three() );
}
return qq_Panel21;
}
public void setqq_Panel21(Panel value) {
Panel oldValue = qq_Panel21;
qq_Panel21 = value;
this.qq_Listeners.firePropertyChange("qq_Panel21", oldValue, value);
}
/**
* qq_four: transformed from: qqds_GridField
* TagId=17
* isInherited=FALSE
* In forte this was a 0x0 grid field.
* There are no cell margins set
* The width policy is set to Natural, and the height policy is set to Natural.
*/
protected void setqq_fourProperties() {
FrameWeight.set(qq_four, Constants.W_ONEPIXEL);
qq_four.setCollapsed(true);
qq_four.setHeightPolicy(Constants.SP_NATURAL);
qq_four.setWidthPolicy(Constants.SP_NATURAL);
qq_four.setBackground(null);
qq_four.setLocation(2, 4);
}
public GridField getqq_four() {
if (qq_four == null) {
qq_four = CompoundFieldFactory.newGridField("four", false);
setqq_fourProperties();
qq_four.setMinimumSize(new Dimension(50, 50));
}
return qq_four;
}
public void setqq_four(GridField value) {
GridField oldValue = qq_four;
qq_four = value;
this.qq_Listeners.firePropertyChange("qq_four", oldValue, value);
}
/**
* qq_Panel16: transformed from: qqds_Panel
* TagId=16
* isInherited=FALSE
*/
protected void setqq_Panel16Properties() {
FrameColor.set(qq_Panel16, Constants.C_INHERIT);
HeightPolicy.set(qq_Panel16, Constants.SP_TO_PARENT);
WidthPolicy.set(qq_Panel16, Constants.SP_TO_PARENT);
qq_Panel16.setLocation(2, 24);
}
public Panel getqq_Panel16() {
if (qq_Panel16 == null) {
qq_Panel16 = CompoundFieldFactory.newPanel("qq_Panel16");
setqq_Panel16Properties();
qq_Panel16.setMinimumSize(new Dimension(0, 0));
qq_Panel16.add( getqq_four() );
}
return qq_Panel16;
}
public void setqq_Panel16(Panel value) {
Panel oldValue = qq_Panel16;
qq_Panel16 = value;
this.qq_Listeners.firePropertyChange("qq_Panel16", oldValue, value);
}
/**
* qq_five: transformed from: qqds_GridField
* TagId=19
* isInherited=FALSE
* In forte this was a 0x0 grid field.
* There are no cell margins set
* The width policy is set to Natural, and the height policy is set to Natural.
*/
protected void setqq_fiveProperties() {
FrameWeight.set(qq_five, Constants.W_ONEPIXEL);
qq_five.setCollapsed(true);
qq_five.setHeightPolicy(Constants.SP_NATURAL);
qq_five.setWidthPolicy(Constants.SP_NATURAL);
qq_five.setBackground(null);
qq_five.setLocation(2, 4);
}
public GridField getqq_five() {
if (qq_five == null) {
qq_five = CompoundFieldFactory.newGridField("five", false);
setqq_fiveProperties();
qq_five.setMinimumSize(new Dimension(50, 50));
}
return qq_five;
}
public void setqq_five(GridField value) {
GridField oldValue = qq_five;
qq_five = value;
this.qq_Listeners.firePropertyChange("qq_five", oldValue, value);
}
/**
* qq_Panel18: transformed from: qqds_Panel
* TagId=18
* isInherited=FALSE
*/
protected void setqq_Panel18Properties() {
FrameColor.set(qq_Panel18, Constants.C_INHERIT);
HeightPolicy.set(qq_Panel18, Constants.SP_TO_PARENT);
WidthPolicy.set(qq_Panel18, Constants.SP_TO_PARENT);
qq_Panel18.setLocation(2, 24);
}
public Panel getqq_Panel18() {
if (qq_Panel18 == null) {
qq_Panel18 = CompoundFieldFactory.newPanel("qq_Panel18");
setqq_Panel18Properties();
qq_Panel18.setMinimumSize(new Dimension(0, 0));
qq_Panel18.add( getqq_five() );
}
return qq_Panel18;
}
public void setqq_Panel18(Panel value) {
Panel oldValue = qq_Panel18;
qq_Panel18 = value;
this.qq_Listeners.firePropertyChange("qq_Panel18", oldValue, value);
}
/**
* qq_six: transformed from: qqds_GridField
* TagId=20
* isInherited=FALSE
* In forte this was a 0x0 grid field.
* There are no cell margins set
* The width policy is set to Natural, and the height policy is set to Natural.
*/
protected void setqq_sixProperties() {
FrameWeight.set(qq_six, Constants.W_ONEPIXEL);
qq_six.setCollapsed(true);
qq_six.setHeightPolicy(Constants.SP_NATURAL);
qq_six.setWidthPolicy(Constants.SP_NATURAL);
qq_six.setBackground(null);
qq_six.setLocation(0, 4);
}
public GridField getqq_six() {
if (qq_six == null) {
qq_six = CompoundFieldFactory.newGridField("six", false);
setqq_sixProperties();
qq_six.setMinimumSize(new Dimension(50, 50));
}
return qq_six;
}
public void setqq_six(GridField value) {
GridField oldValue = qq_six;
qq_six = value;
this.qq_Listeners.firePropertyChange("qq_six", oldValue, value);
}
/**
* qq_Panel15: transformed from: qqds_Panel
* TagId=15
* isInherited=FALSE
*/
protected void setqq_Panel15Properties() {
FrameColor.set(qq_Panel15, Constants.C_INHERIT);
HeightPolicy.set(qq_Panel15, Constants.SP_TO_PARENT);
WidthPolicy.set(qq_Panel15, Constants.SP_TO_PARENT);
qq_Panel15.setLocation(2, 24);
}
public Panel getqq_Panel15() {
if (qq_Panel15 == null) {
qq_Panel15 = CompoundFieldFactory.newPanel("qq_Panel15");
setqq_Panel15Properties();
qq_Panel15.setMinimumSize(new Dimension(0, 0));
qq_Panel15.add( getqq_six() );
}
return qq_Panel15;
}
public void setqq_Panel15(Panel value) {
Panel oldValue = qq_Panel15;
qq_Panel15 = value;
this.qq_Listeners.firePropertyChange("qq_Panel15", oldValue, value);
}
/**
* qq_tabs: transformed from: qqds_TabFolder
* TagId=14
* isInherited=FALSE
*/
public TabFolder getqq_tabs() {
if (qq_tabs == null) {
qq_tabs = CompoundFieldFactory.newTabFolder("tabs", JTabbedPane.SCROLL_TAB_LAYOUT);
WidthPolicy.set(qq_tabs, Constants.SP_NATURAL);
HeightPolicy.set(qq_tabs, Constants.SP_NATURAL);
qq_tabs.setSize(new Dimension(205, 218));
qq_tabs.setMinimumSize(new Dimension(205, 218));
qq_tabs.setPreferredSize(new Dimension(205, 218));
qq_tabs.setLocation(16, 24);
// TODO [1004,Minor]: No data mapping has been generated for this field
qq_tabs.addTab("Tab 1", getqq_Panel23());
qq_tabs.addTab("Tab 2", getqq_Panel22());
qq_tabs.addTab("Tab 3", getqq_Panel21());
qq_tabs.addTab("Tab 4", getqq_Panel16());
qq_tabs.addTab("Tab 5", getqq_Panel18());
qq_tabs.addTab("Tab 6", getqq_Panel15());
}
return qq_tabs;
}
public void setqq_tabs(TabFolder value) {
TabFolder oldValue = qq_tabs;
qq_tabs = value;
this.qq_Listeners.firePropertyChange("qq_tabs", oldValue, value);
}
/**
* Form: transformed from: qqds_Panel
* TagId=1
* isInherited=FALSE
*/
protected void setFormProperties() {
Form.setOpaque( true );
}
public JPanel getForm() {
if (Form == null) {
Form = CompoundFieldFactory.newForm();
this.setFormProperties();
Form.add( getqq_tabs() );
}
return Form;
}
public void setForm(JPanel value) {
JPanel oldValue = Form;
Form = value;
this.qq_Listeners.firePropertyChange("Form", oldValue, value);
}
/**
* Gets the system close policy
*
* The SystemClosePolicy property determines how a window responds to user attempts to close it by using the native window system through the window close box or a window system menu command.
* SystemClosePolicy responds to window closure attempts according to the following parameters:
* <li>Constants.SC_DISABLED Does not allow window closure through window system.</li>
* <li>Constants.SC_ENABLEDNOFINALIZE Window can be closed, but the contents are not verified, guaranteeing that the window will close (for example, the user clicks the Cancel button).</li>
* <li>Constants.SC_ENABLEDFINALIZE Posts the RequestFinalize method on the window, with a reason code of zero.</li>
* <li>Constants.SC_ENABLEDSHUTDOWN Posts Shutdown event to window�s task and to all tasks started by that task. This is the default value.</li>
*/
public int getSystemClosePolicy() {
return qq_SystemClosePolicy;
}
/**
* Sets the system close policy
*
* The SystemClosePolicy property determines how a window responds to user attempts to close it by using the native window system through the window close box or a window system menu command.
* SystemClosePolicy responds to window closure attempts according to the following parameters:
* <li>Constants.SC_DISABLED Does not allow window closure through window system.</li>
* <li>Constants.SC_ENABLEDNOFINALIZE Window can be closed, but the contents are not verified, guaranteeing that the window will close (for example, the user clicks the Cancel button).</li>
* <li>Constants.SC_ENABLEDFINALIZE Posts the RequestFinalize method on the window, with a reason code of zero.</li>
* <li>Constants.SC_ENABLEDSHUTDOWN Posts Shutdown event to window�s task and to all tasks started by that task. This is the default value.</li>
*/
public void setSystemClosePolicy(int policy) {
this.qq_SystemClosePolicy = policy;
if (policy == Constants.SC_DISABLED) {
this.addComponentListener(new CloseHideAdaptor(this));
} else {
for (ComponentListener cl : this.getComponentListeners()) {
if (cl instanceof CloseHideAdaptor) {
this.removeComponentListener(cl);
break;
}
}
}
}
/**
* Gets the initial position policy
*
* The InitialPositionPolicy property sets the position of a main window when it is first displayed, relative to a primary window or the screen.
* You use the InitialPositionPolicy property in conjunction with the InitialX, InitialY properties.
* InitialPositionPolicy sets the position of a window according to the following values:
* <li>Constants.PP_SYSTEMDEFAULT Accepts the default window system placement specification.</li>
* <li>Constants.PP_PRIMARYCENTERED Centers the window relative to the window specified as the PrimaryWindow property.</li>
* <li>Constants.PP_PRIMARYRELATIVE Positions the window relative to the primary window, using the PrimaryWindow, InitialX and InitialY attributes.</li>
* <li>Constants.PP_SCREENCENTERED Centers the window relative to the screen.</li>
* <li>Constants.PP_SCREENRELATIVE Positions the window relative to the screen, using the InitialX and InitialY properties.</li>
*/
public int getInitialPositionPolicy() {
return qq_initialPositionPolicy;
}
/**
* Sets the initial position policy
*
* The InitialPositionPolicy property sets the position of a main window when it is first displayed, relative to a primary window or the screen.
* You use the InitialPositionPolicy property in conjunction with the InitialX, InitialY properties.
* InitialPositionPolicy sets the position of a window according to the following values:
* <li>Constants.PP_SYSTEMDEFAULT Accepts the default window system placement specification.</li>
* <li>Constants.PP_PRIMARYCENTERED Centers the window relative to the window specified as the PrimaryWindow property.</li>
* <li>Constants.PP_PRIMARYRELATIVE Positions the window relative to the primary window, using the PrimaryWindow, InitialX and InitialY attributes.</li>
* <li>Constants.PP_SCREENCENTERED Centers the window relative to the screen.</li>
* <li>Constants.PP_SCREENRELATIVE Positions the window relative to the screen, using the InitialX and InitialY properties.</li>
*/
public void setInitialPositionPolicy(int policy) {
this.qq_initialPositionPolicy = policy;
}
/**
* Gets the primary window
*
* The primary window property designates a window, known as a primary window, to serve as an initial position reference for the current window.
* When a main window first realizes itself through the Open method on the UserWindow, it assumes a position according to the InitialPositionPolicy attribute.
* When the InitialPositionPolicy property is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_PRIMARYCENTERED (centered on the primary window),
* the window realizes itself in a position relative to the designated primary window.<p>
* <p>
* To take a position relative to the primary window, a window uses the PrimaryWindow attribute in conjunction with the InitialX and InitialY properties, which specify the window�s horizontal and vertical coordinates.
*/
public Window getPrimaryWindow() {
return this.primaryWindow;
}
/**
* Sets the primary window
*
* The primary window property designates a window, known as a primary window, to serve as an initial position reference for the current window.
* When a main window first realizes itself through the Open method on the UserWindow, it assumes a position according to the InitialPositionPolicy attribute.
* When the InitialPositionPolicy property is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_PRIMARYCENTERED (centered on the primary window),
* the window realizes itself in a position relative to the designated primary window.<p>
* <p>
* To take a position relative to the primary window, a window uses the PrimaryWindow attribute in conjunction with the InitialX and InitialY properties, which specify the window�s horizontal and vertical coordinates.
*/
public void setPrimaryWindow(Window value) {
this.primaryWindow = value;
}
/**
* Gets the InitialX value
*
* The InitialX property (integer) is the window�s initial horizontal screen position, relative to a primary window or the screen. It is specified in mils.
* InitialX applies only to main windows and only when a window�s InitialPositionPolicy attribute is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_SCREENRELATIVE (relative to the screen).
* InitialX, and its corollary, InitialY, work in conjunction with the PrimaryWindow and InitialPositionPolicy attributes to determine the position of a main window when it is first realized.
*/
public int getInitialX() {
return initialX;
}
/**
* Sets the InitialX value
*
* The InitialX property (integer) is the window�s initial horizontal screen position, relative to a primary window or the screen. It is specified in mils.
* InitialX applies only to main windows and only when a window�s InitialPositionPolicy attribute is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_SCREENRELATIVE (relative to the screen).
* InitialX, and its corollary, InitialY, work in conjunction with the PrimaryWindow and InitialPositionPolicy attributes to determine the position of a main window when it is first realized.
*/
public void setInitialX(int value) {
this.initialX = value;
}
/**
* Gets the InitialY value
*
* The InitialY property (integer) is the window�s initial vertical screen position, relative to a primary window or the screen. It is specified in mils.
* InitialY applies only to main windows and only when a window�s InitialPositionPolicy attribute is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_SCREENRELATIVE (relative to the screen).
* InitialY, and its corollary, InitialX, work in conjunction with the PrimaryWindow and InitialPositionPolicy attributes to determine the position of a main window when it is first realized.
*/
public int getInitialY() {
return initialY;
}
/**
* Sets the InitialY value
*
* The InitialY property (integer) is the window�s initial vertical screen position, relative to a primary window or the screen. It is specified in mils.
* InitialY applies only to main windows and only when a window�s InitialPositionPolicy attribute is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_SCREENRELATIVE (relative to the screen).
* InitialY, and its corollary, InitialX, work in conjunction with the PrimaryWindow and InitialPositionPolicy attributes to determine the position of a main window when it is first realized.
*/
public void setInitialY(int value) {
this.initialY = value;
}
/**
* Gets the default message set number for the window and its widgets.
*/
public int getSetNum() {
return this.qq_defaultSet;
}
/**
* Sets the default message set number for the window and its widgets.
*/
public void setSetNum(int value) {
this.qq_defaultSet = value;
}
/**
* Gets the message set number for the message number of the window's title.
*/
public int getTitleSetNum() {
return this.qq_msgSet;
}
/**
* Sets the message set number for the message number of the window's title.
*/
public void setTitleSetNum(int value) {
this.qq_msgSet = value;
}
/**
* Gets the message number for the message number of the window's title.
*/
public int getTitleMsgNum() {
return this.qq_msgNumber;
}
/**
* Sets the message number for the message number of the window's title.
*/
public void setTitleMsgNum(int value) {
this.qq_msgNumber = value;
}
/**
* Initialise the window and all its children.
*/
protected void initialize() {
if (this.Form == null) {
this.setName( "Outer" );
this.setTitle( "" );
this.setSystemClosePolicy(Constants.SC_ENABLEDSHUTDOWN);
this.setJMenuBar( getqq_MenuBar() );
if (this.getContentPane() != this.getForm()) {
this.setContentPane(getForm());
}
this.qq_setupWindowUsage();
this.setResizable( false );
this.setAlwaysOnTop(false);
UserWindow.setIconizeEnabled(this, true);
WindowManager.addWindowListener(this);
this.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
this.setUsage(DisplayProject.Constants.WU_UPDATE);
UIutils.processGUIActions();
this.pack();
this.setInitialX(0);
this.setInitialY(0);
this.setInitialPositionPolicy(Constants.PP_SYSTEMDEFAULT);
}
}
// ----------------
// Window usage
//-----------------
protected WindowUsageMap usage = new WindowUsageMap();
public int getUsage() {
return this.usage.getUsage();
}
public WindowUsageMap getUsageMap() {
return this.usage;
}
/**
* Sets the window usage
*
* The Usage property sets the state for all a window�s child widgets at once, providing collective widget state changes on a predefined basis. A widget�s state determines how the widget reacts to mouse actions and how it displays itself. A window�s Usage property provides a convenient way to control the states of a group of widgets in the context of their parent window. With the Usage attribute, you can synchronize widget states to conform to a pattern you establish for the window.
* The Usage attribute accepts the following values:
* <li>Constants.WU_EDIT Edit usage: widgets themselves are editable, but not underlying data.</li>
* <li>Constants.WU_QUERY Query only usage: widget data is editable, but not widgets themselves.</li>
* <li>Constants.WU_UPDATE Update usage: mouse actions and keyboard input accepted. Widgets themselves are changeable. This is the default.</li>
* <li>Constants.WU_USER1 A user-defined usage. Default values same as WU_UPDATE.</li>
* <li>Constants.WU_USER2 A user-defined usage. Default values same as WU_UPDATE.</li>
* <li>Constants.WU_USER3 A user-defined usage. Default values same as WU_UPDATE.</li>
* <li>Constants.WU_VIEW View-only usage: no keyboard input is accepted. Widget posts Click events for mouse clicks.</li>
*/
public void setUsage(int usage) {
this.usage.setUsage(usage);
}
public void qq_setupWindowUsage() {
this.usage = new WindowUsageMap();
this.usage.add(getqq_otherMenu(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_Dynamic(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_mainMenu(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_tabs(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_Panel18(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_five(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_Panel15(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_six(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_Panel23(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_one(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_Panel21(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_three(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_Panel16(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_four(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_Panel22(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_two(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
}
// </editor-fold>
// -----------
// Main method
// -----------
public static void main( String[] args ) {
FrameworkUtils.setCmdLineArgs(args);
AppletConnectionInfo client = null;
try {
// Install our own focus manager. MUST be done prior to setting the
// UIManager, otherwise you'll run into issues like things have the wrong focus.
KeyboardFocusManager.setCurrentKeyboardFocusManager(new ForteKeyboardFocusManager());
UIManager.setLookAndFeel(new Win32LookAndFeel());
client = UserWindow.postAPPLETStarted();
Outer outer_start = new Outer();
outer_start.display();
UserWindow.postAPPLETStopped(client);
System.exit(0);
} catch (Throwable e) {
ErrorMgr.showErrors(null, "Unhandled exception", e);
UserWindow.postAPPLETStopped(client);
System.exit(0);
}
}
} // end class Outer
// c Pass 2 Conversion Time: 874 milliseconds