package ArrayWithGrid;
import ArrayWithGrid.Array_Of_Helicopter;
import ArrayWithGrid.Helicopter;
import DisplayProject.ArrayColumn;
import DisplayProject.ArrayFieldModel;
import DisplayProject.CloseHideAdaptor;
import DisplayProject.Constants;
import DisplayProject.CursorMgr;
import DisplayProject.DataField;
import DisplayProject.DropListModel;
import DisplayProject.GridField;
import DisplayProject.TableJButton;
import DisplayProject.UDSWindow;
import DisplayProject.UIutils;
import DisplayProject.WindowManager;
import DisplayProject.WindowUsageMap;
import DisplayProject.actions.AppletConnectionInfo;
import DisplayProject.actions.Caption;
import DisplayProject.actions.FrameColor;
import DisplayProject.actions.HeightPolicy;
import DisplayProject.actions.UserWindow;
import DisplayProject.actions.WidthPolicy;
import DisplayProject.binding.BindingManager;
import DisplayProject.binding.beans.ExtendedPropertyChangeSupport;
import DisplayProject.binding.beans.Observable;
import DisplayProject.controls.ArrayField;
import DisplayProject.controls.DropList;
import DisplayProject.events.ClientEventManager;
import DisplayProject.factory.CompoundFieldFactory;
import DisplayProject.factory.DataFieldFactory;
import DisplayProject.factory.DropFillinFactory;
import DisplayProject.factory.PushButtonFactory;
import DisplayProject.factory.TableFactory;
import DisplayProject.plaf.Win32LookAndFeel;
import DisplayProject.table.ArrayFieldCellHelper;
import DisplayProject.table.FormattedCellEditor;
import DisplayProject.table.FormattedCellRenderer;
import DisplayProject.table.GridFieldCellEditor;
import DisplayProject.table.GridFieldCellRenderer;
import Framework.Array_Of_ListElement;
import Framework.ErrorMgr;
import Framework.EventHandle;
import Framework.EventManager;
import Framework.EventRegistration;
import Framework.File;
import Framework.ForteKeyboardFocusManager;
import Framework.FrameworkUtils;
import Framework.ListElement;
import Framework.RuntimeProperties;
import Framework.UsageException;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import java.awt.KeyboardFocusManager;
import java.awt.Window;
import java.awt.event.ComponentListener;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.Serializable;
import java.lang.String;
import java.net.MalformedURLException;
import java.net.URL;
import javax.swing.BorderFactory;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.UIManager;
/**
* Main<p>
* <p>
* @author Generated from Forte
* @since 19-Nov-2008
*/
@RuntimeProperties(isDistributed=false, isAnchored=false, isShared=false, isTransactional=false)
@UDSWindow()
@SuppressWarnings("serial")
public class Main
extends JFrame
implements Serializable, Observable
{
// ----------
// Attributes
// ----------
protected File DefaultHelpFile;
protected BindingManager bindingManager = null;
public PropertyChangeSupport qq_Listeners = new ExtendedPropertyChangeSupport(this, true);
private Array_Of_Helicopter<Helicopter> heliList;
private Array_Of_Helicopter<Helicopter> wishList;
private Array_Of_Helicopter<Helicopter> heliListWithButton;
// ------------
// Constructors
// ------------
public Main() {
// Explicitly call the superclass constructor to prevent the implicit call
super();
this.initialize();
this.setHeliList(new Array_Of_Helicopter<Helicopter>());
Helicopter aHeli = new Helicopter();
aHeli.setMake("Robinson");
aHeli.setModel("R22");
aHeli.setBlades(2);
aHeli.getEngine().setPower(240f);
aHeli.getEngine().setCylinders(4);
aHeli.getEngine().setCapacity(240f);
aHeli.getEngine().setCompany("Lycoming");
this.getHeliList().add(aHeli);
aHeli = new Helicopter();
aHeli.setMake("Robinson");
aHeli.setModel("R44");
aHeli.setBlades(2);
aHeli.getEngine().setPower(360f);
aHeli.getEngine().setCylinders(6);
aHeli.getEngine().setCapacity(540f);
aHeli.getEngine().setCompany("Lycoming");
this.getHeliList().add(aHeli);
this.setWishList(new Array_Of_Helicopter<Helicopter>());
this.setHeliListWithButton(this.getHeliList());
}
// ----------------------
// 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 setHeliList(Array_Of_Helicopter<Helicopter> heliList) {
Array_Of_Helicopter<Helicopter> oldValue = this.heliList;
this.heliList = heliList;
this.qq_Listeners.firePropertyChange("heliList", oldValue, this.heliList);
}
public Array_Of_Helicopter<Helicopter> getHeliList() {
return this.heliList;
}
public void setWishList(Array_Of_Helicopter<Helicopter> wishList) {
Array_Of_Helicopter<Helicopter> oldValue = this.wishList;
this.wishList = wishList;
this.qq_Listeners.firePropertyChange("wishList", oldValue, this.wishList);
}
public Array_Of_Helicopter<Helicopter> getWishList() {
return this.wishList;
}
public void setHeliListWithButton(Array_Of_Helicopter<Helicopter> heliListWithButton) {
Array_Of_Helicopter<Helicopter> oldValue = this.heliListWithButton;
this.heliListWithButton = heliListWithButton;
this.qq_Listeners.firePropertyChange("heliListWithButton", oldValue, this.heliListWithButton);
}
public Array_Of_Helicopter<Helicopter> getHeliListWithButton() {
return this.heliListWithButton;
}
// -------
// Methods
// -------
public void addPropertyChangeListener(String property, PropertyChangeListener listener) {
qq_Listeners.addPropertyChangeListener(property, listener);
}
public void addPropertyChangeListener(PropertyChangeListener listener) {
qq_Listeners.addPropertyChangeListener(listener);
}
public void removePropertyChangeListener(String property, PropertyChangeListener listener) {
qq_Listeners.removePropertyChangeListener(property, listener);
}
public void removePropertyChangeListener(PropertyChangeListener listener) {
qq_Listeners.removePropertyChangeListener(listener);
}
/**
* display<p>
* <p>
*/
public void display() {
UserWindow.open(this);
// ----------
// Event Loop
// ----------
EventManager.startEventLoop();
try {
EventRegistration TaskHandle_Shutdown_langThreadcurrentThread = ClientEventManager.register( Thread.currentThread(), "Shutdown" );
while (true) {
UIutils.processGUIActions();
EventHandle qq_currentEvent = EventManager.waitForEvent();
if (qq_currentEvent == null)
break;
// -------------
// task.Shutdown
// -------------
if (qq_currentEvent.isEvent(TaskHandle_Shutdown_langThreadcurrentThread)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
break;
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
}
EventManager.deregister( TaskHandle_Shutdown_langThreadcurrentThread );
}
//catch (Exception qq_error) {
//Logger.getLogger("task.part.Event").error("Event loop terminated by unhandled exception: " + qq_error.getMessage(), qq_error );
//throw qq_error;
//}
finally {
EventManager.endEventLoop();
UserWindow.close(this);
}
}
// ------------------
// Window Definitions
// ------------------
// <editor-fold defaultstate="collapsed" desc="Window Definitions">
private int qq_defaultSet = 1;
private int qq_msgNumber = 0;
private int qq_msgSet = 0;
protected Window primaryWindow = null;
protected int initialX;
protected int initialY;
protected int qq_SystemClosePolicy = Constants.SC_ENABLEDSHUTDOWN;
protected int qq_initialPositionPolicy = Constants.PP_SYSTEMDEFAULT;
public ArrayField qq_HeliList;
public ArrayField qq_HeliListWithButton;
public ArrayField qq_WishList;
public DataField qq_HeliListArray_Blades;
public DataField qq_HeliListArray_Engine_Capacity;
public DataField qq_HeliListArray_Engine_Cylinders;
public DataField qq_HeliListArray_Engine_Power;
public DataField qq_HeliListArray_Make;
public DataField qq_HeliListArray_Model;
public DataField qq_HeliListWithButtonArray_Blades;
public DataField qq_HeliListWithButtonArray_Make;
public DataField qq_HeliListWithButtonArray_Model;
public DataField qq_WishListArray_Blades;
public DataField qq_WishListArray_Engine_Capacity;
public DataField qq_WishListArray_Engine_Cylinders;
public DataField qq_WishListArray_Engine_Power;
public DataField qq_WishListArray_Make;
public DataField qq_WishListArray_Model;
public DropList qq_HeliListArray_Engine_Company;
public DropList qq_WishListArray_Engine_Company;
public GridField qq_HeliListArray_Engine;
public GridField qq_HeliListWithButtonArray_HeliListWithButtonArray_GridField49;
public GridField qq_WishListArray_Engine;
public JPanel Form;
public JScrollPane qq_HeliListWithButton_sp;
public JScrollPane qq_HeliList_sp;
public JScrollPane qq_WishList_sp;
public TableJButton qq_HeliListWithButtonArray_aButton;
/**
* qq_HeliList_sp: transformed from: qqds_ArrayField
* TagId=12
* isInherited=FALSE
*/
public JScrollPane getqq_HeliList_sp() {
if (qq_HeliList_sp == null) {
qq_HeliList_sp = CompoundFieldFactory.newScrollPane();
qq_HeliList_sp.setName("HeliList");
qq_HeliList_sp.setViewportView(getqq_HeliList());
qq_HeliList_sp.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
qq_HeliList_sp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
qq_HeliList_sp.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));
qq_HeliList_sp.setBackground(null);
qq_HeliList_sp.getViewport().setBackground(null);
Caption.set(qq_HeliList_sp, "Helicopter List");
FrameColor.set(qq_HeliList_sp, Constants.C_INHERIT);
WidthPolicy.set(qq_HeliList_sp, Constants.SP_NATURAL);
HeightPolicy.set(qq_HeliList_sp, Constants.SP_NATURAL);
qq_HeliList_sp.setSize(new Dimension(547, 100));
qq_HeliList_sp.setMinimumSize(new Dimension(547, 100));
qq_HeliList_sp.setPreferredSize(new Dimension(547, 100));
qq_HeliList_sp.setLocation(7, 9);
}
return qq_HeliList_sp;
}
public void setqq_HeliList_sp(JScrollPane value) {
JScrollPane oldValue = qq_HeliList_sp;
qq_HeliList_sp = value;
this.qq_Listeners.firePropertyChange("qq_HeliList_sp", oldValue, value);
}
/**
* qq_HeliListArray_Engine_Company: transformed from: qqds_DropList
* TagId=20
* isInherited=FALSE
*/
public DropList getqq_HeliListArray_Engine_Company() {
if (qq_HeliListArray_Engine_Company == null) {
Array_Of_ListElement<ListElement> elements = new Array_Of_ListElement<ListElement>();
elements.add( new ListElement( 1, "Lycoming", ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
elements.add( new ListElement( 2, "Rotrax", ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
qq_HeliListArray_Engine_Company = DropFillinFactory.newDropList();
qq_HeliListArray_Engine_Company.setName("Company");
ArrayFieldCellHelper.getArrayColumnBindingManager(getqq_HeliListArray_Engine()).bindComponent(qq_HeliListArray_Engine_Company, "company", elements);
qq_HeliListArray_Engine_Company.addActionListener( (DropListModel)qq_HeliListArray_Engine_Company.getModel() );
// OPTIONAL UIutils.reloadLabelText(qq_HeliListArray_Engine_Company, mcat);
qq_HeliListArray_Engine_Company.setMaximumRowCount(4);
ArrayFieldCellHelper.setUpCellEditor(qq_HeliListArray_Engine_Company, qq_HeliList, 3, true);
WidthPolicy.set(qq_HeliListArray_Engine_Company, Constants.SP_NATURAL);
HeightPolicy.set(qq_HeliListArray_Engine_Company, Constants.SP_NATURAL);
qq_HeliListArray_Engine_Company.setMinimumSize(new Dimension(78, 21));
}
return qq_HeliListArray_Engine_Company;
}
public void setqq_HeliListArray_Engine_Company(DropList value) {
DropList oldValue = qq_HeliListArray_Engine_Company;
qq_HeliListArray_Engine_Company = value;
this.qq_Listeners.firePropertyChange("qq_HeliListArray_Engine_Company", oldValue, value);
}
/**
* qq_HeliListArray_Engine_Capacity: transformed from: qqds_DataField
* TagId=21
* isInherited=FALSE
*/
public DataField getqq_HeliListArray_Engine_Capacity() {
if (qq_HeliListArray_Engine_Capacity == null) {
// Mask type: Constants.MK_FLOAT
qq_HeliListArray_Engine_Capacity = DataFieldFactory.newDataField("Capacity", 8, Constants.MK_FLOAT);
qq_HeliListArray_Engine_Capacity.setOriginalFormatText(null);
qq_HeliListArray_Engine_Capacity.setHorizontalAlignment(JTextField.RIGHT);
ArrayFieldCellHelper.getArrayColumnBindingManager(getqq_HeliListArray_Engine()).bindComponent(qq_HeliListArray_Engine_Capacity, "capacity");
WidthPolicy.set(qq_HeliListArray_Engine_Capacity, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_HeliListArray_Engine_Capacity, Constants.SP_NATURAL);
qq_HeliListArray_Engine_Capacity.setMinimumSize(new Dimension(57, 19));
qq_HeliListArray_Engine_Capacity.setSize(new Dimension(57, 19));
ArrayFieldCellHelper.setUpCellEditor(qq_HeliListArray_Engine_Capacity, qq_HeliList, 3, true);
}
return qq_HeliListArray_Engine_Capacity;
}
public void setqq_HeliListArray_Engine_Capacity(DataField value) {
DataField oldValue = qq_HeliListArray_Engine_Capacity;
qq_HeliListArray_Engine_Capacity = value;
this.qq_Listeners.firePropertyChange("qq_HeliListArray_Engine_Capacity", oldValue, value);
}
/**
* qq_HeliListArray_Engine_Cylinders: transformed from: qqds_DataField
* TagId=22
* isInherited=FALSE
*/
public DataField getqq_HeliListArray_Engine_Cylinders() {
if (qq_HeliListArray_Engine_Cylinders == null) {
// Mask type: Constants.MK_FLOAT
qq_HeliListArray_Engine_Cylinders = DataFieldFactory.newDataField("Cylinders", 8, Constants.MK_FLOAT);
qq_HeliListArray_Engine_Cylinders.setOriginalFormatText(null);
qq_HeliListArray_Engine_Cylinders.setHorizontalAlignment(JTextField.RIGHT);
ArrayFieldCellHelper.getArrayColumnBindingManager(getqq_HeliListArray_Engine()).bindComponent(qq_HeliListArray_Engine_Cylinders, "cylinders");
WidthPolicy.set(qq_HeliListArray_Engine_Cylinders, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_HeliListArray_Engine_Cylinders, Constants.SP_NATURAL);
qq_HeliListArray_Engine_Cylinders.setMinimumSize(new Dimension(57, 19));
qq_HeliListArray_Engine_Cylinders.setSize(new Dimension(57, 19));
ArrayFieldCellHelper.setUpCellEditor(qq_HeliListArray_Engine_Cylinders, qq_HeliList, 3, true);
}
return qq_HeliListArray_Engine_Cylinders;
}
public void setqq_HeliListArray_Engine_Cylinders(DataField value) {
DataField oldValue = qq_HeliListArray_Engine_Cylinders;
qq_HeliListArray_Engine_Cylinders = value;
this.qq_Listeners.firePropertyChange("qq_HeliListArray_Engine_Cylinders", oldValue, value);
}
/**
* qq_HeliListArray_Engine_Power: transformed from: qqds_DataField
* TagId=23
* isInherited=FALSE
*/
public DataField getqq_HeliListArray_Engine_Power() {
if (qq_HeliListArray_Engine_Power == null) {
// Mask type: Constants.MK_FLOAT
qq_HeliListArray_Engine_Power = DataFieldFactory.newDataField("Power", 8, Constants.MK_FLOAT);
qq_HeliListArray_Engine_Power.setOriginalFormatText(null);
qq_HeliListArray_Engine_Power.setHorizontalAlignment(JTextField.RIGHT);
ArrayFieldCellHelper.getArrayColumnBindingManager(getqq_HeliListArray_Engine()).bindComponent(qq_HeliListArray_Engine_Power, "power");
WidthPolicy.set(qq_HeliListArray_Engine_Power, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_HeliListArray_Engine_Power, Constants.SP_NATURAL);
qq_HeliListArray_Engine_Power.setMinimumSize(new Dimension(57, 19));
qq_HeliListArray_Engine_Power.setSize(new Dimension(57, 19));
ArrayFieldCellHelper.setUpCellEditor(qq_HeliListArray_Engine_Power, qq_HeliList, 3, true);
}
return qq_HeliListArray_Engine_Power;
}
public void setqq_HeliListArray_Engine_Power(DataField value) {
DataField oldValue = qq_HeliListArray_Engine_Power;
qq_HeliListArray_Engine_Power = value;
this.qq_Listeners.firePropertyChange("qq_HeliListArray_Engine_Power", oldValue, value);
}
/**
* qq_HeliList: transformed from: qqds_ArrayField
* TagId=12
* isInherited=FALSE
*/
public ArrayField getqq_HeliList() {
if (qq_HeliList == null) {
qq_HeliList = TableFactory.newArrayField("HeliList", 21);
this.getBindingManager().bindComponent(qq_HeliList, "heliList", Helicopter.class,
new String[] { "make",
"model",
"blades",
"engine" });
qq_HeliList.setVisibleRows(3);
((ArrayFieldModel)qq_HeliList.getModel()).setAllowsAppend(true);
// === Column model setup ===
// Make converted from qqds_DataField
ArrayColumn qq_HeliListArray_Make_Column = new ArrayColumn("Make", 0, 143, new FormattedCellRenderer(getqq_HeliListArray_Make()), new FormattedCellEditor(getqq_HeliListArray_Make()), true);
qq_HeliListArray_Make_Column.setHeaderValue("Make");
qq_HeliListArray_Make_Column.setVisible(true);
qq_HeliList.addColumn(qq_HeliListArray_Make_Column);
// Model converted from qqds_DataField
ArrayColumn qq_HeliListArray_Model_Column = new ArrayColumn("Model", 1, 102, new FormattedCellRenderer(getqq_HeliListArray_Model()), new FormattedCellEditor(getqq_HeliListArray_Model()), true);
qq_HeliListArray_Model_Column.setHeaderValue("Model");
qq_HeliListArray_Model_Column.setVisible(true);
qq_HeliList.addColumn(qq_HeliListArray_Model_Column);
// Blades converted from qqds_DataField
ArrayColumn qq_HeliListArray_Blades_Column = new ArrayColumn("Blades", 2, 36, new FormattedCellRenderer(getqq_HeliListArray_Blades()), new FormattedCellEditor(getqq_HeliListArray_Blades()), true);
qq_HeliListArray_Blades_Column.setHeaderValue("Blades");
qq_HeliListArray_Blades_Column.setVisible(true);
qq_HeliList.addColumn(qq_HeliListArray_Blades_Column);
// Engine converted from qqds_GridField
// TODO [1075,Critical]: A GridField has been used as a Column Template in an ArrayField and may not translate correctly.
ArrayColumn qq_HeliListArray_Engine_Column = new ArrayColumn("Engine", 3, 247, new GridFieldCellRenderer(getqq_HeliListArray_Engine()), new GridFieldCellEditor(getqq_HeliListArray_Engine()));
qq_HeliListArray_Engine_Column.setHeaderValue("Engine");
qq_HeliListArray_Engine_Column.setVisible(true);
qq_HeliList.addColumn(qq_HeliListArray_Engine_Column);
// === End column model ===
TableFactory.postModelArrayField(qq_HeliList);
}
return qq_HeliList;
}
public void setqq_HeliList(ArrayField value) {
ArrayField oldValue = qq_HeliList;
qq_HeliList = value;
this.qq_Listeners.firePropertyChange("qq_HeliList", oldValue, value);
}
/**
* qq_WishList_sp: transformed from: qqds_ArrayField
* TagId=27
* isInherited=FALSE
*/
public JScrollPane getqq_WishList_sp() {
if (qq_WishList_sp == null) {
qq_WishList_sp = CompoundFieldFactory.newScrollPane();
qq_WishList_sp.setName("WishList");
qq_WishList_sp.setViewportView(getqq_WishList());
qq_WishList_sp.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
qq_WishList_sp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
qq_WishList_sp.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));
qq_WishList_sp.setBackground(null);
qq_WishList_sp.getViewport().setBackground(null);
Caption.set(qq_WishList_sp, "Wish List");
FrameColor.set(qq_WishList_sp, Constants.C_INHERIT);
WidthPolicy.set(qq_WishList_sp, Constants.SP_NATURAL);
HeightPolicy.set(qq_WishList_sp, Constants.SP_NATURAL);
qq_WishList_sp.setSize(new Dimension(547, 100));
qq_WishList_sp.setMinimumSize(new Dimension(547, 100));
qq_WishList_sp.setPreferredSize(new Dimension(547, 100));
qq_WishList_sp.setLocation(7, 132);
}
return qq_WishList_sp;
}
public void setqq_WishList_sp(JScrollPane value) {
JScrollPane oldValue = qq_WishList_sp;
qq_WishList_sp = value;
this.qq_Listeners.firePropertyChange("qq_WishList_sp", oldValue, value);
}
/**
* qq_WishListArray_Engine_Company: transformed from: qqds_DropList
* TagId=35
* isInherited=FALSE
*/
public DropList getqq_WishListArray_Engine_Company() {
if (qq_WishListArray_Engine_Company == null) {
Array_Of_ListElement<ListElement> elements = new Array_Of_ListElement<ListElement>();
elements.add( new ListElement( 1, "Lycoming", ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
elements.add( new ListElement( 2, "Rotrax", ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
qq_WishListArray_Engine_Company = DropFillinFactory.newDropList();
qq_WishListArray_Engine_Company.setName("Company");
ArrayFieldCellHelper.getArrayColumnBindingManager(getqq_WishListArray_Engine()).bindComponent(qq_WishListArray_Engine_Company, "company", elements);
qq_WishListArray_Engine_Company.addActionListener( (DropListModel)qq_WishListArray_Engine_Company.getModel() );
// OPTIONAL UIutils.reloadLabelText(qq_WishListArray_Engine_Company, mcat);
qq_WishListArray_Engine_Company.setMaximumRowCount(4);
ArrayFieldCellHelper.setUpCellEditor(qq_WishListArray_Engine_Company, qq_WishList, 3, true);
WidthPolicy.set(qq_WishListArray_Engine_Company, Constants.SP_NATURAL);
HeightPolicy.set(qq_WishListArray_Engine_Company, Constants.SP_NATURAL);
qq_WishListArray_Engine_Company.setMinimumSize(new Dimension(78, 21));
}
return qq_WishListArray_Engine_Company;
}
public void setqq_WishListArray_Engine_Company(DropList value) {
DropList oldValue = qq_WishListArray_Engine_Company;
qq_WishListArray_Engine_Company = value;
this.qq_Listeners.firePropertyChange("qq_WishListArray_Engine_Company", oldValue, value);
}
/**
* qq_WishListArray_Engine_Capacity: transformed from: qqds_DataField
* TagId=36
* isInherited=FALSE
*/
public DataField getqq_WishListArray_Engine_Capacity() {
if (qq_WishListArray_Engine_Capacity == null) {
// Mask type: Constants.MK_FLOAT
qq_WishListArray_Engine_Capacity = DataFieldFactory.newDataField("Capacity", 8, Constants.MK_FLOAT);
qq_WishListArray_Engine_Capacity.setOriginalFormatText(null);
qq_WishListArray_Engine_Capacity.setHorizontalAlignment(JTextField.RIGHT);
ArrayFieldCellHelper.getArrayColumnBindingManager(getqq_WishListArray_Engine()).bindComponent(qq_WishListArray_Engine_Capacity, "capacity");
WidthPolicy.set(qq_WishListArray_Engine_Capacity, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_WishListArray_Engine_Capacity, Constants.SP_NATURAL);
qq_WishListArray_Engine_Capacity.setMinimumSize(new Dimension(57, 19));
qq_WishListArray_Engine_Capacity.setSize(new Dimension(57, 19));
ArrayFieldCellHelper.setUpCellEditor(qq_WishListArray_Engine_Capacity, qq_WishList, 3, true);
}
return qq_WishListArray_Engine_Capacity;
}
public void setqq_WishListArray_Engine_Capacity(DataField value) {
DataField oldValue = qq_WishListArray_Engine_Capacity;
qq_WishListArray_Engine_Capacity = value;
this.qq_Listeners.firePropertyChange("qq_WishListArray_Engine_Capacity", oldValue, value);
}
/**
* qq_WishListArray_Engine_Cylinders: transformed from: qqds_DataField
* TagId=37
* isInherited=FALSE
*/
public DataField getqq_WishListArray_Engine_Cylinders() {
if (qq_WishListArray_Engine_Cylinders == null) {
// Mask type: Constants.MK_FLOAT
qq_WishListArray_Engine_Cylinders = DataFieldFactory.newDataField("Cylinders", 8, Constants.MK_FLOAT);
qq_WishListArray_Engine_Cylinders.setOriginalFormatText(null);
qq_WishListArray_Engine_Cylinders.setHorizontalAlignment(JTextField.RIGHT);
ArrayFieldCellHelper.getArrayColumnBindingManager(getqq_WishListArray_Engine()).bindComponent(qq_WishListArray_Engine_Cylinders, "cylinders");
WidthPolicy.set(qq_WishListArray_Engine_Cylinders, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_WishListArray_Engine_Cylinders, Constants.SP_NATURAL);
qq_WishListArray_Engine_Cylinders.setMinimumSize(new Dimension(57, 19));
qq_WishListArray_Engine_Cylinders.setSize(new Dimension(57, 19));
ArrayFieldCellHelper.setUpCellEditor(qq_WishListArray_Engine_Cylinders, qq_WishList, 3, true);
}
return qq_WishListArray_Engine_Cylinders;
}
public void setqq_WishListArray_Engine_Cylinders(DataField value) {
DataField oldValue = qq_WishListArray_Engine_Cylinders;
qq_WishListArray_Engine_Cylinders = value;
this.qq_Listeners.firePropertyChange("qq_WishListArray_Engine_Cylinders", oldValue, value);
}
/**
* qq_WishListArray_Engine_Power: transformed from: qqds_DataField
* TagId=38
* isInherited=FALSE
*/
public DataField getqq_WishListArray_Engine_Power() {
if (qq_WishListArray_Engine_Power == null) {
// Mask type: Constants.MK_FLOAT
qq_WishListArray_Engine_Power = DataFieldFactory.newDataField("Power", 8, Constants.MK_FLOAT);
qq_WishListArray_Engine_Power.setOriginalFormatText(null);
qq_WishListArray_Engine_Power.setHorizontalAlignment(JTextField.RIGHT);
ArrayFieldCellHelper.getArrayColumnBindingManager(getqq_WishListArray_Engine()).bindComponent(qq_WishListArray_Engine_Power, "power");
WidthPolicy.set(qq_WishListArray_Engine_Power, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_WishListArray_Engine_Power, Constants.SP_NATURAL);
qq_WishListArray_Engine_Power.setMinimumSize(new Dimension(57, 19));
qq_WishListArray_Engine_Power.setSize(new Dimension(57, 19));
ArrayFieldCellHelper.setUpCellEditor(qq_WishListArray_Engine_Power, qq_WishList, 3, true);
}
return qq_WishListArray_Engine_Power;
}
public void setqq_WishListArray_Engine_Power(DataField value) {
DataField oldValue = qq_WishListArray_Engine_Power;
qq_WishListArray_Engine_Power = value;
this.qq_Listeners.firePropertyChange("qq_WishListArray_Engine_Power", oldValue, value);
}
/**
* qq_WishList: transformed from: qqds_ArrayField
* TagId=27
* isInherited=FALSE
*/
public ArrayField getqq_WishList() {
if (qq_WishList == null) {
qq_WishList = TableFactory.newArrayField("WishList", 21);
this.getBindingManager().bindComponent(qq_WishList, "wishList", Helicopter.class,
new String[] { "make",
"model",
"blades",
"engine" });
qq_WishList.setVisibleRows(3);
((ArrayFieldModel)qq_WishList.getModel()).setAllowsAppend(true);
// === Column model setup ===
// Make converted from qqds_DataField
ArrayColumn qq_WishListArray_Make_Column = new ArrayColumn("Make", 0, 143, new FormattedCellRenderer(getqq_WishListArray_Make()), new FormattedCellEditor(getqq_WishListArray_Make()), true);
qq_WishListArray_Make_Column.setHeaderValue("Make");
qq_WishListArray_Make_Column.setVisible(true);
qq_WishList.addColumn(qq_WishListArray_Make_Column);
// Model converted from qqds_DataField
ArrayColumn qq_WishListArray_Model_Column = new ArrayColumn("Model", 1, 102, new FormattedCellRenderer(getqq_WishListArray_Model()), new FormattedCellEditor(getqq_WishListArray_Model()), true);
qq_WishListArray_Model_Column.setHeaderValue("Model");
qq_WishListArray_Model_Column.setVisible(true);
qq_WishList.addColumn(qq_WishListArray_Model_Column);
// Blades converted from qqds_DataField
ArrayColumn qq_WishListArray_Blades_Column = new ArrayColumn("Blades", 2, 36, new FormattedCellRenderer(getqq_WishListArray_Blades()), new FormattedCellEditor(getqq_WishListArray_Blades()), true);
qq_WishListArray_Blades_Column.setHeaderValue("Blades");
qq_WishListArray_Blades_Column.setVisible(true);
qq_WishList.addColumn(qq_WishListArray_Blades_Column);
// Engine converted from qqds_GridField
// TODO [1075,Critical]: A GridField has been used as a Column Template in an ArrayField and may not translate correctly.
ArrayColumn qq_WishListArray_Engine_Column = new ArrayColumn("Engine", 3, 247, new GridFieldCellRenderer(getqq_WishListArray_Engine()), new GridFieldCellEditor(getqq_WishListArray_Engine()));
qq_WishListArray_Engine_Column.setHeaderValue("Engine");
qq_WishListArray_Engine_Column.setVisible(true);
qq_WishList.addColumn(qq_WishListArray_Engine_Column);
// === End column model ===
TableFactory.postModelArrayField(qq_WishList);
}
return qq_WishList;
}
public void setqq_WishList(ArrayField value) {
ArrayField oldValue = qq_WishList;
qq_WishList = value;
this.qq_Listeners.firePropertyChange("qq_WishList", oldValue, value);
}
/**
* qq_HeliListWithButton_sp: transformed from: qqds_ArrayField
* TagId=42
* isInherited=FALSE
*/
public JScrollPane getqq_HeliListWithButton_sp() {
if (qq_HeliListWithButton_sp == null) {
qq_HeliListWithButton_sp = CompoundFieldFactory.newScrollPane();
qq_HeliListWithButton_sp.setName("HeliListWithButton");
qq_HeliListWithButton_sp.setViewportView(getqq_HeliListWithButton());
qq_HeliListWithButton_sp.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
qq_HeliListWithButton_sp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
qq_HeliListWithButton_sp.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));
qq_HeliListWithButton_sp.setBackground(null);
qq_HeliListWithButton_sp.getViewport().setBackground(null);
Caption.set(qq_HeliListWithButton_sp, "Helicopter List with Button");
FrameColor.set(qq_HeliListWithButton_sp, Constants.C_INHERIT);
WidthPolicy.set(qq_HeliListWithButton_sp, Constants.SP_NATURAL);
HeightPolicy.set(qq_HeliListWithButton_sp, Constants.SP_NATURAL);
qq_HeliListWithButton_sp.setSize(new Dimension(333, 103));
qq_HeliListWithButton_sp.setMinimumSize(new Dimension(333, 103));
qq_HeliListWithButton_sp.setPreferredSize(new Dimension(333, 103));
qq_HeliListWithButton_sp.setLocation(9, 280);
}
return qq_HeliListWithButton_sp;
}
public void setqq_HeliListWithButton_sp(JScrollPane value) {
JScrollPane oldValue = qq_HeliListWithButton_sp;
qq_HeliListWithButton_sp = value;
this.qq_Listeners.firePropertyChange("qq_HeliListWithButton_sp", oldValue, value);
}
/**
* qq_HeliListWithButtonArray_aButton: transformed from: qqds_PushButton
* TagId=50
* isInherited=FALSE
*/
public TableJButton getqq_HeliListWithButtonArray_aButton() {
if (qq_HeliListWithButtonArray_aButton == null) {
qq_HeliListWithButtonArray_aButton = PushButtonFactory.newTableInstance("aButton", "Yup");
qq_HeliListWithButtonArray_aButton.setVerifyInputWhenFocusTarget(true);
ArrayFieldCellHelper.setUpCellEditor(qq_HeliListWithButtonArray_aButton, qq_HeliListWithButton, 3, true);
WidthPolicy.set(qq_HeliListWithButtonArray_aButton, Constants.SP_NATURAL);
HeightPolicy.set(qq_HeliListWithButtonArray_aButton, Constants.SP_NATURAL);
qq_HeliListWithButtonArray_aButton.setMinimumSize(new Dimension(33, 21));
}
return qq_HeliListWithButtonArray_aButton;
}
public void setqq_HeliListWithButtonArray_aButton(TableJButton value) {
TableJButton oldValue = qq_HeliListWithButtonArray_aButton;
qq_HeliListWithButtonArray_aButton = value;
this.qq_Listeners.firePropertyChange("qq_HeliListWithButtonArray_aButton", oldValue, value);
}
/**
* qq_HeliListWithButton: transformed from: qqds_ArrayField
* TagId=42
* isInherited=FALSE
*/
public ArrayField getqq_HeliListWithButton() {
if (qq_HeliListWithButton == null) {
qq_HeliListWithButton = TableFactory.newArrayField("HeliListWithButton", 21);
this.getBindingManager().bindComponent(qq_HeliListWithButton, "heliListWithButton", Helicopter.class,
new String[] { "make",
"model",
"blades",
"" });
qq_HeliListWithButton.setVisibleRows(3);
((ArrayFieldModel)qq_HeliListWithButton.getModel()).setAllowsAppend(true);
// === Column model setup ===
// Make converted from qqds_DataField
ArrayColumn qq_HeliListWithButtonArray_Make_Column = new ArrayColumn("Make", 0, 143, new FormattedCellRenderer(getqq_HeliListWithButtonArray_Make()), new FormattedCellEditor(getqq_HeliListWithButtonArray_Make()), true);
qq_HeliListWithButtonArray_Make_Column.setHeaderValue("Make");
qq_HeliListWithButtonArray_Make_Column.setVisible(true);
qq_HeliListWithButton.addColumn(qq_HeliListWithButtonArray_Make_Column);
// Model converted from qqds_DataField
ArrayColumn qq_HeliListWithButtonArray_Model_Column = new ArrayColumn("Model", 1, 102, new FormattedCellRenderer(getqq_HeliListWithButtonArray_Model()), new FormattedCellEditor(getqq_HeliListWithButtonArray_Model()), true);
qq_HeliListWithButtonArray_Model_Column.setHeaderValue("Model");
qq_HeliListWithButtonArray_Model_Column.setVisible(true);
qq_HeliListWithButton.addColumn(qq_HeliListWithButtonArray_Model_Column);
// Blades converted from qqds_DataField
ArrayColumn qq_HeliListWithButtonArray_Blades_Column = new ArrayColumn("Blades", 2, 36, new FormattedCellRenderer(getqq_HeliListWithButtonArray_Blades()), new FormattedCellEditor(getqq_HeliListWithButtonArray_Blades()), true);
qq_HeliListWithButtonArray_Blades_Column.setHeaderValue("Blades");
qq_HeliListWithButtonArray_Blades_Column.setVisible(true);
qq_HeliListWithButton.addColumn(qq_HeliListWithButtonArray_Blades_Column);
// converted from qqds_GridField
// TODO [1075,Critical]: A GridField has been used as a Column Template in an ArrayField and may not translate correctly.
ArrayColumn qq_HeliListWithButtonArray_HeliListWithButtonArray_GridField49_Column = new ArrayColumn("", 3, 33, new GridFieldCellRenderer(getqq_HeliListWithButtonArray_HeliListWithButtonArray_GridField49()), new GridFieldCellEditor(getqq_HeliListWithButtonArray_HeliListWithButtonArray_GridField49()));
qq_HeliListWithButtonArray_HeliListWithButtonArray_GridField49_Column.setHeaderValue(" ");
qq_HeliListWithButtonArray_HeliListWithButtonArray_GridField49_Column.setVisible(true);
qq_HeliListWithButton.addColumn(qq_HeliListWithButtonArray_HeliListWithButtonArray_GridField49_Column);
// === End column model ===
TableFactory.postModelArrayField(qq_HeliListWithButton);
}
return qq_HeliListWithButton;
}
public void setqq_HeliListWithButton(ArrayField value) {
ArrayField oldValue = qq_HeliListWithButton;
qq_HeliListWithButton = value;
this.qq_Listeners.firePropertyChange("qq_HeliListWithButton", 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_HeliListWithButton_sp() );
Form.add( getqq_WishList_sp() );
Form.add( getqq_HeliList_sp() );
}
return Form;
}
public void setForm(JPanel value) {
JPanel oldValue = Form;
Form = value;
this.qq_Listeners.firePropertyChange("Form", oldValue, value);
}
/**
* Gets the system close policy
*
* The SystemClosePolicy property determines how a window responds to user attempts to close it by using the native window system through the window close box or a window system menu command.
* SystemClosePolicy responds to window closure attempts according to the following parameters:
* <li>Constants.SC_DISABLED Does not allow window closure through window system.</li>
* <li>Constants.SC_ENABLEDNOFINALIZE Window can be closed, but the contents are not verified, guaranteeing that the window will close (for example, the user clicks the Cancel button).</li>
* <li>Constants.SC_ENABLEDFINALIZE Posts the RequestFinalize method on the window, with a reason code of zero.</li>
* <li>Constants.SC_ENABLEDSHUTDOWN Posts Shutdown event to window�s task and to all tasks started by that task. This is the default value.</li>
*/
public int getSystemClosePolicy() {
return qq_SystemClosePolicy;
}
/**
* Sets the system close policy
*
* The SystemClosePolicy property determines how a window responds to user attempts to close it by using the native window system through the window close box or a window system menu command.
* SystemClosePolicy responds to window closure attempts according to the following parameters:
* <li>Constants.SC_DISABLED Does not allow window closure through window system.</li>
* <li>Constants.SC_ENABLEDNOFINALIZE Window can be closed, but the contents are not verified, guaranteeing that the window will close (for example, the user clicks the Cancel button).</li>
* <li>Constants.SC_ENABLEDFINALIZE Posts the RequestFinalize method on the window, with a reason code of zero.</li>
* <li>Constants.SC_ENABLEDSHUTDOWN Posts Shutdown event to window�s task and to all tasks started by that task. This is the default value.</li>
*/
public void setSystemClosePolicy(int policy) {
this.qq_SystemClosePolicy = policy;
if (policy == Constants.SC_DISABLED) {
this.addComponentListener(new CloseHideAdaptor(this));
} else {
for (ComponentListener cl : this.getComponentListeners()) {
if (cl instanceof CloseHideAdaptor) {
this.removeComponentListener(cl);
break;
}
}
}
}
/**
* Gets the initial position policy
*
* The InitialPositionPolicy property sets the position of a main window when it is first displayed, relative to a primary window or the screen.
* You use the InitialPositionPolicy property in conjunction with the InitialX, InitialY properties.
* InitialPositionPolicy sets the position of a window according to the following values:
* <li>Constants.PP_SYSTEMDEFAULT Accepts the default window system placement specification.</li>
* <li>Constants.PP_PRIMARYCENTERED Centers the window relative to the window specified as the PrimaryWindow property.</li>
* <li>Constants.PP_PRIMARYRELATIVE Positions the window relative to the primary window, using the PrimaryWindow, InitialX and InitialY attributes.</li>
* <li>Constants.PP_SCREENCENTERED Centers the window relative to the screen.</li>
* <li>Constants.PP_SCREENRELATIVE Positions the window relative to the screen, using the InitialX and InitialY properties.</li>
*/
public int getInitialPositionPolicy() {
return qq_initialPositionPolicy;
}
/**
* Sets the initial position policy
*
* The InitialPositionPolicy property sets the position of a main window when it is first displayed, relative to a primary window or the screen.
* You use the InitialPositionPolicy property in conjunction with the InitialX, InitialY properties.
* InitialPositionPolicy sets the position of a window according to the following values:
* <li>Constants.PP_SYSTEMDEFAULT Accepts the default window system placement specification.</li>
* <li>Constants.PP_PRIMARYCENTERED Centers the window relative to the window specified as the PrimaryWindow property.</li>
* <li>Constants.PP_PRIMARYRELATIVE Positions the window relative to the primary window, using the PrimaryWindow, InitialX and InitialY attributes.</li>
* <li>Constants.PP_SCREENCENTERED Centers the window relative to the screen.</li>
* <li>Constants.PP_SCREENRELATIVE Positions the window relative to the screen, using the InitialX and InitialY properties.</li>
*/
public void setInitialPositionPolicy(int policy) {
this.qq_initialPositionPolicy = policy;
}
/**
* Gets the primary window
*
* The primary window property designates a window, known as a primary window, to serve as an initial position reference for the current window.
* When a main window first realizes itself through the Open method on the UserWindow, it assumes a position according to the InitialPositionPolicy attribute.
* When the InitialPositionPolicy property is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_PRIMARYCENTERED (centered on the primary window),
* the window realizes itself in a position relative to the designated primary window.<p>
* <p>
* To take a position relative to the primary window, a window uses the PrimaryWindow attribute in conjunction with the InitialX and InitialY properties, which specify the window�s horizontal and vertical coordinates.
*/
public Window getPrimaryWindow() {
return this.primaryWindow;
}
/**
* Sets the primary window
*
* The primary window property designates a window, known as a primary window, to serve as an initial position reference for the current window.
* When a main window first realizes itself through the Open method on the UserWindow, it assumes a position according to the InitialPositionPolicy attribute.
* When the InitialPositionPolicy property is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_PRIMARYCENTERED (centered on the primary window),
* the window realizes itself in a position relative to the designated primary window.<p>
* <p>
* To take a position relative to the primary window, a window uses the PrimaryWindow attribute in conjunction with the InitialX and InitialY properties, which specify the window�s horizontal and vertical coordinates.
*/
public void setPrimaryWindow(Window value) {
this.primaryWindow = value;
}
/**
* Gets the InitialX value
*
* The InitialX property (integer) is the window�s initial horizontal screen position, relative to a primary window or the screen. It is specified in mils.
* InitialX applies only to main windows and only when a window�s InitialPositionPolicy attribute is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_SCREENRELATIVE (relative to the screen).
* InitialX, and its corollary, InitialY, work in conjunction with the PrimaryWindow and InitialPositionPolicy attributes to determine the position of a main window when it is first realized.
*/
public int getInitialX() {
return initialX;
}
/**
* Sets the InitialX value
*
* The InitialX property (integer) is the window�s initial horizontal screen position, relative to a primary window or the screen. It is specified in mils.
* InitialX applies only to main windows and only when a window�s InitialPositionPolicy attribute is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_SCREENRELATIVE (relative to the screen).
* InitialX, and its corollary, InitialY, work in conjunction with the PrimaryWindow and InitialPositionPolicy attributes to determine the position of a main window when it is first realized.
*/
public void setInitialX(int value) {
this.initialX = value;
}
/**
* Gets the InitialY value
*
* The InitialY property (integer) is the window�s initial vertical screen position, relative to a primary window or the screen. It is specified in mils.
* InitialY applies only to main windows and only when a window�s InitialPositionPolicy attribute is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_SCREENRELATIVE (relative to the screen).
* InitialY, and its corollary, InitialX, work in conjunction with the PrimaryWindow and InitialPositionPolicy attributes to determine the position of a main window when it is first realized.
*/
public int getInitialY() {
return initialY;
}
/**
* Sets the InitialY value
*
* The InitialY property (integer) is the window�s initial vertical screen position, relative to a primary window or the screen. It is specified in mils.
* InitialY applies only to main windows and only when a window�s InitialPositionPolicy attribute is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_SCREENRELATIVE (relative to the screen).
* InitialY, and its corollary, InitialX, work in conjunction with the PrimaryWindow and InitialPositionPolicy attributes to determine the position of a main window when it is first realized.
*/
public void setInitialY(int value) {
this.initialY = value;
}
/**
* Gets the default message set number for the window and its widgets.
*/
public int getSetNum() {
return this.qq_defaultSet;
}
/**
* Sets the default message set number for the window and its widgets.
*/
public void setSetNum(int value) {
this.qq_defaultSet = value;
}
/**
* Gets the message set number for the message number of the window's title.
*/
public int getTitleSetNum() {
return this.qq_msgSet;
}
/**
* Sets the message set number for the message number of the window's title.
*/
public void setTitleSetNum(int value) {
this.qq_msgSet = value;
}
/**
* Gets the message number for the message number of the window's title.
*/
public int getTitleMsgNum() {
return this.qq_msgNumber;
}
/**
* Sets the message number for the message number of the window's title.
*/
public void setTitleMsgNum(int value) {
this.qq_msgNumber = value;
}
/**
* qq_HeliListArray_Make: transformed from: qqds_DataField
* TagId=13
* isInherited=FALSE
*/
public DataField getqq_HeliListArray_Make() {
if (qq_HeliListArray_Make == null) {
// Mask type: MK_NONE
qq_HeliListArray_Make = DataFieldFactory.newDataField("Make", 22, Constants.MK_NONE);
qq_HeliListArray_Make.setOriginalFormatText(null);
qq_HeliListArray_Make.setHorizontalAlignment(JTextField.LEFT);
WidthPolicy.set(qq_HeliListArray_Make, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_HeliListArray_Make, Constants.SP_NATURAL);
qq_HeliListArray_Make.setMinimumSize(new Dimension(143, 19));
qq_HeliListArray_Make.setSize(new Dimension(143, 19));
qq_HeliListArray_Make.setLocation(54, 54);
ArrayFieldCellHelper.setUpCellEditor(qq_HeliListArray_Make, qq_HeliList, 0, false);
}
return qq_HeliListArray_Make;
}
public void setqq_HeliListArray_Make(DataField value) {
DataField oldValue = qq_HeliListArray_Make;
qq_HeliListArray_Make = value;
this.qq_Listeners.firePropertyChange("qq_HeliListArray_Make", oldValue, value);
}
/**
* qq_HeliListArray_Model: transformed from: qqds_DataField
* TagId=15
* isInherited=FALSE
*/
public DataField getqq_HeliListArray_Model() {
if (qq_HeliListArray_Model == null) {
// Mask type: MK_NONE
qq_HeliListArray_Model = DataFieldFactory.newDataField("Model", 15, Constants.MK_NONE);
qq_HeliListArray_Model.setOriginalFormatText(null);
qq_HeliListArray_Model.setHorizontalAlignment(JTextField.LEFT);
WidthPolicy.set(qq_HeliListArray_Model, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_HeliListArray_Model, Constants.SP_NATURAL);
qq_HeliListArray_Model.setMinimumSize(new Dimension(102, 19));
qq_HeliListArray_Model.setSize(new Dimension(102, 19));
qq_HeliListArray_Model.setLocation(208, 57);
ArrayFieldCellHelper.setUpCellEditor(qq_HeliListArray_Model, qq_HeliList, 1, false);
}
return qq_HeliListArray_Model;
}
public void setqq_HeliListArray_Model(DataField value) {
DataField oldValue = qq_HeliListArray_Model;
qq_HeliListArray_Model = value;
this.qq_Listeners.firePropertyChange("qq_HeliListArray_Model", oldValue, value);
}
/**
* qq_HeliListArray_Blades: transformed from: qqds_DataField
* TagId=17
* isInherited=FALSE
*/
public DataField getqq_HeliListArray_Blades() {
if (qq_HeliListArray_Blades == null) {
// Mask type: Constants.MK_INTEGER
qq_HeliListArray_Blades = DataFieldFactory.newDataField("Blades", 4, Constants.MK_INTEGER);
qq_HeliListArray_Blades.setOriginalFormatText(null);
qq_HeliListArray_Blades.setHorizontalAlignment(JTextField.RIGHT);
WidthPolicy.set(qq_HeliListArray_Blades, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_HeliListArray_Blades, Constants.SP_NATURAL);
qq_HeliListArray_Blades.setMinimumSize(new Dimension(36, 19));
qq_HeliListArray_Blades.setSize(new Dimension(36, 19));
qq_HeliListArray_Blades.setLocation(326, 60);
ArrayFieldCellHelper.setUpCellEditor(qq_HeliListArray_Blades, qq_HeliList, 2, false);
}
return qq_HeliListArray_Blades;
}
public void setqq_HeliListArray_Blades(DataField value) {
DataField oldValue = qq_HeliListArray_Blades;
qq_HeliListArray_Blades = value;
this.qq_Listeners.firePropertyChange("qq_HeliListArray_Blades", oldValue, value);
}
/**
* qq_HeliListArray_Engine: transformed from: qqds_GridField
* TagId=19
* isInherited=FALSE
* In forte this was a 4x1 grid field, displaying a Engine object.
* There are no cell margins set
* The width policy is set to Natural, and the height policy is set to Natural.
*/
protected void setqq_HeliListArray_EngineProperties() {
qq_HeliListArray_Engine.setCollapsed(true);
qq_HeliListArray_Engine.setHeightPolicy(Constants.SP_NATURAL);
qq_HeliListArray_Engine.setWidthPolicy(Constants.SP_NATURAL);
qq_HeliListArray_Engine.setBackground(null);
qq_HeliListArray_Engine.setLocation(407, 52);
}
public GridField getqq_HeliListArray_Engine() {
if (qq_HeliListArray_Engine == null) {
qq_HeliListArray_Engine = CompoundFieldFactory.newGridField("Engine", false);
ArrayFieldCellHelper.setArrayColumnBindingManager(qq_HeliListArray_Engine, new BindingManager(Engine.class));
setqq_HeliListArray_EngineProperties();
ArrayFieldCellHelper.setUpCellEditor(qq_HeliListArray_Engine, qq_HeliList, 3, false);
qq_HeliListArray_Engine.setMinimumSize(new Dimension(247, 21));
GridBagConstraints qq_gbc = new GridBagConstraints();
qq_gbc.gridx = 0; // Column 1
qq_gbc.gridy = 0; // Row 1
qq_gbc.weightx = 0;
qq_gbc.weighty = 0;
qq_gbc.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_HeliListArray_Engine.add( getqq_HeliListArray_Engine_Company(), qq_gbc );
GridBagConstraints qq_gbc1 = new GridBagConstraints();
qq_gbc1.gridx = 1; // Column 2
qq_gbc1.gridy = 0; // Row 1
qq_gbc1.weightx = 0;
qq_gbc1.weighty = 0;
qq_gbc1.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc1.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc1.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_HeliListArray_Engine.add( getqq_HeliListArray_Engine_Capacity(), qq_gbc1 );
GridBagConstraints qq_gbc2 = new GridBagConstraints();
qq_gbc2.gridx = 2; // Column 3
qq_gbc2.gridy = 0; // Row 1
qq_gbc2.weightx = 0;
qq_gbc2.weighty = 0;
qq_gbc2.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc2.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc2.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_HeliListArray_Engine.add( getqq_HeliListArray_Engine_Cylinders(), qq_gbc2 );
GridBagConstraints qq_gbc3 = new GridBagConstraints();
qq_gbc3.gridx = 3; // Column 4
qq_gbc3.gridy = 0; // Row 1
qq_gbc3.weightx = 0;
qq_gbc3.weighty = 0;
qq_gbc3.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc3.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc3.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_HeliListArray_Engine.add( getqq_HeliListArray_Engine_Power(), qq_gbc3 );
}
return qq_HeliListArray_Engine;
}
public void setqq_HeliListArray_Engine(GridField value) {
GridField oldValue = qq_HeliListArray_Engine;
qq_HeliListArray_Engine = value;
this.qq_Listeners.firePropertyChange("qq_HeliListArray_Engine", oldValue, value);
}
/**
* qq_WishListArray_Make: transformed from: qqds_DataField
* TagId=28
* isInherited=FALSE
*/
public DataField getqq_WishListArray_Make() {
if (qq_WishListArray_Make == null) {
// Mask type: MK_NONE
qq_WishListArray_Make = DataFieldFactory.newDataField("Make", 22, Constants.MK_NONE);
qq_WishListArray_Make.setOriginalFormatText(null);
qq_WishListArray_Make.setHorizontalAlignment(JTextField.LEFT);
WidthPolicy.set(qq_WishListArray_Make, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_WishListArray_Make, Constants.SP_NATURAL);
qq_WishListArray_Make.setMinimumSize(new Dimension(143, 19));
qq_WishListArray_Make.setSize(new Dimension(143, 19));
qq_WishListArray_Make.setLocation(54, 54);
ArrayFieldCellHelper.setUpCellEditor(qq_WishListArray_Make, qq_WishList, 0, false);
}
return qq_WishListArray_Make;
}
public void setqq_WishListArray_Make(DataField value) {
DataField oldValue = qq_WishListArray_Make;
qq_WishListArray_Make = value;
this.qq_Listeners.firePropertyChange("qq_WishListArray_Make", oldValue, value);
}
/**
* qq_WishListArray_Model: transformed from: qqds_DataField
* TagId=30
* isInherited=FALSE
*/
public DataField getqq_WishListArray_Model() {
if (qq_WishListArray_Model == null) {
// Mask type: MK_NONE
qq_WishListArray_Model = DataFieldFactory.newDataField("Model", 15, Constants.MK_NONE);
qq_WishListArray_Model.setOriginalFormatText(null);
qq_WishListArray_Model.setHorizontalAlignment(JTextField.LEFT);
WidthPolicy.set(qq_WishListArray_Model, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_WishListArray_Model, Constants.SP_NATURAL);
qq_WishListArray_Model.setMinimumSize(new Dimension(102, 19));
qq_WishListArray_Model.setSize(new Dimension(102, 19));
qq_WishListArray_Model.setLocation(208, 57);
ArrayFieldCellHelper.setUpCellEditor(qq_WishListArray_Model, qq_WishList, 1, false);
}
return qq_WishListArray_Model;
}
public void setqq_WishListArray_Model(DataField value) {
DataField oldValue = qq_WishListArray_Model;
qq_WishListArray_Model = value;
this.qq_Listeners.firePropertyChange("qq_WishListArray_Model", oldValue, value);
}
/**
* qq_WishListArray_Blades: transformed from: qqds_DataField
* TagId=32
* isInherited=FALSE
*/
public DataField getqq_WishListArray_Blades() {
if (qq_WishListArray_Blades == null) {
// Mask type: Constants.MK_INTEGER
qq_WishListArray_Blades = DataFieldFactory.newDataField("Blades", 4, Constants.MK_INTEGER);
qq_WishListArray_Blades.setOriginalFormatText(null);
qq_WishListArray_Blades.setHorizontalAlignment(JTextField.RIGHT);
WidthPolicy.set(qq_WishListArray_Blades, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_WishListArray_Blades, Constants.SP_NATURAL);
qq_WishListArray_Blades.setMinimumSize(new Dimension(36, 19));
qq_WishListArray_Blades.setSize(new Dimension(36, 19));
qq_WishListArray_Blades.setLocation(326, 60);
ArrayFieldCellHelper.setUpCellEditor(qq_WishListArray_Blades, qq_WishList, 2, false);
}
return qq_WishListArray_Blades;
}
public void setqq_WishListArray_Blades(DataField value) {
DataField oldValue = qq_WishListArray_Blades;
qq_WishListArray_Blades = value;
this.qq_Listeners.firePropertyChange("qq_WishListArray_Blades", oldValue, value);
}
/**
* qq_WishListArray_Engine: transformed from: qqds_GridField
* TagId=34
* isInherited=FALSE
* In forte this was a 4x1 grid field, displaying a Engine object.
* There are no cell margins set
* The width policy is set to Natural, and the height policy is set to Natural.
*/
protected void setqq_WishListArray_EngineProperties() {
qq_WishListArray_Engine.setCollapsed(true);
qq_WishListArray_Engine.setHeightPolicy(Constants.SP_NATURAL);
qq_WishListArray_Engine.setWidthPolicy(Constants.SP_NATURAL);
qq_WishListArray_Engine.setBackground(null);
qq_WishListArray_Engine.setLocation(407, 52);
}
public GridField getqq_WishListArray_Engine() {
if (qq_WishListArray_Engine == null) {
qq_WishListArray_Engine = CompoundFieldFactory.newGridField("Engine", false);
ArrayFieldCellHelper.setArrayColumnBindingManager(qq_WishListArray_Engine, new BindingManager(Engine.class));
setqq_WishListArray_EngineProperties();
ArrayFieldCellHelper.setUpCellEditor(qq_WishListArray_Engine, qq_WishList, 3, false);
qq_WishListArray_Engine.setMinimumSize(new Dimension(247, 21));
GridBagConstraints qq_gbc = new GridBagConstraints();
qq_gbc.gridx = 0; // Column 1
qq_gbc.gridy = 0; // Row 1
qq_gbc.weightx = 0;
qq_gbc.weighty = 0;
qq_gbc.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_WishListArray_Engine.add( getqq_WishListArray_Engine_Company(), qq_gbc );
GridBagConstraints qq_gbc1 = new GridBagConstraints();
qq_gbc1.gridx = 1; // Column 2
qq_gbc1.gridy = 0; // Row 1
qq_gbc1.weightx = 0;
qq_gbc1.weighty = 0;
qq_gbc1.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc1.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc1.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_WishListArray_Engine.add( getqq_WishListArray_Engine_Capacity(), qq_gbc1 );
GridBagConstraints qq_gbc2 = new GridBagConstraints();
qq_gbc2.gridx = 2; // Column 3
qq_gbc2.gridy = 0; // Row 1
qq_gbc2.weightx = 0;
qq_gbc2.weighty = 0;
qq_gbc2.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc2.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc2.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_WishListArray_Engine.add( getqq_WishListArray_Engine_Cylinders(), qq_gbc2 );
GridBagConstraints qq_gbc3 = new GridBagConstraints();
qq_gbc3.gridx = 3; // Column 4
qq_gbc3.gridy = 0; // Row 1
qq_gbc3.weightx = 0;
qq_gbc3.weighty = 0;
qq_gbc3.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc3.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc3.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_WishListArray_Engine.add( getqq_WishListArray_Engine_Power(), qq_gbc3 );
}
return qq_WishListArray_Engine;
}
public void setqq_WishListArray_Engine(GridField value) {
GridField oldValue = qq_WishListArray_Engine;
qq_WishListArray_Engine = value;
this.qq_Listeners.firePropertyChange("qq_WishListArray_Engine", oldValue, value);
}
/**
* qq_HeliListWithButtonArray_Make: transformed from: qqds_DataField
* TagId=43
* isInherited=FALSE
*/
public DataField getqq_HeliListWithButtonArray_Make() {
if (qq_HeliListWithButtonArray_Make == null) {
// Mask type: MK_NONE
qq_HeliListWithButtonArray_Make = DataFieldFactory.newDataField("Make", 22, Constants.MK_NONE);
qq_HeliListWithButtonArray_Make.setOriginalFormatText(null);
qq_HeliListWithButtonArray_Make.setHorizontalAlignment(JTextField.LEFT);
WidthPolicy.set(qq_HeliListWithButtonArray_Make, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_HeliListWithButtonArray_Make, Constants.SP_NATURAL);
qq_HeliListWithButtonArray_Make.setMinimumSize(new Dimension(143, 19));
qq_HeliListWithButtonArray_Make.setSize(new Dimension(143, 19));
qq_HeliListWithButtonArray_Make.setLocation(54, 54);
ArrayFieldCellHelper.setUpCellEditor(qq_HeliListWithButtonArray_Make, qq_HeliListWithButton, 0, false);
}
return qq_HeliListWithButtonArray_Make;
}
public void setqq_HeliListWithButtonArray_Make(DataField value) {
DataField oldValue = qq_HeliListWithButtonArray_Make;
qq_HeliListWithButtonArray_Make = value;
this.qq_Listeners.firePropertyChange("qq_HeliListWithButtonArray_Make", oldValue, value);
}
/**
* qq_HeliListWithButtonArray_Model: transformed from: qqds_DataField
* TagId=45
* isInherited=FALSE
*/
public DataField getqq_HeliListWithButtonArray_Model() {
if (qq_HeliListWithButtonArray_Model == null) {
// Mask type: MK_NONE
qq_HeliListWithButtonArray_Model = DataFieldFactory.newDataField("Model", 15, Constants.MK_NONE);
qq_HeliListWithButtonArray_Model.setOriginalFormatText(null);
qq_HeliListWithButtonArray_Model.setHorizontalAlignment(JTextField.LEFT);
WidthPolicy.set(qq_HeliListWithButtonArray_Model, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_HeliListWithButtonArray_Model, Constants.SP_NATURAL);
qq_HeliListWithButtonArray_Model.setMinimumSize(new Dimension(102, 19));
qq_HeliListWithButtonArray_Model.setSize(new Dimension(102, 19));
qq_HeliListWithButtonArray_Model.setLocation(208, 57);
ArrayFieldCellHelper.setUpCellEditor(qq_HeliListWithButtonArray_Model, qq_HeliListWithButton, 1, false);
}
return qq_HeliListWithButtonArray_Model;
}
public void setqq_HeliListWithButtonArray_Model(DataField value) {
DataField oldValue = qq_HeliListWithButtonArray_Model;
qq_HeliListWithButtonArray_Model = value;
this.qq_Listeners.firePropertyChange("qq_HeliListWithButtonArray_Model", oldValue, value);
}
/**
* qq_HeliListWithButtonArray_Blades: transformed from: qqds_DataField
* TagId=47
* isInherited=FALSE
*/
public DataField getqq_HeliListWithButtonArray_Blades() {
if (qq_HeliListWithButtonArray_Blades == null) {
// Mask type: Constants.MK_INTEGER
qq_HeliListWithButtonArray_Blades = DataFieldFactory.newDataField("Blades", 4, Constants.MK_INTEGER);
qq_HeliListWithButtonArray_Blades.setOriginalFormatText(null);
qq_HeliListWithButtonArray_Blades.setHorizontalAlignment(JTextField.RIGHT);
WidthPolicy.set(qq_HeliListWithButtonArray_Blades, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_HeliListWithButtonArray_Blades, Constants.SP_NATURAL);
qq_HeliListWithButtonArray_Blades.setMinimumSize(new Dimension(36, 19));
qq_HeliListWithButtonArray_Blades.setSize(new Dimension(36, 19));
qq_HeliListWithButtonArray_Blades.setLocation(326, 60);
ArrayFieldCellHelper.setUpCellEditor(qq_HeliListWithButtonArray_Blades, qq_HeliListWithButton, 2, false);
}
return qq_HeliListWithButtonArray_Blades;
}
public void setqq_HeliListWithButtonArray_Blades(DataField value) {
DataField oldValue = qq_HeliListWithButtonArray_Blades;
qq_HeliListWithButtonArray_Blades = value;
this.qq_Listeners.firePropertyChange("qq_HeliListWithButtonArray_Blades", oldValue, value);
}
/**
* qq_HeliListWithButtonArray_HeliListWithButtonArray_GridField49: transformed from: qqds_GridField
* TagId=49
* isInherited=FALSE
* In forte this was a 1x1 grid field.
* There are no cell margins set
* The width policy is set to Natural, and the height policy is set to Natural.
*/
protected void setqq_HeliListWithButtonArray_HeliListWithButtonArray_GridField49Properties() {
qq_HeliListWithButtonArray_HeliListWithButtonArray_GridField49.setCollapsed(true);
qq_HeliListWithButtonArray_HeliListWithButtonArray_GridField49.setHeightPolicy(Constants.SP_NATURAL);
qq_HeliListWithButtonArray_HeliListWithButtonArray_GridField49.setWidthPolicy(Constants.SP_NATURAL);
qq_HeliListWithButtonArray_HeliListWithButtonArray_GridField49.setBackground(null);
qq_HeliListWithButtonArray_HeliListWithButtonArray_GridField49.setLocation(280, 28);
}
public GridField getqq_HeliListWithButtonArray_HeliListWithButtonArray_GridField49() {
if (qq_HeliListWithButtonArray_HeliListWithButtonArray_GridField49 == null) {
qq_HeliListWithButtonArray_HeliListWithButtonArray_GridField49 = CompoundFieldFactory.newGridField("qq_HeliListWithButtonArray_HeliListWithButtonArray_GridField49", true);
setqq_HeliListWithButtonArray_HeliListWithButtonArray_GridField49Properties();
ArrayFieldCellHelper.setUpCellEditor(qq_HeliListWithButtonArray_HeliListWithButtonArray_GridField49, qq_HeliListWithButton, 3, false);
qq_HeliListWithButtonArray_HeliListWithButtonArray_GridField49.setMinimumSize(new Dimension(33, 21));
GridBagConstraints qq_gbc = new GridBagConstraints();
qq_gbc.gridx = 0; // Column 1
qq_gbc.gridy = 0; // Row 1
qq_gbc.weightx = 0;
qq_gbc.weighty = 0;
qq_gbc.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_HeliListWithButtonArray_HeliListWithButtonArray_GridField49.add( getqq_HeliListWithButtonArray_aButton(), qq_gbc );
}
return qq_HeliListWithButtonArray_HeliListWithButtonArray_GridField49;
}
public void setqq_HeliListWithButtonArray_HeliListWithButtonArray_GridField49(GridField value) {
GridField oldValue = qq_HeliListWithButtonArray_HeliListWithButtonArray_GridField49;
qq_HeliListWithButtonArray_HeliListWithButtonArray_GridField49 = value;
this.qq_Listeners.firePropertyChange("qq_HeliListWithButtonArray_HeliListWithButtonArray_GridField49", oldValue, value);
}
/**
* Initialise the window and all its children.
*/
protected void initialize() {
if (this.Form == null) {
this.setName( "main" );
this.setTitle( "" );
this.setSystemClosePolicy(Constants.SC_ENABLEDSHUTDOWN);
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_HeliList(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_HeliListArray_Make(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_HeliListArray_Model(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_HeliListArray_Blades(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_HeliListArray_Engine(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_HeliListArray_Engine_Company(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_HeliListArray_Engine_Capacity(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_HeliListArray_Engine_Cylinders(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_HeliListArray_Engine_Power(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_WishList(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_WishListArray_Make(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_WishListArray_Model(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_WishListArray_Blades(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_WishListArray_Engine(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_WishListArray_Engine_Company(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_WishListArray_Engine_Capacity(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_WishListArray_Engine_Cylinders(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_WishListArray_Engine_Power(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_HeliListWithButton(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_HeliListWithButtonArray_Make(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_HeliListWithButtonArray_Model(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_HeliListWithButtonArray_Blades(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_HeliListWithButtonArray_HeliListWithButtonArray_GridField49(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_HeliListWithButtonArray_aButton(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
}
// </editor-fold>
// -----------
// Main method
// -----------
public static void main( String[] args ) {
FrameworkUtils.setCmdLineArgs(args);
AppletConnectionInfo client = null;
try {
// Install our own focus manager. MUST be done prior to setting the
// UIManager, otherwise you'll run into issues like things have the wrong focus.
KeyboardFocusManager.setCurrentKeyboardFocusManager(new ForteKeyboardFocusManager());
UIManager.setLookAndFeel(new Win32LookAndFeel());
client = UserWindow.postAPPLETStarted();
Main main_start = new Main();
main_start.display();
UserWindow.postAPPLETStopped(client);
System.exit(0);
} catch (Throwable e) {
ErrorMgr.showErrors(null, "Unhandled exception", e);
UserWindow.postAPPLETStopped(client);
System.exit(0);
}
}
} // end class main
// c Pass 2 Conversion Time: 608 milliseconds