package TestWin;
import DisplayProject.ArrayColumn;
import DisplayProject.ArrayFieldModel;
import DisplayProject.CloseHideAdaptor;
import DisplayProject.Constants;
import DisplayProject.CursorMgr;
import DisplayProject.DataField;
import DisplayProject.GridField;
import DisplayProject.UDSWindow;
import DisplayProject.UIutils;
import DisplayProject.WindowManager;
import DisplayProject.WindowUsageMap;
import DisplayProject.actions.AppletConnectionInfo;
import DisplayProject.actions.CharacterTemplate;
import DisplayProject.actions.DateTemplate;
import DisplayProject.actions.FrameColor;
import DisplayProject.actions.HeightPolicy;
import DisplayProject.actions.Name;
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.TextGraphic;
import DisplayProject.events.ClientEventManager;
import DisplayProject.factory.CompoundFieldFactory;
import DisplayProject.factory.DataFieldFactory;
import DisplayProject.factory.GraphicFactory;
import DisplayProject.factory.TableFactory;
import DisplayProject.plaf.Win32LookAndFeel;
import DisplayProject.table.ArrayFieldCellHelper;
import DisplayProject.table.FormattedCellEditor;
import DisplayProject.table.FormattedCellRenderer;
import Framework.DateTimeNullable;
import Framework.DecimalData;
import Framework.ErrorMgr;
import Framework.EventHandle;
import Framework.EventManager;
import Framework.EventRegistration;
import Framework.File;
import Framework.ForteKeyboardFocusManager;
import Framework.FrameworkUtils;
import Framework.RuntimeProperties;
import Framework.TextData;
import Framework.UsageException;
import TestWin.Array_Of_ContainerClass;
import TestWin.ContainerClass;
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 java.text.ParseException;
import javax.swing.BorderFactory;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.SwingConstants;
import javax.swing.UIManager;
import javax.swing.text.MaskFormatter;
import org.apache.log4j.Logger;
/**
* TestWindow<p>
* <p>
* @author Generated from Forte
* @since 19-Nov-2008
*/
@RuntimeProperties(isDistributed=false, isAnchored=false, isShared=false, isTransactional=false)
@UDSWindow()
@SuppressWarnings("serial")
public class TestWindow
extends JFrame
implements Serializable, Observable
{
// ----------
// Attributes
// ----------
protected File DefaultHelpFile;
protected BindingManager bindingManager = null;
public PropertyChangeSupport qq_Listeners = new ExtendedPropertyChangeSupport(this, true);
private TextData uppercase;
private TextData num;
private TextData qq_int;
private DateTimeNullable templatedate;
private TextData templateString;
private TextData viacode;
private float testMask1;
private DecimalData testMask2;
private Array_Of_ContainerClass<ContainerClass> arrayMaskTester;
// ------------
// Constructors
// ------------
public TestWindow() {
// Explicitly call the superclass constructor to prevent the implicit call
super();
this.initialize();
this.setTemplatedate(new DateTimeNullable());
this.setTestMask2(new DecimalData());
this.setArrayMaskTester(new Array_Of_ContainerClass<ContainerClass>());
}
// ----------------------
// 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 setUppercase(TextData uppercase) {
TextData oldValue = this.uppercase;
this.uppercase = uppercase;
this.qq_Listeners.firePropertyChange("uppercase", oldValue, this.uppercase);
}
public TextData getUppercase() {
return this.uppercase;
}
public void setNum(TextData num) {
TextData oldValue = this.num;
this.num = num;
this.qq_Listeners.firePropertyChange("num", oldValue, this.num);
}
public TextData getNum() {
return this.num;
}
public void setInt(TextData qq_int) {
TextData oldValue = this.qq_int;
this.qq_int = qq_int;
this.qq_Listeners.firePropertyChange("qq_int", oldValue, this.qq_int);
}
public TextData getInt() {
return this.qq_int;
}
public void setTemplatedate(DateTimeNullable templatedate) {
DateTimeNullable oldValue = this.templatedate;
this.templatedate = templatedate;
this.qq_Listeners.firePropertyChange("templatedate", oldValue, this.templatedate);
}
public DateTimeNullable getTemplatedate() {
return this.templatedate;
}
public void setTemplateString(TextData templateString) {
TextData oldValue = this.templateString;
this.templateString = templateString;
this.qq_Listeners.firePropertyChange("templateString", oldValue, this.templateString);
}
public TextData getTemplateString() {
return this.templateString;
}
public void setViacode(TextData viacode) {
TextData oldValue = this.viacode;
this.viacode = viacode;
this.qq_Listeners.firePropertyChange("viacode", oldValue, this.viacode);
}
public TextData getViacode() {
return this.viacode;
}
public void setTestMask1(float testMask1) {
float oldValue = this.testMask1;
this.testMask1 = testMask1;
this.qq_Listeners.firePropertyChange("testMask1", new Float(oldValue), new Float(this.testMask1));
}
public float getTestMask1() {
return this.testMask1;
}
public void setTestMask2(DecimalData testMask2) {
DecimalData oldValue = this.testMask2;
this.testMask2 = testMask2;
this.qq_Listeners.firePropertyChange("testMask2", oldValue, this.testMask2);
}
public DecimalData getTestMask2() {
return this.testMask2;
}
public void setArrayMaskTester(Array_Of_ContainerClass<ContainerClass> arrayMaskTester) {
Array_Of_ContainerClass<ContainerClass> oldValue = this.arrayMaskTester;
this.arrayMaskTester = arrayMaskTester;
this.qq_Listeners.firePropertyChange("arrayMaskTester", oldValue, this.arrayMaskTester);
}
public Array_Of_ContainerClass<ContainerClass> getArrayMaskTester() {
return this.arrayMaskTester;
}
// -------
// 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);
this.setViacode(new TextData());
CharacterTemplate.set(this.getqq_viacode(), new TextData("(10)A"));
JComponent aWidget = this.getqq_arrayMaskTesterArray_TestMask2();
Logger.getLogger("task.part.logmgr").info(Name.get(aWidget));
//aWidget = <arrayMaskTester>.GetColumnTemplate(2);
//task.lgr.putline(aWidget.Name);
// ----------
// Event Loop
// ----------
EventManager.startEventLoop();
try {
EventRegistration DataField_AfterValueChange_getqq_templatedate = ClientEventManager.register( this.getqq_templatedate(), "AfterValueChange" );
EventRegistration DataField_AfterValueChange_getqq_uppercase = ClientEventManager.register( this.getqq_uppercase(), "AfterValueChange" );
EventRegistration Window_AfterFinalize_this = ClientEventManager.register( this, "AfterFinalize" );
while (true) {
UIutils.processGUIActions();
EventHandle qq_currentEvent = EventManager.waitForEvent();
if (qq_currentEvent == null)
break;
// -------------------------------
// <templatedate>.AfterValueChange
// -------------------------------
if (qq_currentEvent.isEvent(DataField_AfterValueChange_getqq_templatedate)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Logger.getLogger("task.part.logmgr").info(this.getTemplatedate());
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ----------------------------
// <uppercase>.AfterValueChange
// ----------------------------
else if (qq_currentEvent.isEvent(DataField_AfterValueChange_getqq_uppercase)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Logger.getLogger("task.part.logmgr").info(this.getUppercase());
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// --------------------
// Window.afterfinalize
// --------------------
else if (qq_currentEvent.isEvent(Window_AfterFinalize_this)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Logger.getLogger("task.part.logmgr").info(this.getUppercase());
break;
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
}
EventManager.deregister( DataField_AfterValueChange_getqq_templatedate );
EventManager.deregister( DataField_AfterValueChange_getqq_uppercase );
EventManager.deregister( Window_AfterFinalize_this );
}
//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_arrayMaskTester;
public DataField qq_TestMask1;
public DataField qq_TestMask2;
public DataField qq_arrayMaskTesterArray_TestMask1;
public DataField qq_arrayMaskTesterArray_TestMask2;
public DataField qq_num;
public DataField qq_qq_int;
public DataField qq_templateString;
public DataField qq_templatedate;
public DataField qq_uppercase;
public DataField qq_viacode;
public GridField qq_GridField29;
public GridField qq_GridField30;
public JPanel Form;
public JScrollPane qq_arrayMaskTester_sp;
public TextGraphic qq_000MaskLbl;
public TextGraphic qq_00MaskLbl;
public TextGraphic qq_IntegerLbl;
public TextGraphic qq_NumericLbl;
public TextGraphic qq_TemplateDateLbl;
public TextGraphic qq_TemplateStringLbl;
public TextGraphic qq_UpperCaseLbl;
public TextGraphic qq_ViaCodeLbl;
/**
* qq_UpperCaseLbl: transformed from: qqds_TextGraphic
* TagId=31
* isInherited=FALSE
*/
public TextGraphic getqq_UpperCaseLbl() {
if (qq_UpperCaseLbl == null) {
qq_UpperCaseLbl = GraphicFactory.newTextGraphic("Upper Case:\n", "");
// OPTIONAL UIutils.reloadLabelText(qq_UpperCaseLbl, mcat);
WidthPolicy.set(qq_UpperCaseLbl, Constants.SP_NATURAL);
HeightPolicy.set(qq_UpperCaseLbl, Constants.SP_NATURAL);
qq_UpperCaseLbl.setMinimumSize(new Dimension(69, 16));
}
return qq_UpperCaseLbl;
}
public void setqq_UpperCaseLbl(TextGraphic value) {
TextGraphic oldValue = qq_UpperCaseLbl;
qq_UpperCaseLbl = value;
this.qq_Listeners.firePropertyChange("qq_UpperCaseLbl", oldValue, value);
}
/**
* qq_uppercase: transformed from: qqds_DataField
* TagId=14
* isInherited=FALSE
*/
public DataField getqq_uppercase() {
if (qq_uppercase == null) {
// Mask type: Constants.MK_UPPERCASE
qq_uppercase = DataFieldFactory.newDataField("uppercase", 36, TextData.class, Constants.MK_UPPERCASE);
qq_uppercase.setOriginalFormatText(null);
qq_uppercase.setHorizontalAlignment(JTextField.LEFT);
getBindingManager().bindComponent(qq_uppercase, "uppercase");
WidthPolicy.set(qq_uppercase, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_uppercase, Constants.SP_NATURAL);
qq_uppercase.setMinimumSize(new Dimension(243, 19));
qq_uppercase.setSize(new Dimension(243, 19));
}
return qq_uppercase;
}
public void setqq_uppercase(DataField value) {
DataField oldValue = qq_uppercase;
qq_uppercase = value;
this.qq_Listeners.firePropertyChange("qq_uppercase", oldValue, value);
}
/**
* qq_num: transformed from: qqds_DataField
* TagId=15
* isInherited=FALSE
*/
public DataField getqq_num() {
if (qq_num == null) {
// Mask type: Constants.MK_NUMERIC
qq_num = DataFieldFactory.newDataField("num", 37, TextData.class, Constants.MK_NUMERIC);
qq_num.setOriginalFormatText(null);
qq_num.setHorizontalAlignment(JTextField.LEFT);
getBindingManager().bindComponent(qq_num, "num");
WidthPolicy.set(qq_num, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_num, Constants.SP_NATURAL);
qq_num.setMinimumSize(new Dimension(248, 19));
qq_num.setSize(new Dimension(248, 19));
}
return qq_num;
}
public void setqq_num(DataField value) {
DataField oldValue = qq_num;
qq_num = value;
this.qq_Listeners.firePropertyChange("qq_num", oldValue, value);
}
/**
* qq_NumericLbl: transformed from: qqds_TextGraphic
* TagId=32
* isInherited=FALSE
*/
public TextGraphic getqq_NumericLbl() {
if (qq_NumericLbl == null) {
qq_NumericLbl = GraphicFactory.newTextGraphic("Numeric:\n", "");
// OPTIONAL UIutils.reloadLabelText(qq_NumericLbl, mcat);
WidthPolicy.set(qq_NumericLbl, Constants.SP_NATURAL);
HeightPolicy.set(qq_NumericLbl, Constants.SP_NATURAL);
qq_NumericLbl.setMinimumSize(new Dimension(51, 16));
}
return qq_NumericLbl;
}
public void setqq_NumericLbl(TextGraphic value) {
TextGraphic oldValue = qq_NumericLbl;
qq_NumericLbl = value;
this.qq_Listeners.firePropertyChange("qq_NumericLbl", oldValue, value);
}
/**
* qq_IntegerLbl: transformed from: qqds_TextGraphic
* TagId=33
* isInherited=FALSE
*/
public TextGraphic getqq_IntegerLbl() {
if (qq_IntegerLbl == null) {
qq_IntegerLbl = GraphicFactory.newTextGraphic("Integer:\n", "");
// OPTIONAL UIutils.reloadLabelText(qq_IntegerLbl, mcat);
WidthPolicy.set(qq_IntegerLbl, Constants.SP_NATURAL);
HeightPolicy.set(qq_IntegerLbl, Constants.SP_NATURAL);
qq_IntegerLbl.setMinimumSize(new Dimension(44, 16));
}
return qq_IntegerLbl;
}
public void setqq_IntegerLbl(TextGraphic value) {
TextGraphic oldValue = qq_IntegerLbl;
qq_IntegerLbl = value;
this.qq_Listeners.firePropertyChange("qq_IntegerLbl", oldValue, value);
}
/**
* qq_qq_int: transformed from: qqds_DataField
* TagId=18
* isInherited=FALSE
*/
public DataField getqq_qq_int() {
if (qq_qq_int == null) {
// Mask type: Constants.MK_INTEGER
qq_qq_int = DataFieldFactory.newDataField("int", 40, TextData.class, Constants.MK_INTEGER);
qq_qq_int.setOriginalFormatText(null);
qq_qq_int.setHorizontalAlignment(JTextField.LEFT);
getBindingManager().bindComponent(qq_qq_int, "int");
WidthPolicy.set(qq_qq_int, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_qq_int, Constants.SP_NATURAL);
qq_qq_int.setMinimumSize(new Dimension(271, 19));
qq_qq_int.setSize(new Dimension(271, 19));
}
return qq_qq_int;
}
public void setqq_qq_int(DataField value) {
DataField oldValue = qq_qq_int;
qq_qq_int = value;
this.qq_Listeners.firePropertyChange("qq_qq_int", oldValue, value);
}
/**
* qq_TemplateDateLbl: transformed from: qqds_TextGraphic
* TagId=34
* isInherited=FALSE
*/
public TextGraphic getqq_TemplateDateLbl() {
if (qq_TemplateDateLbl == null) {
qq_TemplateDateLbl = GraphicFactory.newTextGraphic("Template date:\n", "");
qq_TemplateDateLbl.setHorizontalAlignment( SwingConstants.LEFT );
// OPTIONAL UIutils.reloadLabelText(qq_TemplateDateLbl, mcat);
WidthPolicy.set(qq_TemplateDateLbl, Constants.SP_NATURAL);
HeightPolicy.set(qq_TemplateDateLbl, Constants.SP_NATURAL);
qq_TemplateDateLbl.setMinimumSize(new Dimension(82, 16));
}
return qq_TemplateDateLbl;
}
public void setqq_TemplateDateLbl(TextGraphic value) {
TextGraphic oldValue = qq_TemplateDateLbl;
qq_TemplateDateLbl = value;
this.qq_Listeners.firePropertyChange("qq_TemplateDateLbl", oldValue, value);
}
/**
* qq_templatedate: transformed from: qqds_DataField
* TagId=20
* isInherited=FALSE
*/
public DataField getqq_templatedate() {
if (qq_templatedate == null) {
// Mask type: MK_TEMPLATE
// original Forte format string -->dd/mm/yyyy<--
qq_templatedate = DataFieldFactory.newDataField("templatedate", 36, DateTimeNullable.class);
DateTemplate.set(qq_templatedate, "dd/mm/yyyy", DateTimeNullable.class);
qq_templatedate.setOriginalFormatText("dd/mm/yyyy");
qq_templatedate.setHorizontalAlignment(JTextField.LEFT);
getBindingManager().bindComponent(qq_templatedate, "templatedate");
WidthPolicy.set(qq_templatedate, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_templatedate, Constants.SP_NATURAL);
qq_templatedate.setMinimumSize(new Dimension(245, 19));
qq_templatedate.setSize(new Dimension(245, 19));
}
return qq_templatedate;
}
public void setqq_templatedate(DataField value) {
DataField oldValue = qq_templatedate;
qq_templatedate = value;
this.qq_Listeners.firePropertyChange("qq_templatedate", oldValue, value);
}
/**
* qq_TemplateStringLbl: transformed from: qqds_TextGraphic
* TagId=35
* isInherited=FALSE
*/
public TextGraphic getqq_TemplateStringLbl() {
if (qq_TemplateStringLbl == null) {
qq_TemplateStringLbl = GraphicFactory.newTextGraphic("Template string:\n", "");
// OPTIONAL UIutils.reloadLabelText(qq_TemplateStringLbl, mcat);
WidthPolicy.set(qq_TemplateStringLbl, Constants.SP_NATURAL);
HeightPolicy.set(qq_TemplateStringLbl, Constants.SP_NATURAL);
qq_TemplateStringLbl.setMinimumSize(new Dimension(88, 16));
}
return qq_TemplateStringLbl;
}
public void setqq_TemplateStringLbl(TextGraphic value) {
TextGraphic oldValue = qq_TemplateStringLbl;
qq_TemplateStringLbl = value;
this.qq_Listeners.firePropertyChange("qq_TemplateStringLbl", oldValue, value);
}
/**
* qq_templateString: transformed from: qqds_DataField
* TagId=22
* isInherited=FALSE
*/
public DataField getqq_templateString() {
if (qq_templateString == null) {
// Mask type: MK_TEMPLATE
try {
MaskFormatter mf = new MaskFormatter("###-##-####");
mf.setPlaceholderCharacter('_');
mf.setValueContainsLiteralCharacters(false);
qq_templateString = DataFieldFactory.newDataField("templateString", 31, mf);
} catch (ParseException e) {
qq_templateString = DataFieldFactory.newDataField("templateString", 31, TextData.class);
Logger.getLogger("task.part.logmgr").error("Invalid mask specified for field: qq_templateString, a default field will be generated", e);
}
qq_templateString.setOriginalFormatText("###-##-####");
qq_templateString.setHorizontalAlignment(JTextField.LEFT);
getBindingManager().bindComponent(qq_templateString, "templateString");
WidthPolicy.set(qq_templateString, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_templateString, Constants.SP_NATURAL);
qq_templateString.setMinimumSize(new Dimension(211, 19));
qq_templateString.setSize(new Dimension(211, 19));
}
return qq_templateString;
}
public void setqq_templateString(DataField value) {
DataField oldValue = qq_templateString;
qq_templateString = value;
this.qq_Listeners.firePropertyChange("qq_templateString", oldValue, value);
}
/**
* qq_ViaCodeLbl: transformed from: qqds_TextGraphic
* TagId=36
* isInherited=FALSE
*/
public TextGraphic getqq_ViaCodeLbl() {
if (qq_ViaCodeLbl == null) {
qq_ViaCodeLbl = GraphicFactory.newTextGraphic("Via Code:\n", "");
// OPTIONAL UIutils.reloadLabelText(qq_ViaCodeLbl, mcat);
WidthPolicy.set(qq_ViaCodeLbl, Constants.SP_NATURAL);
HeightPolicy.set(qq_ViaCodeLbl, Constants.SP_NATURAL);
qq_ViaCodeLbl.setMinimumSize(new Dimension(55, 16));
}
return qq_ViaCodeLbl;
}
public void setqq_ViaCodeLbl(TextGraphic value) {
TextGraphic oldValue = qq_ViaCodeLbl;
qq_ViaCodeLbl = value;
this.qq_Listeners.firePropertyChange("qq_ViaCodeLbl", oldValue, value);
}
/**
* qq_viacode: transformed from: qqds_DataField
* TagId=24
* isInherited=FALSE
*/
public DataField getqq_viacode() {
if (qq_viacode == null) {
// Mask type: MK_TEMPLATE
try {
MaskFormatter mf = new MaskFormatter("###-##-####");
mf.setPlaceholderCharacter('_');
mf.setValueContainsLiteralCharacters(false);
qq_viacode = DataFieldFactory.newDataField("viacode", 23, mf);
} catch (ParseException e) {
qq_viacode = DataFieldFactory.newDataField("viacode", 23, TextData.class);
Logger.getLogger("task.part.logmgr").error("Invalid mask specified for field: qq_viacode, a default field will be generated", e);
}
qq_viacode.setOriginalFormatText("###-##-####");
qq_viacode.setHorizontalAlignment(JTextField.LEFT);
getBindingManager().bindComponent(qq_viacode, "viacode");
WidthPolicy.set(qq_viacode, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_viacode, Constants.SP_NATURAL);
qq_viacode.setMinimumSize(new Dimension(160, 19));
qq_viacode.setSize(new Dimension(160, 19));
}
return qq_viacode;
}
public void setqq_viacode(DataField value) {
DataField oldValue = qq_viacode;
qq_viacode = value;
this.qq_Listeners.firePropertyChange("qq_viacode", oldValue, value);
}
/**
* qq_00MaskLbl: transformed from: qqds_TextGraphic
* TagId=37
* isInherited=FALSE
*/
public TextGraphic getqq_00MaskLbl() {
if (qq_00MaskLbl == null) {
qq_00MaskLbl = GraphicFactory.newTextGraphic("#,##0.0 Mask\n", "");
// OPTIONAL UIutils.reloadLabelText(qq_00MaskLbl, mcat);
WidthPolicy.set(qq_00MaskLbl, Constants.SP_NATURAL);
HeightPolicy.set(qq_00MaskLbl, Constants.SP_NATURAL);
qq_00MaskLbl.setMinimumSize(new Dimension(74, 16));
}
return qq_00MaskLbl;
}
public void setqq_00MaskLbl(TextGraphic value) {
TextGraphic oldValue = qq_00MaskLbl;
qq_00MaskLbl = value;
this.qq_Listeners.firePropertyChange("qq_00MaskLbl", oldValue, value);
}
/**
* qq_TestMask1: transformed from: qqds_DataField
* TagId=26
* isInherited=FALSE
*/
public DataField getqq_TestMask1() {
if (qq_TestMask1 == null) {
// Mask type: MK_TEMPLATE
// original Forte format string -->#,##0.0<--
this.qq_TestMask1 = DataFieldFactory.newDataField("TestMask1", 28, "#,##0.0", Float.TYPE);
qq_TestMask1.setOriginalFormatText("#,##0.0");
qq_TestMask1.setHorizontalAlignment(JTextField.RIGHT);
getBindingManager().bindComponent(qq_TestMask1, "testMask1");
WidthPolicy.set(qq_TestMask1, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_TestMask1, Constants.SP_NATURAL);
qq_TestMask1.setMinimumSize(new Dimension(193, 19));
qq_TestMask1.setSize(new Dimension(193, 19));
}
return qq_TestMask1;
}
public void setqq_TestMask1(DataField value) {
DataField oldValue = qq_TestMask1;
qq_TestMask1 = value;
this.qq_Listeners.firePropertyChange("qq_TestMask1", oldValue, value);
}
/**
* qq_000MaskLbl: transformed from: qqds_TextGraphic
* TagId=38
* isInherited=FALSE
*/
public TextGraphic getqq_000MaskLbl() {
if (qq_000MaskLbl == null) {
qq_000MaskLbl = GraphicFactory.newTextGraphic("#,##0.00 Mask\n", "");
qq_000MaskLbl.setHorizontalAlignment( SwingConstants.LEFT );
// OPTIONAL UIutils.reloadLabelText(qq_000MaskLbl, mcat);
WidthPolicy.set(qq_000MaskLbl, Constants.SP_NATURAL);
HeightPolicy.set(qq_000MaskLbl, Constants.SP_NATURAL);
qq_000MaskLbl.setMinimumSize(new Dimension(80, 16));
}
return qq_000MaskLbl;
}
public void setqq_000MaskLbl(TextGraphic value) {
TextGraphic oldValue = qq_000MaskLbl;
qq_000MaskLbl = value;
this.qq_Listeners.firePropertyChange("qq_000MaskLbl", oldValue, value);
}
/**
* qq_TestMask2: transformed from: qqds_DataField
* TagId=28
* isInherited=FALSE
*/
public DataField getqq_TestMask2() {
if (qq_TestMask2 == null) {
// Mask type: MK_TEMPLATE
// original Forte format string -->#,##0.00<--
this.qq_TestMask2 = DataFieldFactory.newDataField("TestMask2", 28, "#,##0.00", DecimalData.class);
qq_TestMask2.setOriginalFormatText("#,##0.00");
qq_TestMask2.setHorizontalAlignment(JTextField.RIGHT);
getBindingManager().bindComponent(qq_TestMask2, "testMask2");
WidthPolicy.set(qq_TestMask2, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_TestMask2, Constants.SP_NATURAL);
qq_TestMask2.setMinimumSize(new Dimension(193, 19));
qq_TestMask2.setSize(new Dimension(193, 19));
}
return qq_TestMask2;
}
public void setqq_TestMask2(DataField value) {
DataField oldValue = qq_TestMask2;
qq_TestMask2 = value;
this.qq_Listeners.firePropertyChange("qq_TestMask2", oldValue, value);
}
/**
* qq_GridField30: transformed from: qqds_GridField
* TagId=30
* isInherited=FALSE
* In forte this was a 2x8 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_GridField30Properties() {
qq_GridField30.setCollapsed(true);
qq_GridField30.setHeightPolicy(Constants.SP_NATURAL);
qq_GridField30.setWidthPolicy(Constants.SP_NATURAL);
qq_GridField30.setBackground(null);
}
public GridField getqq_GridField30() {
if (qq_GridField30 == null) {
qq_GridField30 = CompoundFieldFactory.newGridField("qq_GridField30", true);
setqq_GridField30Properties();
qq_GridField30.setMinimumSize(new Dimension(359, 160));
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_GridField30.add( getqq_00MaskLbl(), 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_GridField30.add( getqq_TestMask1(), 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_GridField30.add( getqq_000MaskLbl(), 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_GridField30.add( getqq_TestMask2(), 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(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_GridField30.add( getqq_UpperCaseLbl(), 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(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_GridField30.add( getqq_uppercase(), 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(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_GridField30.add( getqq_NumericLbl(), 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(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_GridField30.add( getqq_num(), 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(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_GridField30.add( getqq_IntegerLbl(), 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(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_GridField30.add( getqq_qq_int(), 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(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_GridField30.add( getqq_TemplateDateLbl(), 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(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_GridField30.add( getqq_templatedate(), 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(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_GridField30.add( getqq_TemplateStringLbl(), 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(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_GridField30.add( getqq_templateString(), 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(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_GridField30.add( getqq_ViaCodeLbl(), 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(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_GridField30.add( getqq_viacode(), qq_gbc15 );
}
return qq_GridField30;
}
public void setqq_GridField30(GridField value) {
GridField oldValue = qq_GridField30;
qq_GridField30 = value;
this.qq_Listeners.firePropertyChange("qq_GridField30", oldValue, value);
}
/**
* qq_arrayMaskTester_sp: transformed from: qqds_ArrayField
* TagId=39
* isInherited=FALSE
*/
public JScrollPane getqq_arrayMaskTester_sp() {
if (qq_arrayMaskTester_sp == null) {
qq_arrayMaskTester_sp = CompoundFieldFactory.newScrollPane();
qq_arrayMaskTester_sp.setName("arrayMaskTester");
qq_arrayMaskTester_sp.setViewportView(getqq_arrayMaskTester());
qq_arrayMaskTester_sp.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
qq_arrayMaskTester_sp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
qq_arrayMaskTester_sp.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));
qq_arrayMaskTester_sp.setBackground(null);
qq_arrayMaskTester_sp.getViewport().setBackground(null);
FrameColor.set(qq_arrayMaskTester_sp, Constants.C_INHERIT);
WidthPolicy.set(qq_arrayMaskTester_sp, Constants.SP_NATURAL);
HeightPolicy.set(qq_arrayMaskTester_sp, Constants.SP_NATURAL);
// OPTIONAL qq_arrayMaskTester_sp.setSize(new Dimension(227, 84));
qq_arrayMaskTester_sp.setMinimumSize(new Dimension(227, 84));
qq_arrayMaskTester_sp.setPreferredSize(new Dimension(227, 84));
}
return qq_arrayMaskTester_sp;
}
public void setqq_arrayMaskTester_sp(JScrollPane value) {
JScrollPane oldValue = qq_arrayMaskTester_sp;
qq_arrayMaskTester_sp = value;
this.qq_Listeners.firePropertyChange("qq_arrayMaskTester_sp", oldValue, value);
}
/**
* qq_arrayMaskTester: transformed from: qqds_ArrayField
* TagId=39
* isInherited=FALSE
*/
public ArrayField getqq_arrayMaskTester() {
if (qq_arrayMaskTester == null) {
qq_arrayMaskTester = TableFactory.newArrayField("arrayMaskTester", 19);
this.getBindingManager().bindComponent(qq_arrayMaskTester, "arrayMaskTester", ContainerClass.class,
new String[] {"testMask1", "testMask2"});
qq_arrayMaskTester.setVisibleRows(3);
((ArrayFieldModel)qq_arrayMaskTester.getModel()).setAllowsAppend(true);
// === Column model setup ===
// <TestMask1> converted from qqds_DataField
ArrayColumn qq_arrayMaskTesterArray_TestMask1_Column = new ArrayColumn("TestMask1", 0, 98, new FormattedCellRenderer(getqq_arrayMaskTesterArray_TestMask1()), new FormattedCellEditor(getqq_arrayMaskTesterArray_TestMask1()), true);
qq_arrayMaskTesterArray_TestMask1_Column.setHeaderValue("TestMask1");
qq_arrayMaskTesterArray_TestMask1_Column.setVisible(true);
qq_arrayMaskTester.addColumn(qq_arrayMaskTesterArray_TestMask1_Column);
// <TestMask2> converted from qqds_DataField
ArrayColumn qq_arrayMaskTesterArray_TestMask2_Column = new ArrayColumn("TestMask2", 1, 111, new FormattedCellRenderer(getqq_arrayMaskTesterArray_TestMask2()), new FormattedCellEditor(getqq_arrayMaskTesterArray_TestMask2()), true);
qq_arrayMaskTesterArray_TestMask2_Column.setHeaderValue("TestMask2");
qq_arrayMaskTesterArray_TestMask2_Column.setVisible(true);
qq_arrayMaskTester.addColumn(qq_arrayMaskTesterArray_TestMask2_Column);
// === End column model ===
TableFactory.postModelArrayField(qq_arrayMaskTester);
}
return qq_arrayMaskTester;
}
public void setqq_arrayMaskTester(ArrayField value) {
ArrayField oldValue = qq_arrayMaskTester;
qq_arrayMaskTester = value;
this.qq_Listeners.firePropertyChange("qq_arrayMaskTester", oldValue, value);
}
/**
* qq_GridField29: transformed from: qqds_GridField
* TagId=29
* isInherited=FALSE
* In forte this was a 1x2 grid field.
* The cell margins are all 100 mils
* The width policy is set to Natural, and the height policy is set to Natural.
*/
protected void setqq_GridField29Properties() {
qq_GridField29.setCellTopMargin(50);
qq_GridField29.setCellBottomMargin(50);
qq_GridField29.setCellLeftMargin(50);
qq_GridField29.setCellRightMargin(50);
qq_GridField29.setCollapsed(true);
qq_GridField29.setHeightPolicy(Constants.SP_NATURAL);
qq_GridField29.setWidthPolicy(Constants.SP_NATURAL);
qq_GridField29.setBackground(null);
}
public GridField getqq_GridField29() {
if (qq_GridField29 == null) {
qq_GridField29 = CompoundFieldFactory.newGridField("qq_GridField29", true);
setqq_GridField29Properties();
qq_GridField29.setMinimumSize(new Dimension(378, 273));
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(4, 4, 4, 4); // Top, Left, Bottom, Right Margin
qq_GridField29.add( getqq_GridField30(), qq_gbc );
GridBagConstraints qq_gbc1 = new GridBagConstraints();
qq_gbc1.gridx = 0; // Column 1
qq_gbc1.gridy = 1; // Row 2
qq_gbc1.weightx = 0;
qq_gbc1.weighty = 0;
qq_gbc1.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc1.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc1.insets = new Insets(4, 4, 4, 4); // Top, Left, Bottom, Right Margin
qq_GridField29.add( getqq_arrayMaskTester_sp(), qq_gbc1 );
}
return qq_GridField29;
}
public void setqq_GridField29(GridField value) {
GridField oldValue = qq_GridField29;
qq_GridField29 = value;
this.qq_Listeners.firePropertyChange("qq_GridField29", 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_GridField29() );
}
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_arrayMaskTesterArray_TestMask1: transformed from: qqds_DataField
* TagId=40
* isInherited=FALSE
*/
public DataField getqq_arrayMaskTesterArray_TestMask1() {
if (qq_arrayMaskTesterArray_TestMask1 == null) {
// Mask type: MK_TEMPLATE
// original Forte format string -->#,##0.0<--
this.qq_arrayMaskTesterArray_TestMask1 = DataFieldFactory.newDataField("TestMask1", 13, "#,##0.0", Float.TYPE);
qq_arrayMaskTesterArray_TestMask1.setOriginalFormatText("#,##0.0");
qq_arrayMaskTesterArray_TestMask1.setHorizontalAlignment(JTextField.RIGHT);
WidthPolicy.set(qq_arrayMaskTesterArray_TestMask1, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_arrayMaskTesterArray_TestMask1, Constants.SP_NATURAL);
qq_arrayMaskTesterArray_TestMask1.setMinimumSize(new Dimension(98, 19));
qq_arrayMaskTesterArray_TestMask1.setSize(new Dimension(98, 19));
qq_arrayMaskTesterArray_TestMask1.setLocation(180, 264);
ArrayFieldCellHelper.setUpCellEditor(qq_arrayMaskTesterArray_TestMask1, qq_arrayMaskTester, 0, false);
}
return qq_arrayMaskTesterArray_TestMask1;
}
public void setqq_arrayMaskTesterArray_TestMask1(DataField value) {
DataField oldValue = qq_arrayMaskTesterArray_TestMask1;
qq_arrayMaskTesterArray_TestMask1 = value;
this.qq_Listeners.firePropertyChange("qq_arrayMaskTesterArray_TestMask1", oldValue, value);
}
/**
* qq_arrayMaskTesterArray_TestMask2: transformed from: qqds_DataField
* TagId=42
* isInherited=FALSE
*/
public DataField getqq_arrayMaskTesterArray_TestMask2() {
if (qq_arrayMaskTesterArray_TestMask2 == null) {
// Mask type: MK_TEMPLATE
// original Forte format string -->#,##0.00<--
this.qq_arrayMaskTesterArray_TestMask2 = DataFieldFactory.newDataField("TestMask2", 15, "#,##0.00", DecimalData.class);
qq_arrayMaskTesterArray_TestMask2.setOriginalFormatText("#,##0.00");
qq_arrayMaskTesterArray_TestMask2.setHorizontalAlignment(JTextField.RIGHT);
WidthPolicy.set(qq_arrayMaskTesterArray_TestMask2, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_arrayMaskTesterArray_TestMask2, Constants.SP_NATURAL);
qq_arrayMaskTesterArray_TestMask2.setMinimumSize(new Dimension(111, 19));
qq_arrayMaskTesterArray_TestMask2.setSize(new Dimension(111, 19));
qq_arrayMaskTesterArray_TestMask2.setLocation(300, 254);
ArrayFieldCellHelper.setUpCellEditor(qq_arrayMaskTesterArray_TestMask2, qq_arrayMaskTester, 1, false);
}
return qq_arrayMaskTesterArray_TestMask2;
}
public void setqq_arrayMaskTesterArray_TestMask2(DataField value) {
DataField oldValue = qq_arrayMaskTesterArray_TestMask2;
qq_arrayMaskTesterArray_TestMask2 = value;
this.qq_Listeners.firePropertyChange("qq_arrayMaskTesterArray_TestMask2", oldValue, value);
}
/**
* Initialise the window and all its children.
*/
protected void initialize() {
if (this.Form == null) {
this.setName( "TestWindow" );
this.setTitle( "" );
this.setSystemClosePolicy(Constants.SC_ENABLEDFINALIZE);
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_GridField29(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_GridField30(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_UpperCaseLbl(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_uppercase(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_num(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_NumericLbl(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_IntegerLbl(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_qq_int(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_TemplateDateLbl(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_templatedate(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_TemplateStringLbl(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_templateString(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_ViaCodeLbl(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_viacode(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_00MaskLbl(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_TestMask1(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_000MaskLbl(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_TestMask2(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_arrayMaskTester(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_arrayMaskTesterArray_TestMask1(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_arrayMaskTesterArray_TestMask2(), 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();
TestWindow testWindow_start = new TestWindow();
testWindow_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 TestWindow
// c Pass 2 Conversion Time: 406 milliseconds