package WidgetClone;
import DisplayProject.Array_Of_DisplayNode;
import DisplayProject.Array_Of_JComponent;
import DisplayProject.Array_Of_OutlineColumnDesc;
import DisplayProject.CloseHideAdaptor;
import DisplayProject.Constants;
import DisplayProject.CursorMgr;
import DisplayProject.DataField;
import DisplayProject.DisplayNode;
import DisplayProject.DropListModel;
import DisplayProject.GridField;
import DisplayProject.OutlineColumnDesc;
import DisplayProject.PasswordDataField;
import DisplayProject.PictureField;
import DisplayProject.RadioList;
import DisplayProject.ScrollListModel;
import DisplayProject.UDSWindow;
import DisplayProject.UIutils;
import DisplayProject.WindowManager;
import DisplayProject.WindowUsageMap;
import DisplayProject.actions.AppletConnectionInfo;
import DisplayProject.actions.Children;
import DisplayProject.actions.ColourChange;
import DisplayProject.actions.DefaultButton;
import DisplayProject.actions.ExitOnTab;
import DisplayProject.actions.FrameWeight;
import DisplayProject.actions.HeightPolicy;
import DisplayProject.actions.ImageValue;
import DisplayProject.actions.LineNumbers;
import DisplayProject.actions.Parent;
import DisplayProject.actions.RootNode;
import DisplayProject.actions.TreeRootVisible;
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.DropList;
import DisplayProject.controls.Ellipse;
import DisplayProject.controls.FillInField;
import DisplayProject.controls.Line;
import DisplayProject.controls.ListView;
import DisplayProject.controls.MultiLineTextField;
import DisplayProject.controls.OutlineField;
import DisplayProject.controls.PictureGraphic;
import DisplayProject.controls.Point;
import DisplayProject.controls.Rectangle;
import DisplayProject.controls.ScrollList;
import DisplayProject.controls.TextGraphic;
import DisplayProject.controls.TreeViewWidget;
import DisplayProject.events.ClientEventManager;
import DisplayProject.factory.CompoundFieldFactory;
import DisplayProject.factory.DataFieldFactory;
import DisplayProject.factory.DropFillinFactory;
import DisplayProject.factory.GraphicFactory;
import DisplayProject.factory.ListFieldFactory;
import DisplayProject.factory.PictureFieldFactory;
import DisplayProject.factory.PushButtonFactory;
import DisplayProject.factory.ScrollBarFactory;
import DisplayProject.factory.TableFactory;
import DisplayProject.factory.TextEditFactory;
import DisplayProject.factory.ToggleFieldFactory;
import DisplayProject.factory.TreeFieldFactory;
import DisplayProject.plaf.Win32LookAndFeel;
import Framework.Array_Of_ListElement;
import Framework.CloneHelper;
import Framework.ErrorMgr;
import Framework.EventHandle;
import Framework.EventManager;
import Framework.EventRegistration;
import Framework.File;
import Framework.ForteKeyboardFocusManager;
import Framework.FrameworkUtils;
import Framework.ImageData;
import Framework.ListElement;
import Framework.RuntimeProperties;
import Framework.TextData;
import Framework.UsageException;
import java.awt.Dimension;
import java.awt.Font;
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.ImageIcon;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollBar;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.SwingConstants;
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 TextData aTextField;
private TextData aTextEditField;
private int aRadioList;
private int aScrollList;
private int aDropList;
private TextData aFillInField;
private int aSctollBar;
private DisplayNode aOutlineField;
private DisplayNode aTree;
private DisplayNode aListView;
private boolean aToggleField;
private ImageData aPictureField;
private TextData aDataField;
private TextData aPassword;
private boolean eapendToggle;
// ------------
// Constructors
// ------------
public Main() {
// Explicitly call the superclass constructor to prevent the implicit call
super();
this.initialize();
this.setADropList(2);
this.setAFillInField(new TextData("Three"));
this.setAListView(new DisplayNode(true, true, DisplayNode.qq_Resolver.cISFOLDER_ISOPENED));
this.setAOutlineField(new DisplayNode(true, true, DisplayNode.qq_Resolver.cISFOLDER_ISOPENED));
this.setAPictureField(ImageValue.get(this.getqq_aPictureGraphic()));
this.setARadioList(4);
this.setAScrollList(1);
this.setASctollBar(50);
this.setATextEditField(new TextData("Text Edit Field"));
this.setATextField(new TextData("Text Field"));
this.setAToggleField(true);
this.setATree(new DisplayNode(new TextData("Tree Node"), true, DisplayNode.qq_Resolver.cDVNODETEXT_ISFOLDER));
this.setADataField(new TextData("Bill"));
this.setAPassword(new TextData("AAAAAAAA"));
}
// ----------------------
// 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 setATextField(TextData aTextField) {
TextData oldValue = this.aTextField;
this.aTextField = aTextField;
this.qq_Listeners.firePropertyChange("ATextField", oldValue, this.aTextField);
}
public TextData getATextField() {
return this.aTextField;
}
public void setATextEditField(TextData aTextEditField) {
TextData oldValue = this.aTextEditField;
this.aTextEditField = aTextEditField;
this.qq_Listeners.firePropertyChange("ATextEditField", oldValue, this.aTextEditField);
}
public TextData getATextEditField() {
return this.aTextEditField;
}
public void setARadioList(int aRadioList) {
int oldValue = this.aRadioList;
this.aRadioList = aRadioList;
this.qq_Listeners.firePropertyChange("ARadioList", oldValue, this.aRadioList);
}
public int getARadioList() {
return this.aRadioList;
}
public void setAScrollList(int aScrollList) {
int oldValue = this.aScrollList;
this.aScrollList = aScrollList;
this.qq_Listeners.firePropertyChange("AScrollList", oldValue, this.aScrollList);
}
public int getAScrollList() {
return this.aScrollList;
}
public void setADropList(int aDropList) {
int oldValue = this.aDropList;
this.aDropList = aDropList;
this.qq_Listeners.firePropertyChange("ADropList", oldValue, this.aDropList);
}
public int getADropList() {
return this.aDropList;
}
public void setAFillInField(TextData aFillInField) {
TextData oldValue = this.aFillInField;
this.aFillInField = aFillInField;
this.qq_Listeners.firePropertyChange("AFillInField", oldValue, this.aFillInField);
}
public TextData getAFillInField() {
return this.aFillInField;
}
public void setASctollBar(int aSctollBar) {
int oldValue = this.aSctollBar;
this.aSctollBar = aSctollBar;
this.qq_Listeners.firePropertyChange("ASctollBar", oldValue, this.aSctollBar);
}
public int getASctollBar() {
return this.aSctollBar;
}
public void setAOutlineField(DisplayNode aOutlineField) {
DisplayNode oldValue = this.aOutlineField;
this.aOutlineField = aOutlineField;
RootNode.set(this.getqq_aOutlineField(), aOutlineField);
this.qq_Listeners.firePropertyChange("AOutlineField", oldValue, this.aOutlineField);
}
public DisplayNode getAOutlineField() {
return this.aOutlineField;
}
public void setATree(DisplayNode aTree) {
DisplayNode oldValue = this.aTree;
this.aTree = aTree;
RootNode.set(this.getqq_aTree(), aTree);
this.qq_Listeners.firePropertyChange("ATree", oldValue, this.aTree);
}
public DisplayNode getATree() {
return this.aTree;
}
public void setAListView(DisplayNode aListView) {
DisplayNode oldValue = this.getAListView();
this.getqq_aListView().setRootNode(aListView);
this.qq_Listeners.firePropertyChange("AListView", oldValue, aListView);
}
public DisplayNode getAListView() {
return (DisplayNode)this.getqq_aListView().getRootNode();
}
public void setAToggleField(boolean aToggleField) {
boolean oldValue = this.aToggleField;
this.aToggleField = aToggleField;
this.qq_Listeners.firePropertyChange("AToggleField", oldValue, this.aToggleField);
}
public boolean getAToggleField() {
return this.aToggleField;
}
public void setAPictureField(ImageData aPictureField) {
ImageData oldValue = this.aPictureField;
this.aPictureField = aPictureField;
this.qq_Listeners.firePropertyChange("APictureField", oldValue, this.aPictureField);
}
public ImageData getAPictureField() {
return this.aPictureField;
}
public void setADataField(TextData aDataField) {
TextData oldValue = this.aDataField;
this.aDataField = aDataField;
this.qq_Listeners.firePropertyChange("ADataField", oldValue, this.aDataField);
}
public TextData getADataField() {
return this.aDataField;
}
public void setAPassword(TextData aPassword) {
TextData oldValue = this.aPassword;
this.aPassword = aPassword;
this.qq_Listeners.firePropertyChange("APassword", oldValue, this.aPassword);
}
public TextData getAPassword() {
return this.aPassword;
}
public void setEapendToggle(boolean eapendToggle) {
boolean oldValue = this.eapendToggle;
this.eapendToggle = eapendToggle;
this.qq_Listeners.firePropertyChange("eapendToggle", oldValue, this.eapendToggle);
}
public boolean getEapendToggle() {
return this.eapendToggle;
}
// -------
// 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() {
Array_Of_JComponent<JComponent> qq_localVector = Children.get(this.getqq_SourceGrid());
if (qq_localVector != null) {
for (JComponent kid : qq_localVector) {
Parent.set(CloneHelper.clone(kid, true), this.getqq_TargetGrid());
}
}
UserWindow.open(this);
this.getqq_eapendToggle().setText("A bog long name that goes on and on");
// ----------
// 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 DataField qq_aDataField;
public DropList qq_aDropList;
public Ellipse qq_Ellipse34;
public FillInField qq_aFillInField;
public GridField qq_GridField16;
public GridField qq_GridField27;
public GridField qq_GridField38;
public GridField qq_SourceGrid;
public GridField qq_TargetGrid;
public JButton qq_aButton;
public JButton qq_aPictureButton;
public JCheckBox qq_aToggleField;
public JCheckBox qq_eapendToggle;
public JPanel Form;
public JScrollBar qq_aSctollBar;
public JScrollPane qq_aScrollList_sp;
public JScrollPane qq_aTextEditField_sp;
public JScrollPane qq_aTextField_sp;
public JScrollPane qq_aTree_sp;
public Line qq_aLinr;
public ListView qq_aListView;
public MultiLineTextField qq_aTextEditField;
public MultiLineTextField qq_aTextField;
public OutlineColumnDesc qq_aListView_DVNodeText;
public OutlineColumnDesc qq_aOutlineField_DVNodeText;
public OutlineField qq_aOutlineField;
public PasswordDataField qq_aPassword;
public PictureField qq_aPictureField;
public PictureGraphic qq_aPictureGraphic;
public Point qq_aPoint;
public RadioList qq_aRadioList;
public Rectangle qq_aRectangle;
public ScrollList qq_aScrollList;
public TextGraphic qq_aTextGraphic;
public TreeViewWidget qq_aTree;
/**
* qq_aTextGraphic: transformed from: qqds_TextGraphic
* TagId=13
* isInherited=FALSE
*/
public TextGraphic getqq_aTextGraphic() {
if (qq_aTextGraphic == null) {
qq_aTextGraphic = GraphicFactory.newTextGraphic("Text Graphic", "aTextGraphic");
qq_aTextGraphic.setHorizontalAlignment( SwingConstants.LEFT );
// OPTIONAL UIutils.reloadLabelText(qq_aTextGraphic, mcat);
WidthPolicy.set(qq_aTextGraphic, Constants.SP_NATURAL);
HeightPolicy.set(qq_aTextGraphic, Constants.SP_NATURAL);
qq_aTextGraphic.setMinimumSize(new Dimension(67, 14));
}
return qq_aTextGraphic;
}
public void setqq_aTextGraphic(TextGraphic value) {
TextGraphic oldValue = qq_aTextGraphic;
qq_aTextGraphic = value;
this.qq_Listeners.firePropertyChange("qq_aTextGraphic", oldValue, value);
}
/**
* qq_aTextField_sp: transformed from: qqds_TextField
* TagId=14
* isInherited=FALSE
*/
public JScrollPane getqq_aTextField_sp() {
if (qq_aTextField_sp == null) {
qq_aTextField_sp = CompoundFieldFactory.newScrollPane();
qq_aTextField_sp.setName("aTextField");
qq_aTextField_sp.setViewportView(getqq_aTextField());
qq_aTextField_sp.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
qq_aTextField_sp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
WidthPolicy.set(qq_aTextField_sp, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_aTextField_sp, Constants.SP_EXPLICIT);
qq_aTextField_sp.setSize(new Dimension(143, 88));
qq_aTextField_sp.setMinimumSize(new Dimension(143, 88));
qq_aTextField_sp.setPreferredSize(new Dimension(143, 88));
}
return qq_aTextField_sp;
}
public void setqq_aTextField_sp(JScrollPane value) {
JScrollPane oldValue = qq_aTextField_sp;
qq_aTextField_sp = value;
this.qq_Listeners.firePropertyChange("qq_aTextField_sp", oldValue, value);
}
/**
* qq_aTextField: transformed from: qqds_TextField
* TagId=14
* isInherited=FALSE
*/
public MultiLineTextField getqq_aTextField() {
if (qq_aTextField == null) {
qq_aTextField = TextEditFactory.newTextField("aTextField", 6, 15);
getBindingManager().bindComponent(qq_aTextField, "ATextField");
ExitOnTab.set(qq_aTextField, true);
WidthPolicy.set(qq_aTextField, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_aTextField, Constants.SP_EXPLICIT);
}
return qq_aTextField;
}
public void setqq_aTextField(MultiLineTextField value) {
MultiLineTextField oldValue = qq_aTextField;
qq_aTextField = value;
this.qq_Listeners.firePropertyChange("qq_aTextField", oldValue, value);
}
/**
* qq_aTextEditField_sp: transformed from: qqds_TextEditField
* TagId=15
* isInherited=FALSE
*/
public JScrollPane getqq_aTextEditField_sp() {
if (qq_aTextEditField_sp == null) {
qq_aTextEditField_sp = CompoundFieldFactory.newScrollPane();
qq_aTextEditField_sp.setName("aTextEditField");
qq_aTextEditField_sp.setViewportView(getqq_aTextEditField());
qq_aTextEditField_sp.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
qq_aTextEditField_sp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
WidthPolicy.set(qq_aTextEditField_sp, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_aTextEditField_sp, Constants.SP_EXPLICIT);
qq_aTextEditField_sp.setSize(new Dimension(145, 103));
qq_aTextEditField_sp.setMinimumSize(new Dimension(145, 103));
qq_aTextEditField_sp.setPreferredSize(new Dimension(145, 103));
}
return qq_aTextEditField_sp;
}
public void setqq_aTextEditField_sp(JScrollPane value) {
JScrollPane oldValue = qq_aTextEditField_sp;
qq_aTextEditField_sp = value;
this.qq_Listeners.firePropertyChange("qq_aTextEditField_sp", oldValue, value);
}
/**
* qq_aTextEditField: transformed from: qqds_TextEditField
* TagId=15
* isInherited=FALSE
*/
public MultiLineTextField getqq_aTextEditField() {
if (qq_aTextEditField == null) {
qq_aTextEditField = TextEditFactory.newTextEditField("aTextEditField", 6, 9);
LineNumbers.set(qq_aTextEditField, true );
getBindingManager().bindComponent(qq_aTextEditField, "ATextEditField");
WidthPolicy.set(qq_aTextEditField, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_aTextEditField, Constants.SP_EXPLICIT);
}
return qq_aTextEditField;
}
public void setqq_aTextEditField(MultiLineTextField value) {
MultiLineTextField oldValue = qq_aTextEditField;
qq_aTextEditField = value;
this.qq_Listeners.firePropertyChange("qq_aTextEditField", oldValue, value);
}
/**
* qq_aRadioList: transformed from: qqds_RadioList
* TagId=17
* isInherited=FALSE
*/
public RadioList getqq_aRadioList() {
if (qq_aRadioList == null) {
String[] names = {"One", "Two", "Three", "Four"};
qq_aRadioList = ListFieldFactory.newRadioList(Constants.FO_VERTICAL, "", names, 1, Constants.LP_CONSTANT);
Array_Of_ListElement<ListElement> elements = new Array_Of_ListElement<ListElement>();
elements.add( new ListElement( 1, names[0], ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
elements.add( new ListElement( 2, names[1], ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
elements.add( new ListElement( 3, names[2], ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
elements.add( new ListElement( 4, names[3], ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
qq_aRadioList.setName("aRadioList");
getBindingManager().bindComponent(qq_aRadioList, "ARadioList", elements);
if (qq_aRadioList.getSelectedIndex() == -1)
qq_aRadioList.setSelectedIndex(0);
// OPTIONAL UIutils.reloadLabelText(qq_aRadioList, mcat);
}
return qq_aRadioList;
}
public void setqq_aRadioList(RadioList value) {
RadioList oldValue = qq_aRadioList;
qq_aRadioList = value;
this.qq_Listeners.firePropertyChange("qq_aRadioList", oldValue, value);
}
/**
* qq_aScrollList_sp: transformed from: qqds_ScrollList
* TagId=18
* isInherited=FALSE
*/
public JScrollPane getqq_aScrollList_sp() {
if (qq_aScrollList_sp == null) {
qq_aScrollList_sp = CompoundFieldFactory.newScrollPane();
qq_aScrollList_sp.setName("aScrollList");
qq_aScrollList_sp.setViewportView(getqq_aScrollList());
qq_aScrollList_sp.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
qq_aScrollList_sp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
WidthPolicy.set(qq_aScrollList_sp, Constants.SP_NATURAL);
HeightPolicy.set(qq_aScrollList_sp, Constants.SP_NATURAL);
// OPTIONAL qq_aScrollList_sp.setSize(new Dimension(66, 55));
qq_aScrollList_sp.setMinimumSize(new Dimension(66, 55));
qq_aScrollList_sp.setPreferredSize(new Dimension(66, 55));
}
return qq_aScrollList_sp;
}
public void setqq_aScrollList_sp(JScrollPane value) {
JScrollPane oldValue = qq_aScrollList_sp;
qq_aScrollList_sp = value;
this.qq_Listeners.firePropertyChange("qq_aScrollList_sp", oldValue, value);
}
/**
* qq_aScrollList: transformed from: qqds_ScrollList
* TagId=18
* isInherited=FALSE
*/
public ScrollList getqq_aScrollList() {
if (qq_aScrollList == null) {
qq_aScrollList = ListFieldFactory.newScrollList();
qq_aScrollList.setName("aScrollList");
Array_Of_ListElement<ListElement> elements = new Array_Of_ListElement<ListElement>();
elements.add( new ListElement( 1, "One", ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
elements.add( new ListElement( 2, "Two", ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
elements.add( new ListElement( 3, "Three", ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
elements.add( new ListElement( 4, "Four", ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
getBindingManager().bindComponent(qq_aScrollList, "AScrollList", elements, true);
qq_aScrollList.addListSelectionListener((ScrollListModel)qq_aScrollList.getModel());
}
return qq_aScrollList;
}
public void setqq_aScrollList(ScrollList value) {
ScrollList oldValue = qq_aScrollList;
qq_aScrollList = value;
this.qq_Listeners.firePropertyChange("qq_aScrollList", oldValue, value);
}
/**
* qq_aDropList: transformed from: qqds_DropList
* TagId=19
* isInherited=FALSE
*/
public DropList getqq_aDropList() {
if (qq_aDropList == null) {
Array_Of_ListElement<ListElement> elements = new Array_Of_ListElement<ListElement>();
elements.add( new ListElement( 1, "One", ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
elements.add( new ListElement( 2, "Two", ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
elements.add( new ListElement( 3, "Three", ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
elements.add( new ListElement( 4, "Four", ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
qq_aDropList = DropFillinFactory.newDropList();
qq_aDropList.setName("aDropList");
getBindingManager().bindComponent(qq_aDropList, "ADropList", elements);
qq_aDropList.addActionListener( (DropListModel)qq_aDropList.getModel() );
// OPTIONAL UIutils.reloadLabelText(qq_aDropList, mcat);
qq_aDropList.setMaximumRowCount(4);
WidthPolicy.set(qq_aDropList, Constants.SP_NATURAL);
HeightPolicy.set(qq_aDropList, Constants.SP_NATURAL);
qq_aDropList.setMinimumSize(new Dimension(62, 21));
}
return qq_aDropList;
}
public void setqq_aDropList(DropList value) {
DropList oldValue = qq_aDropList;
qq_aDropList = value;
this.qq_Listeners.firePropertyChange("qq_aDropList", oldValue, value);
}
/**
* qq_aFillInField: transformed from: qqds_FillInField
* TagId=20
* isInherited=FALSE
*/
public FillInField getqq_aFillInField() {
if (qq_aFillInField == null) {
Array_Of_ListElement<ListElement> elements = new Array_Of_ListElement<ListElement>();
elements.add( new ListElement( 1, "One", ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
elements.add( new ListElement( 2, "Two", ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
elements.add( new ListElement( 3, "Three", ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
elements.add( new ListElement( 4, "Four", ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
qq_aFillInField = DropFillinFactory.newFillinField();
qq_aFillInField.setName("aFillInField");
getBindingManager().bindComponent(qq_aFillInField, "AFillInField", elements);
qq_aFillInField.addActionListener( (DropListModel)qq_aFillInField.getModel() );
// OPTIONAL UIutils.reloadLabelText(qq_aFillInField, mcat);
qq_aFillInField.setMaximumRowCount(4);
qq_aFillInField.setVisibleColumns(5);
WidthPolicy.set(qq_aFillInField, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_aFillInField, Constants.SP_NATURAL);
qq_aFillInField.setMinimumSize(new Dimension(64, 21));
qq_aFillInField.setSize(new Dimension(64, 21));
}
return qq_aFillInField;
}
public void setqq_aFillInField(FillInField value) {
FillInField oldValue = qq_aFillInField;
qq_aFillInField = value;
this.qq_Listeners.firePropertyChange("qq_aFillInField", oldValue, value);
}
/**
* qq_GridField16: transformed from: qqds_GridField
* TagId=16
* isInherited=FALSE
* In forte this was a 2x2 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_GridField16Properties() {
qq_GridField16.setCollapsed(true);
qq_GridField16.setHeightPolicy(Constants.SP_NATURAL);
qq_GridField16.setWidthPolicy(Constants.SP_NATURAL);
qq_GridField16.setBackground(null);
}
public GridField getqq_GridField16() {
if (qq_GridField16 == null) {
qq_GridField16 = CompoundFieldFactory.newGridField("qq_GridField16", true);
setqq_GridField16Properties();
qq_GridField16.setMinimumSize(new Dimension(127, 108));
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_GridField16.add( getqq_aRadioList(), 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_GridField16.add( getqq_aScrollList_sp(), qq_gbc1 );
GridBagConstraints qq_gbc2 = new GridBagConstraints();
qq_gbc2.gridx = 0; // Column 1
qq_gbc2.gridy = 1; // Row 2
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_GridField16.add( getqq_aDropList(), qq_gbc2 );
GridBagConstraints qq_gbc3 = new GridBagConstraints();
qq_gbc3.gridx = 1; // Column 2
qq_gbc3.gridy = 1; // Row 2
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_GridField16.add( getqq_aFillInField(), qq_gbc3 );
}
return qq_GridField16;
}
public void setqq_GridField16(GridField value) {
GridField oldValue = qq_GridField16;
qq_GridField16 = value;
this.qq_Listeners.firePropertyChange("qq_GridField16", oldValue, value);
}
/**
* qq_aSctollBar: transformed from: qqds_ScrollBar
* TagId=21
* isInherited=FALSE
*/
public JScrollBar getqq_aSctollBar() {
if (qq_aSctollBar == null) {
qq_aSctollBar = ScrollBarFactory.newScrollBar(Constants.FO_HORIZONTAL, 100, 1, 1, 10);
qq_aSctollBar.setName("aSctollBar");
getBindingManager().bindComponent(qq_aSctollBar, "ASctollBar", 1, 100, 10);
WidthPolicy.set(qq_aSctollBar, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_aSctollBar, Constants.SP_NATURAL);
qq_aSctollBar.setSize(new Dimension(146, 16));
qq_aSctollBar.setMinimumSize(new Dimension(146, 16));
qq_aSctollBar.setPreferredSize(new Dimension(146, 16));
}
return qq_aSctollBar;
}
public void setqq_aSctollBar(JScrollBar value) {
JScrollBar oldValue = qq_aSctollBar;
qq_aSctollBar = value;
this.qq_Listeners.firePropertyChange("qq_aSctollBar", oldValue, value);
}
/**
* qq_aOutlineField: transformed from: qqds_OutlineField
* TagId=22
* isInherited=FALSE
*/
public OutlineField getqq_aOutlineField() {
if (qq_aOutlineField == null) {
Array_Of_OutlineColumnDesc<OutlineColumnDesc> columns = new Array_Of_OutlineColumnDesc<OutlineColumnDesc>();
columns.add(getqq_aOutlineField_DVNodeText());
qq_aOutlineField = TableFactory.newOutlineField("aOutlineField", columns);
qq_aOutlineField.setShowHeader(true);
qq_aOutlineField.setControlsDisplayed(true);
qq_aOutlineField.setVertScrollBar(true);
qq_aOutlineField.setHorzScrollBar(true);
TreeRootVisible.set(qq_aOutlineField, false);
qq_aOutlineField.setTitleSetNum(0);
WidthPolicy.set(qq_aOutlineField, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_aOutlineField, Constants.SP_EXPLICIT);
qq_aOutlineField.setSize(new Dimension(162, 83));
qq_aOutlineField.setMinimumSize(new Dimension(162, 83));
qq_aOutlineField.setPreferredSize(new Dimension(162, 83));
}
return qq_aOutlineField;
}
public void setqq_aOutlineField(OutlineField value) {
OutlineField oldValue = qq_aOutlineField;
qq_aOutlineField = value;
this.qq_Listeners.firePropertyChange("qq_aOutlineField", oldValue, value);
}
public OutlineColumnDesc getqq_aOutlineField_DVNodeText() {
if (qq_aOutlineField_DVNodeText == null) {
qq_aOutlineField_DVNodeText = new OutlineColumnDesc(Constants.TA_LEFT, false, false, 1, "DVNodeText", Constants.FP_DEFAULT, Constants.FS_VISIBLE, "Text", 0);
}
return qq_aOutlineField_DVNodeText;
}
/**
* qq_aTree_sp: transformed from: qqds_TreeView
* TagId=23
* isInherited=FALSE
*/
public JScrollPane getqq_aTree_sp() {
if (qq_aTree_sp == null) {
qq_aTree_sp = CompoundFieldFactory.newScrollPane();
qq_aTree_sp.setName("aTree");
qq_aTree_sp.setViewportView(getqq_aTree());
qq_aTree_sp.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
qq_aTree_sp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
WidthPolicy.set(qq_aTree_sp, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_aTree_sp, Constants.SP_EXPLICIT);
// OPTIONAL qq_aTree_sp.setSize(new Dimension(146, 98));
qq_aTree_sp.setMinimumSize(new Dimension(146, 98));
qq_aTree_sp.setPreferredSize(new Dimension(146, 98));
}
return qq_aTree_sp;
}
public void setqq_aTree_sp(JScrollPane value) {
JScrollPane oldValue = qq_aTree_sp;
qq_aTree_sp = value;
this.qq_Listeners.firePropertyChange("qq_aTree_sp", oldValue, value);
}
/**
* qq_aTree: transformed from: qqds_TreeView
* TagId=23
* isInherited=FALSE
*/
public TreeViewWidget getqq_aTree() {
if (qq_aTree == null) {
qq_aTree = TreeFieldFactory.newTreeView(getATree());
qq_aTree.setName("aTree");
qq_aTree.setRootVisible(true);
qq_aTree.setDragEnabled(false);
}
return qq_aTree;
}
public void setqq_aTree(TreeViewWidget value) {
TreeViewWidget oldValue = qq_aTree;
qq_aTree = value;
this.qq_Listeners.firePropertyChange("qq_aTree", oldValue, value);
}
/**
* qq_aListView: transformed from: qqds_ListView
* TagId=24
* isInherited=FALSE
*/
public ListView getqq_aListView() {
if (qq_aListView == null) {
qq_aListView = TableFactory.newListView("aListView", Constants.LT_DETAIL, null, Font.PLAIN);
qq_aListView.setMappedType(Array_Of_DisplayNode.class);
Array_Of_OutlineColumnDesc<OutlineColumnDesc> columns = new Array_Of_OutlineColumnDesc<OutlineColumnDesc>();
columns.add(getqq_aListView_DVNodeText());
qq_aListView.setColumnList(columns);
qq_aListView.setHasTitles(true);
qq_aListView.setSize(new Dimension(153, 91));
qq_aListView.setMinimumSize(new Dimension(153, 91));
// OPTIONAL qq_aListView.setPreferredSize(new Dimension(153, 91));
WidthPolicy.set(qq_aListView, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_aListView, Constants.SP_EXPLICIT);
}
return qq_aListView;
}
public void setqq_aListView(ListView value) {
ListView oldValue = qq_aListView;
qq_aListView = value;
this.qq_Listeners.firePropertyChange("qq_aListView", oldValue, value);
}
public OutlineColumnDesc getqq_aListView_DVNodeText() {
if (qq_aListView_DVNodeText == null) {
qq_aListView_DVNodeText = new OutlineColumnDesc(Constants.TA_LEFT, false, false, 6, "DVNodeText", Constants.FP_DEFAULT, Constants.FS_VISIBLE, "Text", 0);
}
return qq_aListView_DVNodeText;
}
/**
* qq_aToggleField: transformed from: qqds_ToggleField
* TagId=25
* isInherited=FALSE
*/
public JCheckBox getqq_aToggleField() {
if (qq_aToggleField == null) {
qq_aToggleField = ToggleFieldFactory.newToggleField("Toggle", "aToggleField");
getBindingManager().bindComponent(qq_aToggleField, "AToggleField");
// OPTIONAL UIutils.reloadLabelText(qq_aToggleField, mcat);
}
return qq_aToggleField;
}
public void setqq_aToggleField(JCheckBox value) {
JCheckBox oldValue = qq_aToggleField;
qq_aToggleField = value;
this.qq_Listeners.firePropertyChange("qq_aToggleField", oldValue, value);
}
/**
* qq_aPictureField: transformed from: qqds_PictureField
* TagId=26
* isInherited=FALSE
*/
public PictureField getqq_aPictureField() {
if (qq_aPictureField == null) {
qq_aPictureField = PictureFieldFactory.newInstance("aPictureField", Constants.IS_FIELD, Constants.CG_CENTER);
getBindingManager().bindComponent(qq_aPictureField, "APictureField");
WidthPolicy.set(qq_aPictureField, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_aPictureField, Constants.SP_EXPLICIT);
qq_aPictureField.setSize(new Dimension(146, 98));
qq_aPictureField.setMinimumSize(new Dimension(146, 98));
qq_aPictureField.setPreferredSize(new Dimension(146, 98));
}
return qq_aPictureField;
}
public void setqq_aPictureField(PictureField value) {
PictureField oldValue = qq_aPictureField;
qq_aPictureField = value;
this.qq_Listeners.firePropertyChange("qq_aPictureField", oldValue, value);
}
/**
* qq_aButton: transformed from: qqds_PushButton
* TagId=28
* isInherited=FALSE
*/
public JButton getqq_aButton() {
if (qq_aButton == null) {
qq_aButton = PushButtonFactory.newInstance("aButton", "Button");
qq_aButton.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_aButton, Constants.SP_NATURAL);
HeightPolicy.set(qq_aButton, Constants.SP_NATURAL);
qq_aButton.setMinimumSize(new Dimension(45, 21));
}
return qq_aButton;
}
public void setqq_aButton(JButton value) {
JButton oldValue = qq_aButton;
qq_aButton = value;
this.qq_Listeners.firePropertyChange("qq_aButton", oldValue, value);
}
/**
* qq_aPictureGraphic: transformed from: qqds_PictureGraphic
* TagId=29
* isInherited=FALSE
*/
public PictureGraphic getqq_aPictureGraphic() {
if (qq_aPictureGraphic == null) {
qq_aPictureGraphic = GraphicFactory.newPictureGraphic("", Constants.CG_CENTER);
qq_aPictureGraphic.setImageValue(new ImageData(new ImageIcon(Main.class.getResource("main.qq_aPictureGraphic.png"))));
qq_aPictureGraphic.setWidthPolicy(Constants.SP_NATURAL);
qq_aPictureGraphic.setHeightPolicy(Constants.SP_NATURAL);
qq_aPictureGraphic.setImageSizePolicy(Constants.IS_NATURAL);
qq_aPictureGraphic.setOpaque( true );
qq_aPictureGraphic.setSize(new Dimension(31, 12));
qq_aPictureGraphic.setMinimumSize(new Dimension(31, 12));
qq_aPictureGraphic.setPreferredSize(new Dimension(31, 12));
}
return qq_aPictureGraphic;
}
public void setqq_aPictureGraphic(PictureGraphic value) {
PictureGraphic oldValue = qq_aPictureGraphic;
qq_aPictureGraphic = value;
this.qq_Listeners.firePropertyChange("qq_aPictureGraphic", oldValue, value);
}
/**
* qq_aPictureButton: transformed from: qqds_PictureButton
* TagId=30
* isInherited=FALSE
*/
public JButton getqq_aPictureButton() {
if (qq_aPictureButton == null) {
qq_aPictureButton = PushButtonFactory.newInstance("aPictureButton");
qq_aPictureButton.setIcon(new ImageIcon(Main.class.getResource("main.qq_aPictureButton.png")));
DefaultButton.set(qq_aPictureButton, true);
qq_aPictureButton.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_aPictureButton, Constants.SP_NATURAL);
HeightPolicy.set(qq_aPictureButton, Constants.SP_NATURAL);
qq_aPictureButton.setSize(new Dimension(40, 21));
qq_aPictureButton.setMinimumSize(new Dimension(40, 21));
qq_aPictureButton.setPreferredSize(new Dimension(40, 21));
}
return qq_aPictureButton;
}
public void setqq_aPictureButton(JButton value) {
JButton oldValue = qq_aPictureButton;
qq_aPictureButton = value;
this.qq_Listeners.firePropertyChange("qq_aPictureButton", oldValue, value);
}
/**
* qq_aPoint: transformed from: qqds_Point
* TagId=31
* isInherited=FALSE
*/
public Point getqq_aPoint() {
if (qq_aPoint == null) {
qq_aPoint = new Point();
qq_aPoint.setName("aPoint");
qq_aPoint.setSymbol(DisplayProject.Constants.PS_DIAMOND);
qq_aPoint.setOpaque( false );
ColourChange.setForeground(qq_aPoint, Constants.C_BRIGHTRED);
WidthPolicy.set(qq_aPoint, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_aPoint, Constants.SP_EXPLICIT);
qq_aPoint.setSize(new Dimension(9, 9));
qq_aPoint.setMinimumSize(new Dimension(9, 9));
qq_aPoint.setPreferredSize(new Dimension(9, 9));
}
return qq_aPoint;
}
public void setqq_aPoint(Point value) {
Point oldValue = qq_aPoint;
qq_aPoint = value;
this.qq_Listeners.firePropertyChange("qq_aPoint", oldValue, value);
}
/**
* qq_GridField27: transformed from: qqds_GridField
* TagId=27
* isInherited=FALSE
* In forte this was a 2x2 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_GridField27Properties() {
qq_GridField27.setCollapsed(true);
qq_GridField27.setHeightPolicy(Constants.SP_NATURAL);
qq_GridField27.setWidthPolicy(Constants.SP_NATURAL);
qq_GridField27.setBackground(null);
}
public GridField getqq_GridField27() {
if (qq_GridField27 == null) {
qq_GridField27 = CompoundFieldFactory.newGridField("qq_GridField27", true);
setqq_GridField27Properties();
qq_GridField27.setMinimumSize(new Dimension(83, 48));
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_GridField27.add( getqq_aButton(), 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_GridField27.add( getqq_aPictureGraphic(), qq_gbc1 );
GridBagConstraints qq_gbc2 = new GridBagConstraints();
qq_gbc2.gridx = 0; // Column 1
qq_gbc2.gridy = 1; // Row 2
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_GridField27.add( getqq_aPictureButton(), qq_gbc2 );
GridBagConstraints qq_gbc3 = new GridBagConstraints();
qq_gbc3.gridx = 1; // Column 2
qq_gbc3.gridy = 1; // Row 2
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_GridField27.add( getqq_aPoint(), qq_gbc3 );
}
return qq_GridField27;
}
public void setqq_GridField27(GridField value) {
GridField oldValue = qq_GridField27;
qq_GridField27 = value;
this.qq_Listeners.firePropertyChange("qq_GridField27", oldValue, value);
}
/**
* qq_aLinr: transformed from: qqds_Line
* TagId=32
* isInherited=FALSE
*/
public Line getqq_aLinr() {
if (qq_aLinr == null) {
qq_aLinr = DisplayProject.factory.GraphicFactory.newLine(1875, 4281, 3240, 4281);
qq_aLinr.setName("aLinr");
qq_aLinr.setLineWeight(Constants.W_THREEPIXELS);
qq_aLinr.setLineStyle(Constants.LS_SOLID);
qq_aLinr.setOpaque( true );
ColourChange.setForeground(qq_aLinr, Constants.C_BRIGHTBLUE);
}
return qq_aLinr;
}
public void setqq_aLinr(Line value) {
Line oldValue = qq_aLinr;
qq_aLinr = value;
this.qq_Listeners.firePropertyChange("qq_aLinr", oldValue, value);
}
/**
* qq_aRectangle: transformed from: qqds_Rectangle
* TagId=33
* isInherited=FALSE
*/
public Rectangle getqq_aRectangle() {
if (qq_aRectangle == null) {
qq_aRectangle = new Rectangle();
qq_aRectangle.setName("aRectangle");
qq_aRectangle.setLineWeight(DisplayProject.Constants.W_ONEPIXEL);
qq_aRectangle.setOpaque(true);
ColourChange.setBackground(qq_aRectangle, Constants.C_BRIGHTYELLOW);
WidthPolicy.set(qq_aRectangle, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_aRectangle, Constants.SP_EXPLICIT);
qq_aRectangle.setSize(new Dimension(132, 69));
qq_aRectangle.setMinimumSize(new Dimension(132, 69));
qq_aRectangle.setPreferredSize(new Dimension(132, 69));
}
return qq_aRectangle;
}
public void setqq_aRectangle(Rectangle value) {
Rectangle oldValue = qq_aRectangle;
qq_aRectangle = value;
this.qq_Listeners.firePropertyChange("qq_aRectangle", oldValue, value);
}
/**
* qq_Ellipse34: transformed from: qqds_Ellipse
* TagId=34
* isInherited=FALSE
*/
public Ellipse getqq_Ellipse34() {
if (qq_Ellipse34 == null) {
qq_Ellipse34 = new Ellipse();
qq_Ellipse34.setName("");
qq_Ellipse34.setLineWeight(DisplayProject.Constants.W_ONEPIXEL);
qq_Ellipse34.setOpaque(true);
ColourChange.setBackground(qq_Ellipse34, Constants.C_PALEMAGENTA);
WidthPolicy.set(qq_Ellipse34, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_Ellipse34, Constants.SP_EXPLICIT);
qq_Ellipse34.setSize(new Dimension(124, 74));
qq_Ellipse34.setMinimumSize(new Dimension(124, 74));
qq_Ellipse34.setPreferredSize(new Dimension(124, 74));
}
return qq_Ellipse34;
}
public void setqq_Ellipse34(Ellipse value) {
Ellipse oldValue = qq_Ellipse34;
qq_Ellipse34 = value;
this.qq_Listeners.firePropertyChange("qq_Ellipse34", oldValue, value);
}
/**
* qq_aDataField: transformed from: qqds_DataField
* TagId=36
* isInherited=FALSE
*/
public DataField getqq_aDataField() {
if (qq_aDataField == null) {
// Mask type: MK_NONE
qq_aDataField = DataFieldFactory.newDataField("aDataField", 20, TextData.class, Constants.MK_NONE);
qq_aDataField.setValue("");
qq_aDataField.setOriginalFormatText(null);
qq_aDataField.setHorizontalAlignment(JTextField.LEFT);
getBindingManager().bindComponent(qq_aDataField, "ADataField");
WidthPolicy.set(qq_aDataField, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_aDataField, Constants.SP_NATURAL);
qq_aDataField.setMinimumSize(new Dimension(132, 19));
qq_aDataField.setSize(new Dimension(132, 19));
}
return qq_aDataField;
}
public void setqq_aDataField(DataField value) {
DataField oldValue = qq_aDataField;
qq_aDataField = value;
this.qq_Listeners.firePropertyChange("qq_aDataField", oldValue, value);
}
/**
* qq_aPassword: transformed from: qqds_DataField
* TagId=37
* isInherited=FALSE
*/
public PasswordDataField getqq_aPassword() {
if (qq_aPassword == null) {
qq_aPassword = DataFieldFactory.newPasswordField("aPassword", 22);
qq_aPassword.setValue("");
qq_aPassword.setOpaque( true );
qq_aPassword.setHorizontalAlignment(JTextField.LEFT);
getBindingManager().bindComponent(qq_aPassword, "APassword");
WidthPolicy.set(qq_aPassword, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_aPassword, Constants.SP_NATURAL);
qq_aPassword.setMinimumSize(new Dimension(144, 19));
qq_aPassword.setSize(new Dimension(144, 19));
}
return qq_aPassword;
}
public void setqq_aPassword(PasswordDataField value) {
PasswordDataField oldValue = qq_aPassword;
qq_aPassword = value;
this.qq_Listeners.firePropertyChange("qq_aPassword", oldValue, value);
}
/**
* qq_SourceGrid: transformed from: qqds_GridField
* TagId=12
* isInherited=FALSE
* In forte this was a 2x8 grid field.
* The cell margins are all 50 mils
* The width policy is set to Natural, and the height policy is set to Natural.
*/
protected void setqq_SourceGridProperties() {
qq_SourceGrid.setCellTopMargin(25);
qq_SourceGrid.setCellBottomMargin(25);
qq_SourceGrid.setCellLeftMargin(25);
qq_SourceGrid.setCellRightMargin(25);
qq_SourceGrid.setCollapsed(true);
qq_SourceGrid.setHeightPolicy(Constants.SP_NATURAL);
qq_SourceGrid.setWidthPolicy(Constants.SP_NATURAL);
qq_SourceGrid.setBackground(null);
qq_SourceGrid.setLocation(4, 6);
}
public GridField getqq_SourceGrid() {
if (qq_SourceGrid == null) {
qq_SourceGrid = CompoundFieldFactory.newGridField("SourceGrid", false);
setqq_SourceGridProperties();
qq_SourceGrid.setMinimumSize(new Dimension(331, 631));
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(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_SourceGrid.add( getqq_aTextGraphic(), 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(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_SourceGrid.add( getqq_aToggleField(), qq_gbc1 );
GridBagConstraints qq_gbc2 = new GridBagConstraints();
qq_gbc2.gridx = 0; // Column 1
qq_gbc2.gridy = 1; // Row 2
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(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_SourceGrid.add( getqq_aDataField(), qq_gbc2 );
GridBagConstraints qq_gbc3 = new GridBagConstraints();
qq_gbc3.gridx = 1; // Column 2
qq_gbc3.gridy = 1; // Row 2
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(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_SourceGrid.add( getqq_aPassword(), qq_gbc3 );
GridBagConstraints qq_gbc4 = new GridBagConstraints();
qq_gbc4.gridx = 0; // Column 1
qq_gbc4.gridy = 2; // Row 3
qq_gbc4.weightx = 0;
qq_gbc4.weighty = 0;
qq_gbc4.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc4.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc4.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_SourceGrid.add( getqq_aTextField_sp(), qq_gbc4 );
GridBagConstraints qq_gbc5 = new GridBagConstraints();
qq_gbc5.gridx = 1; // Column 2
qq_gbc5.gridy = 2; // Row 3
qq_gbc5.weightx = 0;
qq_gbc5.weighty = 0;
qq_gbc5.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc5.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc5.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_SourceGrid.add( getqq_aListView(), qq_gbc5 );
GridBagConstraints qq_gbc6 = new GridBagConstraints();
qq_gbc6.gridx = 0; // Column 1
qq_gbc6.gridy = 3; // Row 4
qq_gbc6.weightx = 0;
qq_gbc6.weighty = 0;
qq_gbc6.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc6.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc6.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_SourceGrid.add( getqq_aTextEditField_sp(), qq_gbc6 );
GridBagConstraints qq_gbc7 = new GridBagConstraints();
qq_gbc7.gridx = 1; // Column 2
qq_gbc7.gridy = 3; // Row 4
qq_gbc7.weightx = 0;
qq_gbc7.weighty = 0;
qq_gbc7.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc7.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc7.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_SourceGrid.add( getqq_aPictureField(), qq_gbc7 );
GridBagConstraints qq_gbc8 = new GridBagConstraints();
qq_gbc8.gridx = 0; // Column 1
qq_gbc8.gridy = 4; // Row 5
qq_gbc8.weightx = 0;
qq_gbc8.weighty = 0;
qq_gbc8.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc8.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc8.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_SourceGrid.add( getqq_GridField16(), qq_gbc8 );
GridBagConstraints qq_gbc9 = new GridBagConstraints();
qq_gbc9.gridx = 1; // Column 2
qq_gbc9.gridy = 4; // Row 5
qq_gbc9.weightx = 0;
qq_gbc9.weighty = 0;
qq_gbc9.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc9.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc9.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_SourceGrid.add( getqq_GridField27(), qq_gbc9 );
GridBagConstraints qq_gbc10 = new GridBagConstraints();
qq_gbc10.gridx = 0; // Column 1
qq_gbc10.gridy = 5; // Row 6
qq_gbc10.weightx = 0;
qq_gbc10.weighty = 0;
qq_gbc10.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc10.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc10.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_SourceGrid.add( getqq_aSctollBar(), qq_gbc10 );
GridBagConstraints qq_gbc11 = new GridBagConstraints();
qq_gbc11.gridx = 1; // Column 2
qq_gbc11.gridy = 5; // Row 6
qq_gbc11.weightx = 0;
qq_gbc11.weighty = 0;
qq_gbc11.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc11.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc11.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_SourceGrid.add( getqq_aLinr(), qq_gbc11 );
GridBagConstraints qq_gbc12 = new GridBagConstraints();
qq_gbc12.gridx = 0; // Column 1
qq_gbc12.gridy = 6; // Row 7
qq_gbc12.weightx = 0;
qq_gbc12.weighty = 0;
qq_gbc12.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc12.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc12.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_SourceGrid.add( getqq_aOutlineField(), qq_gbc12 );
GridBagConstraints qq_gbc13 = new GridBagConstraints();
qq_gbc13.gridx = 1; // Column 2
qq_gbc13.gridy = 6; // Row 7
qq_gbc13.weightx = 0;
qq_gbc13.weighty = 0;
qq_gbc13.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc13.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc13.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_SourceGrid.add( getqq_aRectangle(), qq_gbc13 );
GridBagConstraints qq_gbc14 = new GridBagConstraints();
qq_gbc14.gridx = 0; // Column 1
qq_gbc14.gridy = 7; // Row 8
qq_gbc14.weightx = 0;
qq_gbc14.weighty = 0;
qq_gbc14.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc14.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc14.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_SourceGrid.add( getqq_aTree_sp(), qq_gbc14 );
GridBagConstraints qq_gbc15 = new GridBagConstraints();
qq_gbc15.gridx = 1; // Column 2
qq_gbc15.gridy = 7; // Row 8
qq_gbc15.weightx = 0;
qq_gbc15.weighty = 0;
qq_gbc15.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc15.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc15.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_SourceGrid.add( getqq_Ellipse34(), qq_gbc15 );
}
return qq_SourceGrid;
}
public void setqq_SourceGrid(GridField value) {
GridField oldValue = qq_SourceGrid;
qq_SourceGrid = value;
this.qq_Listeners.firePropertyChange("qq_SourceGrid", oldValue, value);
}
/**
* qq_TargetGrid: transformed from: qqds_GridField
* TagId=35
* 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_TargetGridProperties() {
FrameWeight.set(qq_TargetGrid, Constants.W_ONEPIXEL);
qq_TargetGrid.setCollapsed(true);
qq_TargetGrid.setHeightPolicy(Constants.SP_NATURAL);
qq_TargetGrid.setWidthPolicy(Constants.SP_NATURAL);
qq_TargetGrid.setBackground(null);
qq_TargetGrid.setLocation(364, 7);
}
public GridField getqq_TargetGrid() {
if (qq_TargetGrid == null) {
qq_TargetGrid = CompoundFieldFactory.newGridField("TargetGrid", false);
setqq_TargetGridProperties();
qq_TargetGrid.setMinimumSize(new Dimension(50, 50));
}
return qq_TargetGrid;
}
public void setqq_TargetGrid(GridField value) {
GridField oldValue = qq_TargetGrid;
qq_TargetGrid = value;
this.qq_Listeners.firePropertyChange("qq_TargetGrid", oldValue, value);
}
/**
* qq_eapendToggle: transformed from: qqds_ToggleField
* TagId=39
* isInherited=FALSE
*/
public JCheckBox getqq_eapendToggle() {
if (qq_eapendToggle == null) {
qq_eapendToggle = ToggleFieldFactory.newToggleField("Toggle", "eapendToggle");
getBindingManager().bindComponent(qq_eapendToggle, "eapendToggle");
// OPTIONAL UIutils.reloadLabelText(qq_eapendToggle, mcat);
}
return qq_eapendToggle;
}
public void setqq_eapendToggle(JCheckBox value) {
JCheckBox oldValue = qq_eapendToggle;
qq_eapendToggle = value;
this.qq_Listeners.firePropertyChange("qq_eapendToggle", oldValue, value);
}
/**
* qq_GridField38: transformed from: qqds_GridField
* TagId=38
* 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_GridField38Properties() {
qq_GridField38.setCollapsed(true);
qq_GridField38.setHeightPolicy(Constants.SP_NATURAL);
qq_GridField38.setWidthPolicy(Constants.SP_NATURAL);
qq_GridField38.setBackground(null);
qq_GridField38.setLocation(91, 667);
}
public GridField getqq_GridField38() {
if (qq_GridField38 == null) {
qq_GridField38 = CompoundFieldFactory.newGridField("qq_GridField38", true);
setqq_GridField38Properties();
qq_GridField38.setMinimumSize(new Dimension(55, 23));
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_GridField38.add( getqq_eapendToggle(), qq_gbc );
}
return qq_GridField38;
}
public void setqq_GridField38(GridField value) {
GridField oldValue = qq_GridField38;
qq_GridField38 = value;
this.qq_Listeners.firePropertyChange("qq_GridField38", 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_GridField38() );
Form.add( getqq_TargetGrid() );
Form.add( getqq_SourceGrid() );
}
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( "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_SourceGrid(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aTextGraphic(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_aTextField(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aTextEditField(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_GridField16(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aRadioList(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aScrollList(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aDropList(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aFillInField(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aSctollBar(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aOutlineField(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aTree(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aListView(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aToggleField(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aPictureField(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_GridField27(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aButton(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_aPictureGraphic(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_aPictureButton(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_aPoint(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_aLinr(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_aRectangle(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_Ellipse34(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_aDataField(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aPassword(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_TargetGrid(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_GridField38(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_eapendToggle(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
}
// </editor-fold>
// -----------
// Main method
// -----------
public static void main( String[] args ) {
FrameworkUtils.setCmdLineArgs(args);
AppletConnectionInfo client = null;
try {
// Install our own focus manager. MUST be done prior to setting the
// UIManager, otherwise you'll run into issues like things have the wrong focus.
KeyboardFocusManager.setCurrentKeyboardFocusManager(new ForteKeyboardFocusManager());
UIManager.setLookAndFeel(new Win32LookAndFeel());
client = UserWindow.postAPPLETStarted();
Main main_start = new Main();
main_start.display();
UserWindow.postAPPLETStopped(client);
System.exit(0);
} catch (Throwable e) {
ErrorMgr.showErrors(null, "Unhandled exception", e);
UserWindow.postAPPLETStopped(client);
System.exit(0);
}
}
} // end class main
// c Pass 2 Conversion Time: 484 milliseconds