package WindowTester;
import DataFieldTest.Textfields;
import DisplayProject.CloseHideAdaptor;
import DisplayProject.Constants;
import DisplayProject.CursorMgr;
import DisplayProject.GridField;
import DisplayProject.UDSWindow;
import DisplayProject.UIutils;
import DisplayProject.WindowManager;
import DisplayProject.WindowUsageMap;
import DisplayProject.actions.HeightPolicy;
import DisplayProject.actions.UserWindow;
import DisplayProject.actions.WidthPolicy;
import DisplayProject.binding.BindingManager;
import DisplayProject.binding.beans.ExtendedPropertyChangeSupport;
import DisplayProject.binding.beans.Observable;
import DisplayProject.controls.Line;
import DisplayProject.events.ClientEventManager;
import DisplayProject.factory.CompoundFieldFactory;
import DisplayProject.factory.PushButtonFactory;
import DisplayProject.plaf.Win32LookAndFeel;
import Framework.ErrorMgr;
import Framework.EventHandle;
import Framework.EventManager;
import Framework.EventRegistration;
import Framework.File;
import Framework.ForteKeyboardFocusManager;
import Framework.RuntimeProperties;
import Framework.UsageException;
import WindowTester.ControlsTest;
import WindowTester.DomainTester;
import WindowTester.FieldTester;
import WindowTester.FormattingTests;
import WindowTester.GridFieldTester;
import WindowTester.ListViewTest;
import WindowTester.MappedDateTimeNullable;
import WindowTester.MappedObjectsTester;
import WindowTester.QuestionTester;
import WindowTester.ScratchPad;
import WindowTester.ShapesTest;
import WindowTester.TreeViewTester;
import WindowTester.ValidatingWindow;
import WindowTester.VisibilityTester;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import java.awt.KeyboardFocusManager;
import java.awt.Toolkit;
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.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.ToolTipManager;
import javax.swing.UIManager;
import org.apache.log4j.Logger;
/**
* Runner<p>
* <p>
* @author Generated from Forte
* @since 19-Nov-2008
*/
@RuntimeProperties(isDistributed=false, isAnchored=false, isShared=false, isTransactional=false)
@UDSWindow()
@SuppressWarnings("serial")
public class Runner
extends JFrame
implements Serializable, Observable
{
// ----------
// Attributes
// ----------
protected File DefaultHelpFile;
protected BindingManager bindingManager = null;
public PropertyChangeSupport qq_Listeners = new ExtendedPropertyChangeSupport(this, true);
// ------------
// Constructors
// ------------
public Runner() {
// Explicitly call the superclass constructor to prevent the implicit call
super();
this.initialize();
}
// ----------------------
// Accessors and Mutators
// ----------------------
public File getDefaultHelpFile() {
return DefaultHelpFile;
}
public void setDefaultHelpFile(File defaultHelpFile) {
DefaultHelpFile = defaultHelpFile;
UserWindow.createHelp(this, defaultHelpFile);
}
public void setHelpURL(String urlString) {
try {
URL url = new URL(urlString);
UserWindow.createHelp(this, url);
} catch (MalformedURLException e) {
UsageException err = new UsageException("Cannot create help URL", e);
ErrorMgr.addError(err);
throw err;
}
}
protected BindingManager getBindingManager() {
if (this.bindingManager == null) {
this.bindingManager = new BindingManager(this);
}
return bindingManager;
}
// -------
// 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() {
Logger.getLogger("task.part.logmgr").info( Integer.toString(UIutils.pixelsToMils(Toolkit.getDefaultToolkit().getScreenSize().height)));
Logger.getLogger("task.part.logmgr").info( Integer.toString(Toolkit.getDefaultToolkit().getScreenSize().height));
Logger.getLogger("task.part.logmgr").info( Integer.toString(Toolkit.getDefaultToolkit().getScreenResolution()));
UserWindow.open(this);
// ----------
// Event Loop
// ----------
EventManager.startEventLoop();
try {
EventRegistration PushButton_Click_getqq_FieldTesterBtn = ClientEventManager.register( this.getqq_FieldTesterBtn(), "Click" );
EventRegistration PushButton_Click_getqq_GridFieldTesterBtn = ClientEventManager.register( this.getqq_GridFieldTesterBtn(), "Click" );
EventRegistration PushButton_Click_getqq_ListViewTestBtn = ClientEventManager.register( this.getqq_ListViewTestBtn(), "Click" );
EventRegistration PushButton_Click_getqq_MappedDateTimeNullableBtn = ClientEventManager.register( this.getqq_MappedDateTimeNullableBtn(), "Click" );
EventRegistration PushButton_Click_getqq_MappedObjectsTesterBtn = ClientEventManager.register( this.getqq_MappedObjectsTesterBtn(), "Click" );
EventRegistration PushButton_Click_getqq_QuestionTesterBtn = ClientEventManager.register( this.getqq_QuestionTesterBtn(), "Click" );
EventRegistration PushButton_Click_getqq_VisibilityTesterBtn = ClientEventManager.register( this.getqq_VisibilityTesterBtn(), "Click" );
EventRegistration PushButton_Click_getqq_FormattingTestsBtn = ClientEventManager.register( this.getqq_FormattingTestsBtn(), "Click" );
EventRegistration PushButton_Click_getqq_TreeViewTesterBtn = ClientEventManager.register( this.getqq_TreeViewTesterBtn(), "Click" );
EventRegistration PushButton_Click_getqq_ValidatingTesterBtn = ClientEventManager.register( this.getqq_ValidatingTesterBtn(), "Click" );
EventRegistration PushButton_Click_getqq_ShapesTesterBtn = ClientEventManager.register( this.getqq_ShapesTesterBtn(), "Click" );
EventRegistration PushButton_Click_getqq_ControlsTesterBtn = ClientEventManager.register( this.getqq_ControlsTesterBtn(), "Click" );
EventRegistration PushButton_Click_getqq_DomainTesterBtn = ClientEventManager.register( this.getqq_DomainTesterBtn(), "Click" );
EventRegistration PushButton_Click_getqq_ScratchPadBtn = ClientEventManager.register( this.getqq_ScratchPadBtn(), "Click" );
EventRegistration PushButton_Click_getqq_DataFieldTestsBtn = ClientEventManager.register( this.getqq_DataFieldTestsBtn(), "Click" );
EventRegistration TaskHandle_Shutdown_langThreadcurrentThread = ClientEventManager.register( Thread.currentThread(), "Shutdown" );
while (true) {
UIutils.processGUIActions();
EventHandle qq_currentEvent = EventManager.waitForEvent();
if (qq_currentEvent == null)
break;
// ---------------------------
// self.<FieldTesterBtn>.Click
// ---------------------------
if (qq_currentEvent.isEvent(PushButton_Click_getqq_FieldTesterBtn)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
new FieldTester().display();
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// -------------------------------
// self.<GridFieldTesterBtn>.Click
// -------------------------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_GridFieldTesterBtn)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
new GridFieldTester().display();
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ----------------------------
// self.<ListViewTestBtn>.Click
// ----------------------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_ListViewTestBtn)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
new ListViewTest().display();
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// --------------------------------------
// self.<MappedDateTimeNullableBtn>.Click
// --------------------------------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_MappedDateTimeNullableBtn)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
new MappedDateTimeNullable().display();
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// -----------------------------------
// self.<MappedObjectsTesterBtn>.Click
// -----------------------------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_MappedObjectsTesterBtn)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
new MappedObjectsTester().display();
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ------------------------------
// self.<QuestionTesterBtn>.Click
// ------------------------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_QuestionTesterBtn)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
new QuestionTester().display();
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// --------------------------------
// self.<VisibilityTesterBtn>.Click
// --------------------------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_VisibilityTesterBtn)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
new VisibilityTester().display();
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// -------------------------------
// self.<FormattingTestsBtn>.Click
// -------------------------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_FormattingTestsBtn)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
new FormattingTests().display();
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ------------------------------
// self.<TreeViewTesterBtn>.Click
// ------------------------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_TreeViewTesterBtn)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
new TreeViewTester().display();
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// --------------------------------
// self.<ValidatingTesterBtn>.Click
// --------------------------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_ValidatingTesterBtn)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
new ValidatingWindow().display();
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ----------------------------
// self.<ShapesTesterBtn>.Click
// ----------------------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_ShapesTesterBtn)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
new ShapesTest().display();
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ------------------------------
// self.<ControlsTesterBtn>.Click
// ------------------------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_ControlsTesterBtn)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
new ControlsTest().display();
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ----------------------------
// self.<DomainTesterBtn>.Click
// ----------------------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_DomainTesterBtn)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
new DomainTester().display();
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// --------------------------
// self.<ScratchPadBtn>.Click
// --------------------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_ScratchPadBtn)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
new ScratchPad().display();
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ------------------------------
// self.<DataFieldTestsBtn>.Click
// ------------------------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_DataFieldTestsBtn)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
new Textfields().display();
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// -------------
// task.Shutdown
// -------------
else 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( PushButton_Click_getqq_FieldTesterBtn );
EventManager.deregister( PushButton_Click_getqq_GridFieldTesterBtn );
EventManager.deregister( PushButton_Click_getqq_ListViewTestBtn );
EventManager.deregister( PushButton_Click_getqq_MappedDateTimeNullableBtn );
EventManager.deregister( PushButton_Click_getqq_MappedObjectsTesterBtn );
EventManager.deregister( PushButton_Click_getqq_QuestionTesterBtn );
EventManager.deregister( PushButton_Click_getqq_VisibilityTesterBtn );
EventManager.deregister( PushButton_Click_getqq_FormattingTestsBtn );
EventManager.deregister( PushButton_Click_getqq_TreeViewTesterBtn );
EventManager.deregister( PushButton_Click_getqq_ValidatingTesterBtn );
EventManager.deregister( PushButton_Click_getqq_ShapesTesterBtn );
EventManager.deregister( PushButton_Click_getqq_ControlsTesterBtn );
EventManager.deregister( PushButton_Click_getqq_DomainTesterBtn );
EventManager.deregister( PushButton_Click_getqq_ScratchPadBtn );
EventManager.deregister( PushButton_Click_getqq_DataFieldTestsBtn );
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 GridField qq_GridField13;
public JButton qq_ControlsTesterBtn;
public JButton qq_DataFieldTestsBtn;
public JButton qq_DomainTesterBtn;
public JButton qq_FieldTesterBtn;
public JButton qq_FormattingTestsBtn;
public JButton qq_GridFieldTesterBtn;
public JButton qq_ListViewTestBtn;
public JButton qq_MappedDateTimeNullableBtn;
public JButton qq_MappedObjectsTesterBtn;
public JButton qq_QuestionTesterBtn;
public JButton qq_ScratchPadBtn;
public JButton qq_ShapesTesterBtn;
public JButton qq_TreeViewTesterBtn;
public JButton qq_ValidatingTesterBtn;
public JButton qq_VisibilityTesterBtn;
public JPanel Form;
public Line qq_Line12;
/**
* qq_Line12: transformed from: qqds_Line
* TagId=12
* isInherited=FALSE
*/
public Line getqq_Line12() {
if (qq_Line12 == null) {
qq_Line12 = DisplayProject.factory.GraphicFactory.newLine(1733, 225, 1742, 225);
qq_Line12.setName("");
qq_Line12.setLineWeight(Constants.W_ONEPIXEL);
qq_Line12.setLineStyle(Constants.LS_SOLID);
qq_Line12.setOpaque( true );
}
return qq_Line12;
}
public void setqq_Line12(Line value) {
Line oldValue = qq_Line12;
qq_Line12 = value;
this.qq_Listeners.firePropertyChange("qq_Line12", oldValue, value);
}
/**
* qq_FieldTesterBtn: transformed from: qqds_PushButton
* TagId=14
* isInherited=FALSE
*/
public JButton getqq_FieldTesterBtn() {
if (qq_FieldTesterBtn == null) {
qq_FieldTesterBtn = PushButtonFactory.newInstance("FieldTesterBtn", "Field Tester");
qq_FieldTesterBtn.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_FieldTesterBtn, Constants.SP_NATURAL);
HeightPolicy.set(qq_FieldTesterBtn, Constants.SP_NATURAL);
qq_FieldTesterBtn.setMinimumSize(new Dimension(68, 23));
}
return qq_FieldTesterBtn;
}
public void setqq_FieldTesterBtn(JButton value) {
JButton oldValue = qq_FieldTesterBtn;
qq_FieldTesterBtn = value;
this.qq_Listeners.firePropertyChange("qq_FieldTesterBtn", oldValue, value);
}
/**
* qq_GridFieldTesterBtn: transformed from: qqds_PushButton
* TagId=15
* isInherited=FALSE
*/
public JButton getqq_GridFieldTesterBtn() {
if (qq_GridFieldTesterBtn == null) {
qq_GridFieldTesterBtn = PushButtonFactory.newInstance("GridFieldTesterBtn", "Grid Field Tester");
qq_GridFieldTesterBtn.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_GridFieldTesterBtn, Constants.SP_NATURAL);
HeightPolicy.set(qq_GridFieldTesterBtn, Constants.SP_NATURAL);
qq_GridFieldTesterBtn.setMinimumSize(new Dimension(91, 23));
}
return qq_GridFieldTesterBtn;
}
public void setqq_GridFieldTesterBtn(JButton value) {
JButton oldValue = qq_GridFieldTesterBtn;
qq_GridFieldTesterBtn = value;
this.qq_Listeners.firePropertyChange("qq_GridFieldTesterBtn", oldValue, value);
}
/**
* qq_ListViewTestBtn: transformed from: qqds_PushButton
* TagId=16
* isInherited=FALSE
*/
public JButton getqq_ListViewTestBtn() {
if (qq_ListViewTestBtn == null) {
qq_ListViewTestBtn = PushButtonFactory.newInstance("ListViewTestBtn", "List View Tester");
qq_ListViewTestBtn.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_ListViewTestBtn, Constants.SP_NATURAL);
HeightPolicy.set(qq_ListViewTestBtn, Constants.SP_NATURAL);
qq_ListViewTestBtn.setMinimumSize(new Dimension(88, 23));
}
return qq_ListViewTestBtn;
}
public void setqq_ListViewTestBtn(JButton value) {
JButton oldValue = qq_ListViewTestBtn;
qq_ListViewTestBtn = value;
this.qq_Listeners.firePropertyChange("qq_ListViewTestBtn", oldValue, value);
}
/**
* qq_MappedDateTimeNullableBtn: transformed from: qqds_PushButton
* TagId=17
* isInherited=FALSE
*/
public JButton getqq_MappedDateTimeNullableBtn() {
if (qq_MappedDateTimeNullableBtn == null) {
qq_MappedDateTimeNullableBtn = PushButtonFactory.newInstance("MappedDateTimeNullableBtn", "Mapped Date Time Nullable");
qq_MappedDateTimeNullableBtn.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_MappedDateTimeNullableBtn, Constants.SP_NATURAL);
HeightPolicy.set(qq_MappedDateTimeNullableBtn, Constants.SP_NATURAL);
qq_MappedDateTimeNullableBtn.setMinimumSize(new Dimension(144, 23));
}
return qq_MappedDateTimeNullableBtn;
}
public void setqq_MappedDateTimeNullableBtn(JButton value) {
JButton oldValue = qq_MappedDateTimeNullableBtn;
qq_MappedDateTimeNullableBtn = value;
this.qq_Listeners.firePropertyChange("qq_MappedDateTimeNullableBtn", oldValue, value);
}
/**
* qq_MappedObjectsTesterBtn: transformed from: qqds_PushButton
* TagId=18
* isInherited=FALSE
*/
public JButton getqq_MappedObjectsTesterBtn() {
if (qq_MappedObjectsTesterBtn == null) {
qq_MappedObjectsTesterBtn = PushButtonFactory.newInstance("MappedObjectsTesterBtn", "Mapped Objects Tester");
qq_MappedObjectsTesterBtn.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_MappedObjectsTesterBtn, Constants.SP_NATURAL);
HeightPolicy.set(qq_MappedObjectsTesterBtn, Constants.SP_NATURAL);
qq_MappedObjectsTesterBtn.setMinimumSize(new Dimension(127, 23));
}
return qq_MappedObjectsTesterBtn;
}
public void setqq_MappedObjectsTesterBtn(JButton value) {
JButton oldValue = qq_MappedObjectsTesterBtn;
qq_MappedObjectsTesterBtn = value;
this.qq_Listeners.firePropertyChange("qq_MappedObjectsTesterBtn", oldValue, value);
}
/**
* qq_QuestionTesterBtn: transformed from: qqds_PushButton
* TagId=19
* isInherited=FALSE
*/
public JButton getqq_QuestionTesterBtn() {
if (qq_QuestionTesterBtn == null) {
qq_QuestionTesterBtn = PushButtonFactory.newInstance("QuestionTesterBtn", "Question Tester");
qq_QuestionTesterBtn.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_QuestionTesterBtn, Constants.SP_NATURAL);
HeightPolicy.set(qq_QuestionTesterBtn, Constants.SP_NATURAL);
qq_QuestionTesterBtn.setMinimumSize(new Dimension(91, 23));
}
return qq_QuestionTesterBtn;
}
public void setqq_QuestionTesterBtn(JButton value) {
JButton oldValue = qq_QuestionTesterBtn;
qq_QuestionTesterBtn = value;
this.qq_Listeners.firePropertyChange("qq_QuestionTesterBtn", oldValue, value);
}
/**
* qq_VisibilityTesterBtn: transformed from: qqds_PushButton
* TagId=20
* isInherited=FALSE
*/
public JButton getqq_VisibilityTesterBtn() {
if (qq_VisibilityTesterBtn == null) {
qq_VisibilityTesterBtn = PushButtonFactory.newInstance("VisibilityTesterBtn", "Visibility Tester");
qq_VisibilityTesterBtn.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_VisibilityTesterBtn, Constants.SP_NATURAL);
HeightPolicy.set(qq_VisibilityTesterBtn, Constants.SP_NATURAL);
qq_VisibilityTesterBtn.setMinimumSize(new Dimension(84, 23));
}
return qq_VisibilityTesterBtn;
}
public void setqq_VisibilityTesterBtn(JButton value) {
JButton oldValue = qq_VisibilityTesterBtn;
qq_VisibilityTesterBtn = value;
this.qq_Listeners.firePropertyChange("qq_VisibilityTesterBtn", oldValue, value);
}
/**
* qq_FormattingTestsBtn: transformed from: qqds_PushButton
* TagId=21
* isInherited=FALSE
*/
public JButton getqq_FormattingTestsBtn() {
if (qq_FormattingTestsBtn == null) {
qq_FormattingTestsBtn = PushButtonFactory.newInstance("FormattingTestsBtn", "FormattingTests");
qq_FormattingTestsBtn.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_FormattingTestsBtn, Constants.SP_NATURAL);
HeightPolicy.set(qq_FormattingTestsBtn, Constants.SP_NATURAL);
qq_FormattingTestsBtn.setMinimumSize(new Dimension(93, 23));
}
return qq_FormattingTestsBtn;
}
public void setqq_FormattingTestsBtn(JButton value) {
JButton oldValue = qq_FormattingTestsBtn;
qq_FormattingTestsBtn = value;
this.qq_Listeners.firePropertyChange("qq_FormattingTestsBtn", oldValue, value);
}
/**
* qq_TreeViewTesterBtn: transformed from: qqds_PushButton
* TagId=22
* isInherited=FALSE
*/
public JButton getqq_TreeViewTesterBtn() {
if (qq_TreeViewTesterBtn == null) {
qq_TreeViewTesterBtn = PushButtonFactory.newInstance("TreeViewTesterBtn", "TreeView Tester");
qq_TreeViewTesterBtn.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_TreeViewTesterBtn, Constants.SP_NATURAL);
HeightPolicy.set(qq_TreeViewTesterBtn, Constants.SP_NATURAL);
qq_TreeViewTesterBtn.setMinimumSize(new Dimension(91, 23));
}
return qq_TreeViewTesterBtn;
}
public void setqq_TreeViewTesterBtn(JButton value) {
JButton oldValue = qq_TreeViewTesterBtn;
qq_TreeViewTesterBtn = value;
this.qq_Listeners.firePropertyChange("qq_TreeViewTesterBtn", oldValue, value);
}
/**
* qq_ValidatingTesterBtn: transformed from: qqds_PushButton
* TagId=23
* isInherited=FALSE
*/
public JButton getqq_ValidatingTesterBtn() {
if (qq_ValidatingTesterBtn == null) {
qq_ValidatingTesterBtn = PushButtonFactory.newInstance("ValidatingTesterBtn", "Validating Window");
qq_ValidatingTesterBtn.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_ValidatingTesterBtn, Constants.SP_NATURAL);
HeightPolicy.set(qq_ValidatingTesterBtn, Constants.SP_NATURAL);
qq_ValidatingTesterBtn.setMinimumSize(new Dimension(103, 23));
}
return qq_ValidatingTesterBtn;
}
public void setqq_ValidatingTesterBtn(JButton value) {
JButton oldValue = qq_ValidatingTesterBtn;
qq_ValidatingTesterBtn = value;
this.qq_Listeners.firePropertyChange("qq_ValidatingTesterBtn", oldValue, value);
}
/**
* qq_ShapesTesterBtn: transformed from: qqds_PushButton
* TagId=24
* isInherited=FALSE
*/
public JButton getqq_ShapesTesterBtn() {
if (qq_ShapesTesterBtn == null) {
qq_ShapesTesterBtn = PushButtonFactory.newInstance("ShapesTesterBtn", "Shape Tester");
qq_ShapesTesterBtn.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_ShapesTesterBtn, Constants.SP_NATURAL);
HeightPolicy.set(qq_ShapesTesterBtn, Constants.SP_NATURAL);
qq_ShapesTesterBtn.setMinimumSize(new Dimension(78, 23));
}
return qq_ShapesTesterBtn;
}
public void setqq_ShapesTesterBtn(JButton value) {
JButton oldValue = qq_ShapesTesterBtn;
qq_ShapesTesterBtn = value;
this.qq_Listeners.firePropertyChange("qq_ShapesTesterBtn", oldValue, value);
}
/**
* qq_ControlsTesterBtn: transformed from: qqds_PushButton
* TagId=25
* isInherited=FALSE
*/
public JButton getqq_ControlsTesterBtn() {
if (qq_ControlsTesterBtn == null) {
qq_ControlsTesterBtn = PushButtonFactory.newInstance("ControlsTesterBtn", "Controls Tester");
qq_ControlsTesterBtn.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_ControlsTesterBtn, Constants.SP_NATURAL);
HeightPolicy.set(qq_ControlsTesterBtn, Constants.SP_NATURAL);
qq_ControlsTesterBtn.setMinimumSize(new Dimension(88, 23));
}
return qq_ControlsTesterBtn;
}
public void setqq_ControlsTesterBtn(JButton value) {
JButton oldValue = qq_ControlsTesterBtn;
qq_ControlsTesterBtn = value;
this.qq_Listeners.firePropertyChange("qq_ControlsTesterBtn", oldValue, value);
}
/**
* qq_ScratchPadBtn: transformed from: qqds_PushButton
* TagId=26
* isInherited=FALSE
*/
public JButton getqq_ScratchPadBtn() {
if (qq_ScratchPadBtn == null) {
qq_ScratchPadBtn = PushButtonFactory.newInstance("ScratchPadBtn", "Scratchpad");
qq_ScratchPadBtn.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_ScratchPadBtn, Constants.SP_NATURAL);
HeightPolicy.set(qq_ScratchPadBtn, Constants.SP_NATURAL);
qq_ScratchPadBtn.setMinimumSize(new Dimension(70, 23));
}
return qq_ScratchPadBtn;
}
public void setqq_ScratchPadBtn(JButton value) {
JButton oldValue = qq_ScratchPadBtn;
qq_ScratchPadBtn = value;
this.qq_Listeners.firePropertyChange("qq_ScratchPadBtn", oldValue, value);
}
/**
* qq_DomainTesterBtn: transformed from: qqds_PushButton
* TagId=27
* isInherited=FALSE
*/
public JButton getqq_DomainTesterBtn() {
if (qq_DomainTesterBtn == null) {
qq_DomainTesterBtn = PushButtonFactory.newInstance("DomainTesterBtn", "Domain Tester");
qq_DomainTesterBtn.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_DomainTesterBtn, Constants.SP_NATURAL);
HeightPolicy.set(qq_DomainTesterBtn, Constants.SP_NATURAL);
qq_DomainTesterBtn.setMinimumSize(new Dimension(85, 23));
}
return qq_DomainTesterBtn;
}
public void setqq_DomainTesterBtn(JButton value) {
JButton oldValue = qq_DomainTesterBtn;
qq_DomainTesterBtn = value;
this.qq_Listeners.firePropertyChange("qq_DomainTesterBtn", oldValue, value);
}
/**
* qq_DataFieldTestsBtn: transformed from: qqds_PushButton
* TagId=28
* isInherited=FALSE
*/
public JButton getqq_DataFieldTestsBtn() {
if (qq_DataFieldTestsBtn == null) {
qq_DataFieldTestsBtn = PushButtonFactory.newInstance("DataFieldTestsBtn", "Data Field Tests");
qq_DataFieldTestsBtn.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_DataFieldTestsBtn, Constants.SP_NATURAL);
HeightPolicy.set(qq_DataFieldTestsBtn, Constants.SP_NATURAL);
qq_DataFieldTestsBtn.setMinimumSize(new Dimension(90, 23));
}
return qq_DataFieldTestsBtn;
}
public void setqq_DataFieldTestsBtn(JButton value) {
JButton oldValue = qq_DataFieldTestsBtn;
qq_DataFieldTestsBtn = value;
this.qq_Listeners.firePropertyChange("qq_DataFieldTestsBtn", oldValue, value);
}
/**
* qq_GridField13: transformed from: qqds_GridField
* TagId=13
* isInherited=FALSE
* In forte this was a 1x15 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_GridField13Properties() {
qq_GridField13.setCellTopMargin(50);
qq_GridField13.setCellBottomMargin(50);
qq_GridField13.setCellLeftMargin(50);
qq_GridField13.setCellRightMargin(50);
qq_GridField13.setCollapsed(true);
qq_GridField13.setHeightPolicy(Constants.SP_NATURAL);
qq_GridField13.setWidthPolicy(Constants.SP_NATURAL);
qq_GridField13.setBackground(null);
}
public GridField getqq_GridField13() {
if (qq_GridField13 == null) {
qq_GridField13 = CompoundFieldFactory.newGridField("qq_GridField13", true);
setqq_GridField13Properties();
qq_GridField13.setMinimumSize(new Dimension(163, 511));
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.WEST; // Gravity - original: CG_MIDDLELEFT
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_GridField13.add( getqq_FieldTesterBtn(), 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.WEST; // Gravity - original: CG_MIDDLELEFT
qq_gbc1.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc1.insets = new Insets(4, 14, 4, 4); // Top, Left, Bottom, Right Margin
qq_GridField13.add( getqq_GridFieldTesterBtn(), qq_gbc1 );
GridBagConstraints qq_gbc2 = new GridBagConstraints();
qq_gbc2.gridx = 0; // Column 1
qq_gbc2.gridy = 2; // Row 3
qq_gbc2.weightx = 0;
qq_gbc2.weighty = 0;
qq_gbc2.anchor = GridBagConstraints.WEST; // Gravity - original: CG_MIDDLELEFT
qq_gbc2.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc2.insets = new Insets(4, 4, 4, 4); // Top, Left, Bottom, Right Margin
qq_GridField13.add( getqq_TreeViewTesterBtn(), qq_gbc2 );
GridBagConstraints qq_gbc3 = new GridBagConstraints();
qq_gbc3.gridx = 0; // Column 1
qq_gbc3.gridy = 3; // Row 4
qq_gbc3.weightx = 0;
qq_gbc3.weighty = 0;
qq_gbc3.anchor = GridBagConstraints.WEST; // Gravity - original: CG_MIDDLELEFT
qq_gbc3.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc3.insets = new Insets(4, 4, 4, 4); // Top, Left, Bottom, Right Margin
qq_GridField13.add( getqq_ListViewTestBtn(), qq_gbc3 );
GridBagConstraints qq_gbc4 = new GridBagConstraints();
qq_gbc4.gridx = 0; // Column 1
qq_gbc4.gridy = 4; // Row 5
qq_gbc4.weightx = 0;
qq_gbc4.weighty = 0;
qq_gbc4.anchor = GridBagConstraints.WEST; // Gravity - original: CG_MIDDLELEFT
qq_gbc4.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc4.insets = new Insets(4, 4, 4, 4); // Top, Left, Bottom, Right Margin
qq_GridField13.add( getqq_MappedDateTimeNullableBtn(), qq_gbc4 );
GridBagConstraints qq_gbc5 = new GridBagConstraints();
qq_gbc5.gridx = 0; // Column 1
qq_gbc5.gridy = 5; // Row 6
qq_gbc5.weightx = 0;
qq_gbc5.weighty = 0;
qq_gbc5.anchor = GridBagConstraints.WEST; // Gravity - original: CG_MIDDLELEFT
qq_gbc5.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc5.insets = new Insets(4, 4, 14, 4); // Top, Left, Bottom, Right Margin
qq_GridField13.add( getqq_MappedObjectsTesterBtn(), qq_gbc5 );
GridBagConstraints qq_gbc6 = new GridBagConstraints();
qq_gbc6.gridx = 0; // Column 1
qq_gbc6.gridy = 6; // Row 7
qq_gbc6.weightx = 0;
qq_gbc6.weighty = 0;
qq_gbc6.anchor = GridBagConstraints.WEST; // Gravity - original: CG_MIDDLELEFT
qq_gbc6.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc6.insets = new Insets(4, 4, 4, 4); // Top, Left, Bottom, Right Margin
qq_GridField13.add( getqq_QuestionTesterBtn(), qq_gbc6 );
GridBagConstraints qq_gbc7 = new GridBagConstraints();
qq_gbc7.gridx = 0; // Column 1
qq_gbc7.gridy = 7; // Row 8
qq_gbc7.weightx = 0;
qq_gbc7.weighty = 0;
qq_gbc7.anchor = GridBagConstraints.WEST; // Gravity - original: CG_MIDDLELEFT
qq_gbc7.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc7.insets = new Insets(4, 4, 4, 4); // Top, Left, Bottom, Right Margin
qq_GridField13.add( getqq_VisibilityTesterBtn(), qq_gbc7 );
GridBagConstraints qq_gbc8 = new GridBagConstraints();
qq_gbc8.gridx = 0; // Column 1
qq_gbc8.gridy = 8; // Row 9
qq_gbc8.weightx = 0;
qq_gbc8.weighty = 0;
qq_gbc8.anchor = GridBagConstraints.WEST; // Gravity - original: CG_MIDDLELEFT
qq_gbc8.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc8.insets = new Insets(4, 4, 4, 4); // Top, Left, Bottom, Right Margin
qq_GridField13.add( getqq_ValidatingTesterBtn(), qq_gbc8 );
GridBagConstraints qq_gbc9 = new GridBagConstraints();
qq_gbc9.gridx = 0; // Column 1
qq_gbc9.gridy = 9; // Row 10
qq_gbc9.weightx = 0;
qq_gbc9.weighty = 0;
qq_gbc9.anchor = GridBagConstraints.WEST; // Gravity - original: CG_MIDDLELEFT
qq_gbc9.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc9.insets = new Insets(4, 4, 4, 4); // Top, Left, Bottom, Right Margin
qq_GridField13.add( getqq_FormattingTestsBtn(), qq_gbc9 );
GridBagConstraints qq_gbc10 = new GridBagConstraints();
qq_gbc10.gridx = 0; // Column 1
qq_gbc10.gridy = 10; // Row 11
qq_gbc10.weightx = 0;
qq_gbc10.weighty = 0;
qq_gbc10.anchor = GridBagConstraints.WEST; // Gravity - original: CG_MIDDLELEFT
qq_gbc10.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc10.insets = new Insets(4, 4, 4, 4); // Top, Left, Bottom, Right Margin
qq_GridField13.add( getqq_ShapesTesterBtn(), qq_gbc10 );
GridBagConstraints qq_gbc11 = new GridBagConstraints();
qq_gbc11.gridx = 0; // Column 1
qq_gbc11.gridy = 11; // Row 12
qq_gbc11.weightx = 0;
qq_gbc11.weighty = 0;
qq_gbc11.anchor = GridBagConstraints.WEST; // Gravity - original: CG_MIDDLELEFT
qq_gbc11.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc11.insets = new Insets(4, 4, 4, 4); // Top, Left, Bottom, Right Margin
qq_GridField13.add( getqq_ControlsTesterBtn(), qq_gbc11 );
GridBagConstraints qq_gbc12 = new GridBagConstraints();
qq_gbc12.gridx = 0; // Column 1
qq_gbc12.gridy = 12; // Row 13
qq_gbc12.weightx = 0;
qq_gbc12.weighty = 0;
qq_gbc12.anchor = GridBagConstraints.WEST; // Gravity - original: CG_MIDDLELEFT
qq_gbc12.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc12.insets = new Insets(4, 4, 4, 4); // Top, Left, Bottom, Right Margin
qq_GridField13.add( getqq_DomainTesterBtn(), qq_gbc12 );
GridBagConstraints qq_gbc13 = new GridBagConstraints();
qq_gbc13.gridx = 0; // Column 1
qq_gbc13.gridy = 13; // Row 14
qq_gbc13.weightx = 0;
qq_gbc13.weighty = 0;
qq_gbc13.anchor = GridBagConstraints.WEST; // Gravity - original: CG_MIDDLELEFT
qq_gbc13.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc13.insets = new Insets(4, 4, 4, 4); // Top, Left, Bottom, Right Margin
qq_GridField13.add( getqq_ScratchPadBtn(), qq_gbc13 );
GridBagConstraints qq_gbc14 = new GridBagConstraints();
qq_gbc14.gridx = 0; // Column 1
qq_gbc14.gridy = 14; // Row 15
qq_gbc14.weightx = 0;
qq_gbc14.weighty = 0;
qq_gbc14.anchor = GridBagConstraints.WEST; // Gravity - original: CG_MIDDLELEFT
qq_gbc14.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc14.insets = new Insets(4, 4, 4, 4); // Top, Left, Bottom, Right Margin
qq_GridField13.add( getqq_DataFieldTestsBtn(), qq_gbc14 );
}
return qq_GridField13;
}
public void setqq_GridField13(GridField value) {
GridField oldValue = qq_GridField13;
qq_GridField13 = value;
this.qq_Listeners.firePropertyChange("qq_GridField13", 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_GridField13() );
Form.add( getqq_Line12() );
}
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( "Runner" );
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_Line12(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_GridField13(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_FieldTesterBtn(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_GridFieldTesterBtn(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_ListViewTestBtn(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_MappedDateTimeNullableBtn(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_MappedObjectsTesterBtn(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_QuestionTesterBtn(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_VisibilityTesterBtn(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_FormattingTestsBtn(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_TreeViewTesterBtn(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_ValidatingTesterBtn(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_ShapesTesterBtn(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_ControlsTesterBtn(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_ScratchPadBtn(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_DomainTesterBtn(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_DataFieldTestsBtn(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
}
// </editor-fold>
// -----------
// Main method
// -----------
public static void main(String []args) {
KeyboardFocusManager.setCurrentKeyboardFocusManager(new ForteKeyboardFocusManager());
try {
UIManager.setLookAndFeel(new Win32LookAndFeel());
}
catch (Exception e) {}
ToolTipManager.sharedInstance().setDismissDelay(Integer.MAX_VALUE);
Runner myClass = new Runner();
myClass.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
myClass.setVisible(true);
UIutils.processGUIActions();
}
} // end class Runner
// c Pass 2 Conversion Time: 484 milliseconds