package Domains;
import DisplayProject.CloseHideAdaptor;
import DisplayProject.Constants;
import DisplayProject.CursorMgr;
import DisplayProject.DataField;
import DisplayProject.FixedLengthDocument;
import DisplayProject.GridField;
import DisplayProject.PictureField;
import DisplayProject.UDSWindow;
import DisplayProject.UIutils;
import DisplayProject.WindowManager;
import DisplayProject.WindowUsageMap;
import DisplayProject.actions.AppletConnectionInfo;
import DisplayProject.actions.DateTemplate;
import DisplayProject.actions.ExitOnTab;
import DisplayProject.actions.HeightPolicy;
import DisplayProject.actions.ImageValue;
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.MultiLineTextField;
import DisplayProject.controls.PictureGraphic;
import DisplayProject.controls.TextGraphic;
import DisplayProject.events.ClientEventManager;
import DisplayProject.factory.CompoundFieldFactory;
import DisplayProject.factory.DataFieldFactory;
import DisplayProject.factory.GraphicFactory;
import DisplayProject.factory.PictureFieldFactory;
import DisplayProject.factory.TextEditFactory;
import DisplayProject.factory.ToggleFieldFactory;
import DisplayProject.plaf.Win32LookAndFeel;
import Domains.TestWindow;
import Express.domains.BooleanDomain;
import Express.domains.DateTimeDomain;
import Express.domains.DoubleDomain;
import Express.domains.ImageDomain;
import Express.domains.IntegerDomain;
import Express.domains.LongTextDomain;
import Express.domains.MoneyDomain;
import Express.domains.TextDomain;
import Framework.BooleanData;
import Framework.DateTimeData;
import Framework.DoubleData;
import Framework.ErrorMgr;
import Framework.EventHandle;
import Framework.EventManager;
import Framework.EventRegistration;
import Framework.File;
import Framework.ForteKeyboardFocusManager;
import Framework.FrameworkUtils;
import Framework.ImageData;
import Framework.IntegerData;
import Framework.IntegerNullable;
import Framework.RuntimeProperties;
import Framework.UsageException;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import java.awt.KeyboardFocusManager;
import java.awt.Window;
import java.awt.event.ComponentListener;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.Serializable;
import java.lang.String;
import java.net.MalformedURLException;
import java.net.URL;
import javax.help.CSH;
import javax.swing.ImageIcon;
import javax.swing.JCheckBox;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.UIManager;
/**
* Main<p>
* <p>
* @author Generated from Forte
* @since 19-Nov-2008
*/
@RuntimeProperties(isDistributed=false, isAnchored=false, isShared=false, isTransactional=false)
@UDSWindow()
@SuppressWarnings("serial")
public class Main
extends JFrame
implements Serializable, Observable
{
// ----------
// Attributes
// ----------
protected File DefaultHelpFile;
protected BindingManager bindingManager = null;
public PropertyChangeSupport qq_Listeners = new ExtendedPropertyChangeSupport(this, true);
private BooleanDomain aBooleanDomain;
private DateTimeDomain aDateTimeDomain;
private DoubleDomain aDoubleDomain;
private ImageDomain aImageDomain;
private IntegerDomain aIntegerDomain;
private LongTextDomain aLongTextDomain;
private MoneyDomain aMoneyDomain;
private TextDomain aTextDomain;
private DateTimeData aNotherDate;
private IntegerData aInteger;
private IntegerNullable aIntegerNullable;
private DoubleData aDouble;
private BooleanData aBooleanData;
// ------------
// Constructors
// ------------
public Main() {
// Explicitly call the superclass constructor to prevent the implicit call
super();
this.initialize();
this.setABooleanDomain(new BooleanDomain(true, BooleanDomain.qq_Resolver.cVALUE));
this.setADateTimeDomain(new DateTimeDomain());
this.getADateTimeDomain().setCurrent();
this.setANotherDate(new DateTimeData());
this.getANotherDate().setCurrent();
this.setADoubleDomain(new DoubleDomain(3.14159, DoubleDomain.qq_Resolver.cVALUE));
this.setADouble(new DoubleData(3.14159));
this.setAImageDomain(new ImageDomain());
this.getAImageDomain().setValue(ImageValue.get(this.getqq_aPicture()));
this.setAIntegerDomain(new IntegerDomain(42, IntegerDomain.qq_Resolver.cVALUE));
this.setAInteger(new IntegerData(43));
this.setAIntegerNullable(new IntegerNullable(44));
this.setALongTextDomain(new LongTextDomain("A peaceful spot is Pipers Flat. \n" +
"...\n" +
"But the folk are now rejoicing as they ne'er rejoiced before\n" +
"For we've played Molongo at cricket and McDougal topped the score", LongTextDomain.qq_Resolver.cVALUE));
this.setAMoneyDomain(new MoneyDomain(1000000.35, MoneyDomain.qq_Resolver.cVALUE));
this.setATextDomain(new TextDomain("just some text"));
}
// ----------------------
// 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 setABooleanDomain(BooleanDomain aBooleanDomain) {
BooleanDomain oldValue = this.aBooleanDomain;
this.aBooleanDomain = aBooleanDomain;
this.qq_Listeners.firePropertyChange("ABooleanDomain", oldValue, this.aBooleanDomain);
}
public BooleanDomain getABooleanDomain() {
return this.aBooleanDomain;
}
public void setADateTimeDomain(DateTimeDomain aDateTimeDomain) {
DateTimeDomain oldValue = this.aDateTimeDomain;
this.aDateTimeDomain = aDateTimeDomain;
this.qq_Listeners.firePropertyChange("ADateTimeDomain", oldValue, this.aDateTimeDomain);
}
public DateTimeDomain getADateTimeDomain() {
return this.aDateTimeDomain;
}
public void setADoubleDomain(DoubleDomain aDoubleDomain) {
DoubleDomain oldValue = this.aDoubleDomain;
this.aDoubleDomain = aDoubleDomain;
this.qq_Listeners.firePropertyChange("ADoubleDomain", oldValue, this.aDoubleDomain);
}
public DoubleDomain getADoubleDomain() {
return this.aDoubleDomain;
}
public void setAImageDomain(ImageDomain aImageDomain) {
ImageDomain oldValue = this.aImageDomain;
this.aImageDomain = aImageDomain;
this.qq_Listeners.firePropertyChange("AImageDomain", oldValue, this.aImageDomain);
}
public ImageDomain getAImageDomain() {
return this.aImageDomain;
}
public void setAIntegerDomain(IntegerDomain aIntegerDomain) {
IntegerDomain oldValue = this.aIntegerDomain;
this.aIntegerDomain = aIntegerDomain;
this.qq_Listeners.firePropertyChange("AIntegerDomain", oldValue, this.aIntegerDomain);
}
public IntegerDomain getAIntegerDomain() {
return this.aIntegerDomain;
}
public void setALongTextDomain(LongTextDomain aLongTextDomain) {
LongTextDomain oldValue = this.aLongTextDomain;
this.aLongTextDomain = aLongTextDomain;
this.qq_Listeners.firePropertyChange("ALongTextDomain", oldValue, this.aLongTextDomain);
}
public LongTextDomain getALongTextDomain() {
return this.aLongTextDomain;
}
public void setAMoneyDomain(MoneyDomain aMoneyDomain) {
MoneyDomain oldValue = this.aMoneyDomain;
this.aMoneyDomain = aMoneyDomain;
this.qq_Listeners.firePropertyChange("AMoneyDomain", oldValue, this.aMoneyDomain);
}
public MoneyDomain getAMoneyDomain() {
return this.aMoneyDomain;
}
public void setATextDomain(TextDomain aTextDomain) {
TextDomain oldValue = this.aTextDomain;
this.aTextDomain = aTextDomain;
this.qq_Listeners.firePropertyChange("ATextDomain", oldValue, this.aTextDomain);
}
public TextDomain getATextDomain() {
return this.aTextDomain;
}
public void setANotherDate(DateTimeData aNotherDate) {
DateTimeData oldValue = this.aNotherDate;
this.aNotherDate = aNotherDate;
this.qq_Listeners.firePropertyChange("ANotherDate", oldValue, this.aNotherDate);
}
public DateTimeData getANotherDate() {
return this.aNotherDate;
}
public void setAInteger(IntegerData aInteger) {
IntegerData oldValue = this.aInteger;
this.aInteger = aInteger;
this.qq_Listeners.firePropertyChange("AInteger", oldValue, this.aInteger);
}
public IntegerData getAInteger() {
return this.aInteger;
}
public void setAIntegerNullable(IntegerNullable aIntegerNullable) {
IntegerNullable oldValue = this.aIntegerNullable;
this.aIntegerNullable = aIntegerNullable;
this.qq_Listeners.firePropertyChange("AIntegerNullable", oldValue, this.aIntegerNullable);
}
public IntegerNullable getAIntegerNullable() {
return this.aIntegerNullable;
}
public void setADouble(DoubleData aDouble) {
DoubleData oldValue = this.aDouble;
this.aDouble = aDouble;
this.qq_Listeners.firePropertyChange("ADouble", oldValue, this.aDouble);
}
public DoubleData getADouble() {
return this.aDouble;
}
public void setABooleanData(BooleanData aBooleanData) {
BooleanData oldValue = this.aBooleanData;
this.aBooleanData = aBooleanData;
this.qq_Listeners.firePropertyChange("ABooleanData", oldValue, this.aBooleanData);
}
public BooleanData getABooleanData() {
return this.aBooleanData;
}
// -------
// 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() {
new TestWindow.AsyncRunner().display(new TestWindow());
UserWindow.open(this);
// ----------
// Event Loop
// ----------
EventManager.startEventLoop();
try {
EventRegistration TaskHandle_Shutdown_langThreadcurrentThread = ClientEventManager.register( Thread.currentThread(), "Shutdown" );
while (true) {
UIutils.processGUIActions();
EventHandle qq_currentEvent = EventManager.waitForEvent();
if (qq_currentEvent == null)
break;
// -------------
// task.Shutdown
// -------------
if (qq_currentEvent.isEvent(TaskHandle_Shutdown_langThreadcurrentThread)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
break;
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
}
EventManager.deregister( TaskHandle_Shutdown_langThreadcurrentThread );
}
//catch (Exception qq_error) {
//Logger.getLogger("task.part.Event").error("Event loop terminated by unhandled exception: " + qq_error.getMessage(), qq_error );
//throw qq_error;
//}
finally {
EventManager.endEventLoop();
UserWindow.close(this);
}
}
// ------------------
// Window Definitions
// ------------------
// <editor-fold defaultstate="collapsed" desc="Window Definitions">
private int qq_defaultSet = 1;
private int qq_msgNumber = 0;
private int qq_msgSet = 0;
protected Window primaryWindow = null;
protected int initialX;
protected int initialY;
protected int qq_SystemClosePolicy = Constants.SC_ENABLEDSHUTDOWN;
protected int qq_initialPositionPolicy = Constants.PP_SYSTEMDEFAULT;
public DataField qq_aDateTimeDomain;
public DataField qq_aDouble;
public DataField qq_aDoubleDomain;
public DataField qq_aInteger;
public DataField qq_aIntegerDomain;
public DataField qq_aIntegerNullable;
public DataField qq_aMoneyDomain;
public DataField qq_aNotherDate;
public DataField qq_aTextDomain;
public GridField qq_GridField12;
public JCheckBox qq_aBooleanData;
public JCheckBox qq_aBooleanDomain;
public JPanel Form;
public JScrollPane qq_aLongTextDomain_sp;
public MultiLineTextField qq_aLongTextDomain;
public PictureField qq_aImageDomain;
public PictureGraphic qq_aPicture;
public TextGraphic qq_BooleanDataLbl;
public TextGraphic qq_BooleanDomainLbl;
public TextGraphic qq_DateTimeDataLbl;
public TextGraphic qq_DateTimeDomainLbl;
public TextGraphic qq_DoubleDataLbl;
public TextGraphic qq_DouibleDomainLbl;
public TextGraphic qq_ImageDomainLbl;
public TextGraphic qq_IntegerDataLbl;
public TextGraphic qq_IntegerDomainLbl;
public TextGraphic qq_IntegerNullableLbl;
public TextGraphic qq_LongTextDomainLbl;
public TextGraphic qq_MoneyDomainLbl;
public TextGraphic qq_TextDomainLbl;
/**
* qq_aPicture: transformed from: qqds_PictureGraphic
* TagId=21
* isInherited=FALSE
*/
public PictureGraphic getqq_aPicture() {
if (qq_aPicture == null) {
qq_aPicture = GraphicFactory.newPictureGraphic("", Constants.CG_CENTER);
qq_aPicture.setImageValue(new ImageData(new ImageIcon(Main.class.getResource("main.qq_aPicture.png"))));
qq_aPicture.setWidthPolicy(Constants.SP_NATURAL);
qq_aPicture.setHeightPolicy(Constants.SP_NATURAL);
qq_aPicture.setImageSizePolicy(Constants.IS_NATURAL);
qq_aPicture.setOpaque( true );
qq_aPicture.setSize(new Dimension(393, 295));
qq_aPicture.setMinimumSize(new Dimension(393, 295));
qq_aPicture.setPreferredSize(new Dimension(393, 295));
qq_aPicture.setLocation(492, 177);
}
return qq_aPicture;
}
public void setqq_aPicture(PictureGraphic value) {
PictureGraphic oldValue = qq_aPicture;
qq_aPicture = value;
this.qq_Listeners.firePropertyChange("qq_aPicture", oldValue, value);
}
/**
* qq_aBooleanDomain: transformed from: qqds_ToggleField
* TagId=13
* isInherited=FALSE
*/
public JCheckBox getqq_aBooleanDomain() {
if (qq_aBooleanDomain == null) {
qq_aBooleanDomain = ToggleFieldFactory.newToggleField("", "aBooleanDomain");
getBindingManager().bindComponent(qq_aBooleanDomain, "ABooleanDomain");
// OPTIONAL UIutils.reloadLabelText(qq_aBooleanDomain, mcat);
}
return qq_aBooleanDomain;
}
public void setqq_aBooleanDomain(JCheckBox value) {
JCheckBox oldValue = qq_aBooleanDomain;
qq_aBooleanDomain = value;
this.qq_Listeners.firePropertyChange("qq_aBooleanDomain", oldValue, value);
}
/**
* qq_aDateTimeDomain: transformed from: qqds_DataField
* TagId=14
* isInherited=FALSE
*/
public DataField getqq_aDateTimeDomain() {
if (qq_aDateTimeDomain == null) {
// Mask type: MK_TEMPLATE
// original Forte format string -->DATETIME<--
qq_aDateTimeDomain = DataFieldFactory.newDataField("aDateTimeDomain", 20, DateTimeDomain.class);
DateTemplate.set(qq_aDateTimeDomain, "DATETIME", DateTimeDomain.class);
qq_aDateTimeDomain.setOriginalFormatText("DATETIME");
qq_aDateTimeDomain.setHorizontalAlignment(JTextField.LEFT);
getBindingManager().bindComponent(qq_aDateTimeDomain, "ADateTimeDomain");
WidthPolicy.set(qq_aDateTimeDomain, Constants.SP_NATURAL);
HeightPolicy.set(qq_aDateTimeDomain, Constants.SP_NATURAL);
qq_aDateTimeDomain.setMinimumSize(new Dimension(129, 19));
// HelpTopic
CSH.setHelpIDString(qq_aDateTimeDomain, "");
}
return qq_aDateTimeDomain;
}
public void setqq_aDateTimeDomain(DataField value) {
DataField oldValue = qq_aDateTimeDomain;
qq_aDateTimeDomain = value;
this.qq_Listeners.firePropertyChange("qq_aDateTimeDomain", oldValue, value);
}
/**
* qq_aDoubleDomain: transformed from: qqds_DataField
* TagId=15
* isInherited=FALSE
*/
public DataField getqq_aDoubleDomain() {
if (qq_aDoubleDomain == null) {
// Mask type: Constants.MK_FLOAT
qq_aDoubleDomain = DataFieldFactory.newDataField("aDoubleDomain", 20, DoubleDomain.class, Constants.MK_FLOAT);
qq_aDoubleDomain.setOriginalFormatText(null);
qq_aDoubleDomain.setHorizontalAlignment(JTextField.RIGHT);
qq_aDoubleDomain.setDocument( new FixedLengthDocument(20) ); // Max characters of 20
getBindingManager().bindComponent(qq_aDoubleDomain, "ADoubleDomain");
WidthPolicy.set(qq_aDoubleDomain, Constants.SP_NATURAL);
HeightPolicy.set(qq_aDoubleDomain, Constants.SP_NATURAL);
qq_aDoubleDomain.setMinimumSize(new Dimension(129, 19));
// HelpTopic
CSH.setHelpIDString(qq_aDoubleDomain, "");
}
return qq_aDoubleDomain;
}
public void setqq_aDoubleDomain(DataField value) {
DataField oldValue = qq_aDoubleDomain;
qq_aDoubleDomain = value;
this.qq_Listeners.firePropertyChange("qq_aDoubleDomain", oldValue, value);
}
/**
* qq_aImageDomain: transformed from: qqds_PictureField
* TagId=16
* isInherited=FALSE
*/
public PictureField getqq_aImageDomain() {
if (qq_aImageDomain == null) {
qq_aImageDomain = PictureFieldFactory.newInstance("aImageDomain", Constants.IS_FIELDWIDTH, Constants.CG_CENTER);
getBindingManager().bindComponent(qq_aImageDomain, "AImageDomain");
WidthPolicy.set(qq_aImageDomain, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_aImageDomain, Constants.SP_EXPLICIT);
qq_aImageDomain.setSize(new Dimension(268, 187));
qq_aImageDomain.setMinimumSize(new Dimension(268, 187));
qq_aImageDomain.setPreferredSize(new Dimension(268, 187));
}
return qq_aImageDomain;
}
public void setqq_aImageDomain(PictureField value) {
PictureField oldValue = qq_aImageDomain;
qq_aImageDomain = value;
this.qq_Listeners.firePropertyChange("qq_aImageDomain", oldValue, value);
}
/**
* qq_aIntegerDomain: transformed from: qqds_DataField
* TagId=17
* isInherited=FALSE
*/
public DataField getqq_aIntegerDomain() {
if (qq_aIntegerDomain == null) {
// Mask type: Constants.MK_INTEGER
qq_aIntegerDomain = DataFieldFactory.newDataField("aIntegerDomain", 10, IntegerDomain.class, Constants.MK_INTEGER);
qq_aIntegerDomain.setOriginalFormatText(null);
qq_aIntegerDomain.setHorizontalAlignment(JTextField.RIGHT);
qq_aIntegerDomain.setDocument( new FixedLengthDocument(10) ); // Max characters of 10
getBindingManager().bindComponent(qq_aIntegerDomain, "AIntegerDomain");
WidthPolicy.set(qq_aIntegerDomain, Constants.SP_NATURAL);
HeightPolicy.set(qq_aIntegerDomain, Constants.SP_NATURAL);
qq_aIntegerDomain.setMinimumSize(new Dimension(69, 19));
// HelpTopic
CSH.setHelpIDString(qq_aIntegerDomain, "");
}
return qq_aIntegerDomain;
}
public void setqq_aIntegerDomain(DataField value) {
DataField oldValue = qq_aIntegerDomain;
qq_aIntegerDomain = value;
this.qq_Listeners.firePropertyChange("qq_aIntegerDomain", oldValue, value);
}
/**
* qq_aLongTextDomain_sp: transformed from: qqds_TextField
* TagId=18
* isInherited=FALSE
*/
public JScrollPane getqq_aLongTextDomain_sp() {
if (qq_aLongTextDomain_sp == null) {
qq_aLongTextDomain_sp = CompoundFieldFactory.newScrollPane();
qq_aLongTextDomain_sp.setName("aLongTextDomain");
qq_aLongTextDomain_sp.setViewportView(getqq_aLongTextDomain());
qq_aLongTextDomain_sp.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
qq_aLongTextDomain_sp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
WidthPolicy.set(qq_aLongTextDomain_sp, Constants.SP_NATURAL);
HeightPolicy.set(qq_aLongTextDomain_sp, Constants.SP_NATURAL);
qq_aLongTextDomain_sp.setSize(new Dimension(332, 139));
qq_aLongTextDomain_sp.setMinimumSize(new Dimension(332, 139));
qq_aLongTextDomain_sp.setPreferredSize(new Dimension(332, 139));
// HelpTopic
CSH.setHelpIDString(qq_aLongTextDomain_sp, "");
}
return qq_aLongTextDomain_sp;
}
public void setqq_aLongTextDomain_sp(JScrollPane value) {
JScrollPane oldValue = qq_aLongTextDomain_sp;
qq_aLongTextDomain_sp = value;
this.qq_Listeners.firePropertyChange("qq_aLongTextDomain_sp", oldValue, value);
}
/**
* qq_aLongTextDomain: transformed from: qqds_TextField
* TagId=18
* isInherited=FALSE
*/
public MultiLineTextField getqq_aLongTextDomain() {
if (qq_aLongTextDomain == null) {
qq_aLongTextDomain = TextEditFactory.newTextField("aLongTextDomain", 10, 47);
qq_aLongTextDomain.setWrapStyleWord( true );
qq_aLongTextDomain.setLineWrap( true );
qq_aLongTextDomain.setDocument( new FixedLengthDocument(250) ); // Max characters of 250
getBindingManager().bindComponent(qq_aLongTextDomain, "ALongTextDomain");
ExitOnTab.set(qq_aLongTextDomain, true);
WidthPolicy.set(qq_aLongTextDomain, Constants.SP_NATURAL);
HeightPolicy.set(qq_aLongTextDomain, Constants.SP_NATURAL);
// HelpTopic
CSH.setHelpIDString(qq_aLongTextDomain, "");
}
return qq_aLongTextDomain;
}
public void setqq_aLongTextDomain(MultiLineTextField value) {
MultiLineTextField oldValue = qq_aLongTextDomain;
qq_aLongTextDomain = value;
this.qq_Listeners.firePropertyChange("qq_aLongTextDomain", oldValue, value);
}
/**
* qq_aMoneyDomain: transformed from: qqds_DataField
* TagId=19
* isInherited=FALSE
*/
public DataField getqq_aMoneyDomain() {
if (qq_aMoneyDomain == null) {
// Mask type: MK_TEMPLATE
// original Forte format string -->CURRENCY<--
this.qq_aMoneyDomain = DataFieldFactory.newDataField("aMoneyDomain", 20, UIutils.getCurrencyPattern(), MoneyDomain.class);
qq_aMoneyDomain.setOriginalFormatText("CURRENCY");
qq_aMoneyDomain.setHorizontalAlignment(JTextField.RIGHT);
getBindingManager().bindComponent(qq_aMoneyDomain, "AMoneyDomain");
WidthPolicy.set(qq_aMoneyDomain, Constants.SP_NATURAL);
HeightPolicy.set(qq_aMoneyDomain, Constants.SP_NATURAL);
qq_aMoneyDomain.setMinimumSize(new Dimension(129, 19));
// HelpTopic
CSH.setHelpIDString(qq_aMoneyDomain, "");
}
return qq_aMoneyDomain;
}
public void setqq_aMoneyDomain(DataField value) {
DataField oldValue = qq_aMoneyDomain;
qq_aMoneyDomain = value;
this.qq_Listeners.firePropertyChange("qq_aMoneyDomain", oldValue, value);
}
/**
* qq_aTextDomain: transformed from: qqds_DataField
* TagId=20
* isInherited=FALSE
*/
public DataField getqq_aTextDomain() {
if (qq_aTextDomain == null) {
// Mask type: MK_NONE
qq_aTextDomain = DataFieldFactory.newDataField("aTextDomain", 20, TextDomain.class, Constants.MK_NONE);
qq_aTextDomain.setOriginalFormatText(null);
qq_aTextDomain.setHorizontalAlignment(JTextField.LEFT);
qq_aTextDomain.setDocument( new FixedLengthDocument(20) ); // Max characters of 20
getBindingManager().bindComponent(qq_aTextDomain, "ATextDomain");
WidthPolicy.set(qq_aTextDomain, Constants.SP_NATURAL);
HeightPolicy.set(qq_aTextDomain, Constants.SP_NATURAL);
qq_aTextDomain.setMinimumSize(new Dimension(129, 19));
// HelpTopic
CSH.setHelpIDString(qq_aTextDomain, "");
}
return qq_aTextDomain;
}
public void setqq_aTextDomain(DataField value) {
DataField oldValue = qq_aTextDomain;
qq_aTextDomain = value;
this.qq_Listeners.firePropertyChange("qq_aTextDomain", oldValue, value);
}
/**
* qq_aNotherDate: transformed from: qqds_DataField
* TagId=22
* isInherited=FALSE
*/
public DataField getqq_aNotherDate() {
if (qq_aNotherDate == null) {
// Mask type: MK_TEMPLATE
// original Forte format string -->DATETIME<--
qq_aNotherDate = DataFieldFactory.newDataField("aNotherDate", 20, DateTimeData.class);
DateTemplate.set(qq_aNotherDate, "DATETIME", DateTimeData.class);
qq_aNotherDate.setOriginalFormatText("DATETIME");
qq_aNotherDate.setHorizontalAlignment(JTextField.LEFT);
getBindingManager().bindComponent(qq_aNotherDate, "ANotherDate");
WidthPolicy.set(qq_aNotherDate, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_aNotherDate, Constants.SP_NATURAL);
qq_aNotherDate.setMinimumSize(new Dimension(129, 19));
qq_aNotherDate.setSize(new Dimension(129, 19));
}
return qq_aNotherDate;
}
public void setqq_aNotherDate(DataField value) {
DataField oldValue = qq_aNotherDate;
qq_aNotherDate = value;
this.qq_Listeners.firePropertyChange("qq_aNotherDate", oldValue, value);
}
/**
* qq_aInteger: transformed from: qqds_DataField
* TagId=23
* isInherited=FALSE
*/
public DataField getqq_aInteger() {
if (qq_aInteger == null) {
// Mask type: Constants.MK_INTEGER
qq_aInteger = DataFieldFactory.newDataField("aInteger", 10, IntegerData.class, Constants.MK_INTEGER);
qq_aInteger.setOriginalFormatText(null);
qq_aInteger.setHorizontalAlignment(JTextField.RIGHT);
qq_aInteger.setDocument( new FixedLengthDocument(10) ); // Max characters of 10
getBindingManager().bindComponent(qq_aInteger, "AInteger");
WidthPolicy.set(qq_aInteger, Constants.SP_NATURAL);
HeightPolicy.set(qq_aInteger, Constants.SP_NATURAL);
qq_aInteger.setMinimumSize(new Dimension(69, 19));
// HelpTopic
CSH.setHelpIDString(qq_aInteger, "");
}
return qq_aInteger;
}
public void setqq_aInteger(DataField value) {
DataField oldValue = qq_aInteger;
qq_aInteger = value;
this.qq_Listeners.firePropertyChange("qq_aInteger", oldValue, value);
}
/**
* qq_aIntegerNullable: transformed from: qqds_DataField
* TagId=24
* isInherited=FALSE
*/
public DataField getqq_aIntegerNullable() {
if (qq_aIntegerNullable == null) {
// Mask type: Constants.MK_INTEGER
qq_aIntegerNullable = DataFieldFactory.newDataField("aIntegerNullable", 10, IntegerNullable.class, Constants.MK_INTEGER);
qq_aIntegerNullable.setOriginalFormatText(null);
qq_aIntegerNullable.setHorizontalAlignment(JTextField.RIGHT);
qq_aIntegerNullable.setDocument( new FixedLengthDocument(10) ); // Max characters of 10
getBindingManager().bindComponent(qq_aIntegerNullable, "AIntegerNullable");
WidthPolicy.set(qq_aIntegerNullable, Constants.SP_NATURAL);
HeightPolicy.set(qq_aIntegerNullable, Constants.SP_NATURAL);
qq_aIntegerNullable.setMinimumSize(new Dimension(69, 19));
// HelpTopic
CSH.setHelpIDString(qq_aIntegerNullable, "");
}
return qq_aIntegerNullable;
}
public void setqq_aIntegerNullable(DataField value) {
DataField oldValue = qq_aIntegerNullable;
qq_aIntegerNullable = value;
this.qq_Listeners.firePropertyChange("qq_aIntegerNullable", oldValue, value);
}
/**
* qq_aDouble: transformed from: qqds_DataField
* TagId=25
* isInherited=FALSE
*/
public DataField getqq_aDouble() {
if (qq_aDouble == null) {
// Mask type: MK_TEMPLATE
// original Forte format string -->0.0000000<--
this.qq_aDouble = DataFieldFactory.newDataField("aDouble", 20, "0.0000000", DoubleData.class);
qq_aDouble.setOriginalFormatText("0.0000000");
qq_aDouble.setHorizontalAlignment(JTextField.RIGHT);
getBindingManager().bindComponent(qq_aDouble, "ADouble");
WidthPolicy.set(qq_aDouble, Constants.SP_NATURAL);
HeightPolicy.set(qq_aDouble, Constants.SP_NATURAL);
qq_aDouble.setMinimumSize(new Dimension(129, 19));
// HelpTopic
CSH.setHelpIDString(qq_aDouble, "");
}
return qq_aDouble;
}
public void setqq_aDouble(DataField value) {
DataField oldValue = qq_aDouble;
qq_aDouble = value;
this.qq_Listeners.firePropertyChange("qq_aDouble", oldValue, value);
}
/**
* qq_BooleanDomainLbl: transformed from: qqds_TextGraphic
* TagId=26
* isInherited=FALSE
*/
public TextGraphic getqq_BooleanDomainLbl() {
if (qq_BooleanDomainLbl == null) {
qq_BooleanDomainLbl = GraphicFactory.newTextGraphic("BooleanDomain\n", "");
// OPTIONAL UIutils.reloadLabelText(qq_BooleanDomainLbl, mcat);
WidthPolicy.set(qq_BooleanDomainLbl, Constants.SP_NATURAL);
HeightPolicy.set(qq_BooleanDomainLbl, Constants.SP_NATURAL);
qq_BooleanDomainLbl.setMinimumSize(new Dimension(79, 14));
}
return qq_BooleanDomainLbl;
}
public void setqq_BooleanDomainLbl(TextGraphic value) {
TextGraphic oldValue = qq_BooleanDomainLbl;
qq_BooleanDomainLbl = value;
this.qq_Listeners.firePropertyChange("qq_BooleanDomainLbl", oldValue, value);
}
/**
* qq_aBooleanData: transformed from: qqds_ToggleField
* TagId=27
* isInherited=FALSE
*/
public JCheckBox getqq_aBooleanData() {
if (qq_aBooleanData == null) {
qq_aBooleanData = ToggleFieldFactory.newToggleField("", "aBooleanData");
getBindingManager().bindComponent(qq_aBooleanData, "ABooleanData");
// OPTIONAL UIutils.reloadLabelText(qq_aBooleanData, mcat);
}
return qq_aBooleanData;
}
public void setqq_aBooleanData(JCheckBox value) {
JCheckBox oldValue = qq_aBooleanData;
qq_aBooleanData = value;
this.qq_Listeners.firePropertyChange("qq_aBooleanData", oldValue, value);
}
/**
* qq_BooleanDataLbl: transformed from: qqds_TextGraphic
* TagId=28
* isInherited=FALSE
*/
public TextGraphic getqq_BooleanDataLbl() {
if (qq_BooleanDataLbl == null) {
qq_BooleanDataLbl = GraphicFactory.newTextGraphic("BooleanData\n", "");
// OPTIONAL UIutils.reloadLabelText(qq_BooleanDataLbl, mcat);
WidthPolicy.set(qq_BooleanDataLbl, Constants.SP_NATURAL);
HeightPolicy.set(qq_BooleanDataLbl, Constants.SP_NATURAL);
qq_BooleanDataLbl.setMinimumSize(new Dimension(67, 14));
}
return qq_BooleanDataLbl;
}
public void setqq_BooleanDataLbl(TextGraphic value) {
TextGraphic oldValue = qq_BooleanDataLbl;
qq_BooleanDataLbl = value;
this.qq_Listeners.firePropertyChange("qq_BooleanDataLbl", oldValue, value);
}
/**
* qq_DateTimeDomainLbl: transformed from: qqds_TextGraphic
* TagId=29
* isInherited=FALSE
*/
public TextGraphic getqq_DateTimeDomainLbl() {
if (qq_DateTimeDomainLbl == null) {
qq_DateTimeDomainLbl = GraphicFactory.newTextGraphic("DateTimeDomain\n", "");
// OPTIONAL UIutils.reloadLabelText(qq_DateTimeDomainLbl, mcat);
WidthPolicy.set(qq_DateTimeDomainLbl, Constants.SP_NATURAL);
HeightPolicy.set(qq_DateTimeDomainLbl, Constants.SP_NATURAL);
qq_DateTimeDomainLbl.setMinimumSize(new Dimension(86, 14));
}
return qq_DateTimeDomainLbl;
}
public void setqq_DateTimeDomainLbl(TextGraphic value) {
TextGraphic oldValue = qq_DateTimeDomainLbl;
qq_DateTimeDomainLbl = value;
this.qq_Listeners.firePropertyChange("qq_DateTimeDomainLbl", oldValue, value);
}
/**
* qq_DateTimeDataLbl: transformed from: qqds_TextGraphic
* TagId=30
* isInherited=FALSE
*/
public TextGraphic getqq_DateTimeDataLbl() {
if (qq_DateTimeDataLbl == null) {
qq_DateTimeDataLbl = GraphicFactory.newTextGraphic("DateTimeData\n", "");
// OPTIONAL UIutils.reloadLabelText(qq_DateTimeDataLbl, mcat);
WidthPolicy.set(qq_DateTimeDataLbl, Constants.SP_NATURAL);
HeightPolicy.set(qq_DateTimeDataLbl, Constants.SP_NATURAL);
qq_DateTimeDataLbl.setMinimumSize(new Dimension(74, 14));
}
return qq_DateTimeDataLbl;
}
public void setqq_DateTimeDataLbl(TextGraphic value) {
TextGraphic oldValue = qq_DateTimeDataLbl;
qq_DateTimeDataLbl = value;
this.qq_Listeners.firePropertyChange("qq_DateTimeDataLbl", oldValue, value);
}
/**
* qq_DouibleDomainLbl: transformed from: qqds_TextGraphic
* TagId=31
* isInherited=FALSE
*/
public TextGraphic getqq_DouibleDomainLbl() {
if (qq_DouibleDomainLbl == null) {
qq_DouibleDomainLbl = GraphicFactory.newTextGraphic("DouibleDomain\n", "");
// OPTIONAL UIutils.reloadLabelText(qq_DouibleDomainLbl, mcat);
WidthPolicy.set(qq_DouibleDomainLbl, Constants.SP_NATURAL);
HeightPolicy.set(qq_DouibleDomainLbl, Constants.SP_NATURAL);
qq_DouibleDomainLbl.setMinimumSize(new Dimension(76, 14));
}
return qq_DouibleDomainLbl;
}
public void setqq_DouibleDomainLbl(TextGraphic value) {
TextGraphic oldValue = qq_DouibleDomainLbl;
qq_DouibleDomainLbl = value;
this.qq_Listeners.firePropertyChange("qq_DouibleDomainLbl", oldValue, value);
}
/**
* qq_DoubleDataLbl: transformed from: qqds_TextGraphic
* TagId=32
* isInherited=FALSE
*/
public TextGraphic getqq_DoubleDataLbl() {
if (qq_DoubleDataLbl == null) {
qq_DoubleDataLbl = GraphicFactory.newTextGraphic("DoubleData\n", "");
// OPTIONAL UIutils.reloadLabelText(qq_DoubleDataLbl, mcat);
WidthPolicy.set(qq_DoubleDataLbl, Constants.SP_NATURAL);
HeightPolicy.set(qq_DoubleDataLbl, Constants.SP_NATURAL);
qq_DoubleDataLbl.setMinimumSize(new Dimension(62, 14));
}
return qq_DoubleDataLbl;
}
public void setqq_DoubleDataLbl(TextGraphic value) {
TextGraphic oldValue = qq_DoubleDataLbl;
qq_DoubleDataLbl = value;
this.qq_Listeners.firePropertyChange("qq_DoubleDataLbl", oldValue, value);
}
/**
* qq_ImageDomainLbl: transformed from: qqds_TextGraphic
* TagId=33
* isInherited=FALSE
*/
public TextGraphic getqq_ImageDomainLbl() {
if (qq_ImageDomainLbl == null) {
qq_ImageDomainLbl = GraphicFactory.newTextGraphic("ImageDomain\n", "");
// OPTIONAL UIutils.reloadLabelText(qq_ImageDomainLbl, mcat);
WidthPolicy.set(qq_ImageDomainLbl, Constants.SP_NATURAL);
HeightPolicy.set(qq_ImageDomainLbl, Constants.SP_NATURAL);
qq_ImageDomainLbl.setMinimumSize(new Dimension(71, 14));
}
return qq_ImageDomainLbl;
}
public void setqq_ImageDomainLbl(TextGraphic value) {
TextGraphic oldValue = qq_ImageDomainLbl;
qq_ImageDomainLbl = value;
this.qq_Listeners.firePropertyChange("qq_ImageDomainLbl", oldValue, value);
}
/**
* qq_IntegerDomainLbl: transformed from: qqds_TextGraphic
* TagId=34
* isInherited=FALSE
*/
public TextGraphic getqq_IntegerDomainLbl() {
if (qq_IntegerDomainLbl == null) {
qq_IntegerDomainLbl = GraphicFactory.newTextGraphic("IntegerDomain\n", "");
// OPTIONAL UIutils.reloadLabelText(qq_IntegerDomainLbl, mcat);
WidthPolicy.set(qq_IntegerDomainLbl, Constants.SP_NATURAL);
HeightPolicy.set(qq_IntegerDomainLbl, Constants.SP_NATURAL);
qq_IntegerDomainLbl.setMinimumSize(new Dimension(76, 14));
}
return qq_IntegerDomainLbl;
}
public void setqq_IntegerDomainLbl(TextGraphic value) {
TextGraphic oldValue = qq_IntegerDomainLbl;
qq_IntegerDomainLbl = value;
this.qq_Listeners.firePropertyChange("qq_IntegerDomainLbl", oldValue, value);
}
/**
* qq_IntegerDataLbl: transformed from: qqds_TextGraphic
* TagId=35
* isInherited=FALSE
*/
public TextGraphic getqq_IntegerDataLbl() {
if (qq_IntegerDataLbl == null) {
qq_IntegerDataLbl = GraphicFactory.newTextGraphic("IntegerData\n", "");
// OPTIONAL UIutils.reloadLabelText(qq_IntegerDataLbl, mcat);
WidthPolicy.set(qq_IntegerDataLbl, Constants.SP_NATURAL);
HeightPolicy.set(qq_IntegerDataLbl, Constants.SP_NATURAL);
qq_IntegerDataLbl.setMinimumSize(new Dimension(64, 14));
}
return qq_IntegerDataLbl;
}
public void setqq_IntegerDataLbl(TextGraphic value) {
TextGraphic oldValue = qq_IntegerDataLbl;
qq_IntegerDataLbl = value;
this.qq_Listeners.firePropertyChange("qq_IntegerDataLbl", oldValue, value);
}
/**
* qq_IntegerNullableLbl: transformed from: qqds_TextGraphic
* TagId=36
* isInherited=FALSE
*/
public TextGraphic getqq_IntegerNullableLbl() {
if (qq_IntegerNullableLbl == null) {
qq_IntegerNullableLbl = GraphicFactory.newTextGraphic("IntegerNullable\n", "");
// OPTIONAL UIutils.reloadLabelText(qq_IntegerNullableLbl, mcat);
WidthPolicy.set(qq_IntegerNullableLbl, Constants.SP_NATURAL);
HeightPolicy.set(qq_IntegerNullableLbl, Constants.SP_NATURAL);
qq_IntegerNullableLbl.setMinimumSize(new Dimension(79, 14));
}
return qq_IntegerNullableLbl;
}
public void setqq_IntegerNullableLbl(TextGraphic value) {
TextGraphic oldValue = qq_IntegerNullableLbl;
qq_IntegerNullableLbl = value;
this.qq_Listeners.firePropertyChange("qq_IntegerNullableLbl", oldValue, value);
}
/**
* qq_LongTextDomainLbl: transformed from: qqds_TextGraphic
* TagId=37
* isInherited=FALSE
*/
public TextGraphic getqq_LongTextDomainLbl() {
if (qq_LongTextDomainLbl == null) {
qq_LongTextDomainLbl = GraphicFactory.newTextGraphic("LongTextDomain\n", "");
// OPTIONAL UIutils.reloadLabelText(qq_LongTextDomainLbl, mcat);
WidthPolicy.set(qq_LongTextDomainLbl, Constants.SP_NATURAL);
HeightPolicy.set(qq_LongTextDomainLbl, Constants.SP_NATURAL);
qq_LongTextDomainLbl.setMinimumSize(new Dimension(86, 14));
}
return qq_LongTextDomainLbl;
}
public void setqq_LongTextDomainLbl(TextGraphic value) {
TextGraphic oldValue = qq_LongTextDomainLbl;
qq_LongTextDomainLbl = value;
this.qq_Listeners.firePropertyChange("qq_LongTextDomainLbl", oldValue, value);
}
/**
* qq_MoneyDomainLbl: transformed from: qqds_TextGraphic
* TagId=38
* isInherited=FALSE
*/
public TextGraphic getqq_MoneyDomainLbl() {
if (qq_MoneyDomainLbl == null) {
qq_MoneyDomainLbl = GraphicFactory.newTextGraphic("MoneyDomain\n", "");
// OPTIONAL UIutils.reloadLabelText(qq_MoneyDomainLbl, mcat);
WidthPolicy.set(qq_MoneyDomainLbl, Constants.SP_NATURAL);
HeightPolicy.set(qq_MoneyDomainLbl, Constants.SP_NATURAL);
qq_MoneyDomainLbl.setMinimumSize(new Dimension(72, 14));
}
return qq_MoneyDomainLbl;
}
public void setqq_MoneyDomainLbl(TextGraphic value) {
TextGraphic oldValue = qq_MoneyDomainLbl;
qq_MoneyDomainLbl = value;
this.qq_Listeners.firePropertyChange("qq_MoneyDomainLbl", oldValue, value);
}
/**
* qq_TextDomainLbl: transformed from: qqds_TextGraphic
* TagId=39
* isInherited=FALSE
*/
public TextGraphic getqq_TextDomainLbl() {
if (qq_TextDomainLbl == null) {
qq_TextDomainLbl = GraphicFactory.newTextGraphic("TextDomain\n", "");
// OPTIONAL UIutils.reloadLabelText(qq_TextDomainLbl, mcat);
WidthPolicy.set(qq_TextDomainLbl, Constants.SP_NATURAL);
HeightPolicy.set(qq_TextDomainLbl, Constants.SP_NATURAL);
qq_TextDomainLbl.setMinimumSize(new Dimension(62, 14));
}
return qq_TextDomainLbl;
}
public void setqq_TextDomainLbl(TextGraphic value) {
TextGraphic oldValue = qq_TextDomainLbl;
qq_TextDomainLbl = value;
this.qq_Listeners.firePropertyChange("qq_TextDomainLbl", oldValue, value);
}
/**
* qq_GridField12: transformed from: qqds_GridField
* TagId=12
* isInherited=FALSE
* In forte this was a 2x13 grid field.
* The cell margins are all 50 mils
* The width policy is set to Natural, and the height policy is set to Natural.
*/
protected void setqq_GridField12Properties() {
qq_GridField12.setCellTopMargin(25);
qq_GridField12.setCellBottomMargin(25);
qq_GridField12.setCellLeftMargin(25);
qq_GridField12.setCellRightMargin(25);
qq_GridField12.setCollapsed(true);
qq_GridField12.setHeightPolicy(Constants.SP_NATURAL);
qq_GridField12.setWidthPolicy(Constants.SP_NATURAL);
qq_GridField12.setBackground(null);
}
public GridField getqq_GridField12() {
if (qq_GridField12 == null) {
qq_GridField12 = CompoundFieldFactory.newGridField("qq_GridField12", true);
setqq_GridField12Properties();
qq_GridField12.setMinimumSize(new Dimension(434, 682));
GridBagConstraints qq_gbc = new GridBagConstraints();
qq_gbc.gridx = 0; // Column 1
qq_gbc.gridy = 0; // Row 1
qq_gbc.weightx = 0;
qq_gbc.weighty = 0;
qq_gbc.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_GridField12.add( getqq_BooleanDomainLbl(), qq_gbc );
GridBagConstraints qq_gbc1 = new GridBagConstraints();
qq_gbc1.gridx = 1; // Column 2
qq_gbc1.gridy = 0; // Row 1
qq_gbc1.weightx = 0;
qq_gbc1.weighty = 0;
qq_gbc1.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc1.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc1.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_GridField12.add( getqq_aBooleanDomain(), qq_gbc1 );
GridBagConstraints qq_gbc2 = new GridBagConstraints();
qq_gbc2.gridx = 0; // Column 1
qq_gbc2.gridy = 1; // Row 2
qq_gbc2.weightx = 0;
qq_gbc2.weighty = 0;
qq_gbc2.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc2.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc2.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_GridField12.add( getqq_BooleanDataLbl(), qq_gbc2 );
GridBagConstraints qq_gbc3 = new GridBagConstraints();
qq_gbc3.gridx = 1; // Column 2
qq_gbc3.gridy = 1; // Row 2
qq_gbc3.weightx = 0;
qq_gbc3.weighty = 0;
qq_gbc3.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc3.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc3.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_GridField12.add( getqq_aBooleanData(), qq_gbc3 );
GridBagConstraints qq_gbc4 = new GridBagConstraints();
qq_gbc4.gridx = 0; // Column 1
qq_gbc4.gridy = 2; // Row 3
qq_gbc4.weightx = 0;
qq_gbc4.weighty = 0;
qq_gbc4.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc4.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc4.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_GridField12.add( getqq_DateTimeDomainLbl(), qq_gbc4 );
GridBagConstraints qq_gbc5 = new GridBagConstraints();
qq_gbc5.gridx = 1; // Column 2
qq_gbc5.gridy = 2; // Row 3
qq_gbc5.weightx = 0;
qq_gbc5.weighty = 0;
qq_gbc5.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc5.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc5.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_GridField12.add( getqq_aDateTimeDomain(), qq_gbc5 );
GridBagConstraints qq_gbc6 = new GridBagConstraints();
qq_gbc6.gridx = 0; // Column 1
qq_gbc6.gridy = 3; // Row 4
qq_gbc6.weightx = 0;
qq_gbc6.weighty = 0;
qq_gbc6.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc6.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc6.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_GridField12.add( getqq_DateTimeDataLbl(), qq_gbc6 );
GridBagConstraints qq_gbc7 = new GridBagConstraints();
qq_gbc7.gridx = 1; // Column 2
qq_gbc7.gridy = 3; // Row 4
qq_gbc7.weightx = 0;
qq_gbc7.weighty = 0;
qq_gbc7.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc7.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc7.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_GridField12.add( getqq_aNotherDate(), qq_gbc7 );
GridBagConstraints qq_gbc8 = new GridBagConstraints();
qq_gbc8.gridx = 0; // Column 1
qq_gbc8.gridy = 4; // Row 5
qq_gbc8.weightx = 0;
qq_gbc8.weighty = 0;
qq_gbc8.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc8.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc8.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_GridField12.add( getqq_DouibleDomainLbl(), qq_gbc8 );
GridBagConstraints qq_gbc9 = new GridBagConstraints();
qq_gbc9.gridx = 1; // Column 2
qq_gbc9.gridy = 4; // Row 5
qq_gbc9.weightx = 0;
qq_gbc9.weighty = 0;
qq_gbc9.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc9.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc9.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_GridField12.add( getqq_aDoubleDomain(), qq_gbc9 );
GridBagConstraints qq_gbc10 = new GridBagConstraints();
qq_gbc10.gridx = 0; // Column 1
qq_gbc10.gridy = 5; // Row 6
qq_gbc10.weightx = 0;
qq_gbc10.weighty = 0;
qq_gbc10.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc10.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc10.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_GridField12.add( getqq_DoubleDataLbl(), qq_gbc10 );
GridBagConstraints qq_gbc11 = new GridBagConstraints();
qq_gbc11.gridx = 1; // Column 2
qq_gbc11.gridy = 5; // Row 6
qq_gbc11.weightx = 0;
qq_gbc11.weighty = 0;
qq_gbc11.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc11.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc11.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_GridField12.add( getqq_aDouble(), qq_gbc11 );
GridBagConstraints qq_gbc12 = new GridBagConstraints();
qq_gbc12.gridx = 0; // Column 1
qq_gbc12.gridy = 6; // Row 7
qq_gbc12.weightx = 0;
qq_gbc12.weighty = 0;
qq_gbc12.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc12.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc12.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_GridField12.add( getqq_ImageDomainLbl(), qq_gbc12 );
GridBagConstraints qq_gbc13 = new GridBagConstraints();
qq_gbc13.gridx = 1; // Column 2
qq_gbc13.gridy = 6; // Row 7
qq_gbc13.weightx = 0;
qq_gbc13.weighty = 0;
qq_gbc13.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc13.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc13.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_GridField12.add( getqq_aImageDomain(), qq_gbc13 );
GridBagConstraints qq_gbc14 = new GridBagConstraints();
qq_gbc14.gridx = 0; // Column 1
qq_gbc14.gridy = 7; // Row 8
qq_gbc14.weightx = 0;
qq_gbc14.weighty = 0;
qq_gbc14.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc14.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc14.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_GridField12.add( getqq_IntegerDomainLbl(), qq_gbc14 );
GridBagConstraints qq_gbc15 = new GridBagConstraints();
qq_gbc15.gridx = 1; // Column 2
qq_gbc15.gridy = 7; // Row 8
qq_gbc15.weightx = 0;
qq_gbc15.weighty = 0;
qq_gbc15.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc15.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc15.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_GridField12.add( getqq_aIntegerDomain(), qq_gbc15 );
GridBagConstraints qq_gbc16 = new GridBagConstraints();
qq_gbc16.gridx = 0; // Column 1
qq_gbc16.gridy = 8; // Row 9
qq_gbc16.weightx = 0;
qq_gbc16.weighty = 0;
qq_gbc16.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc16.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc16.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_GridField12.add( getqq_IntegerDataLbl(), qq_gbc16 );
GridBagConstraints qq_gbc17 = new GridBagConstraints();
qq_gbc17.gridx = 1; // Column 2
qq_gbc17.gridy = 8; // Row 9
qq_gbc17.weightx = 0;
qq_gbc17.weighty = 0;
qq_gbc17.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc17.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc17.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_GridField12.add( getqq_aInteger(), qq_gbc17 );
GridBagConstraints qq_gbc18 = new GridBagConstraints();
qq_gbc18.gridx = 0; // Column 1
qq_gbc18.gridy = 9; // Row 10
qq_gbc18.weightx = 0;
qq_gbc18.weighty = 0;
qq_gbc18.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc18.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc18.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_GridField12.add( getqq_IntegerNullableLbl(), qq_gbc18 );
GridBagConstraints qq_gbc19 = new GridBagConstraints();
qq_gbc19.gridx = 1; // Column 2
qq_gbc19.gridy = 9; // Row 10
qq_gbc19.weightx = 0;
qq_gbc19.weighty = 0;
qq_gbc19.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc19.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc19.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_GridField12.add( getqq_aIntegerNullable(), qq_gbc19 );
GridBagConstraints qq_gbc20 = new GridBagConstraints();
qq_gbc20.gridx = 0; // Column 1
qq_gbc20.gridy = 10; // Row 11
qq_gbc20.weightx = 0;
qq_gbc20.weighty = 0;
qq_gbc20.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc20.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc20.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_GridField12.add( getqq_LongTextDomainLbl(), qq_gbc20 );
GridBagConstraints qq_gbc21 = new GridBagConstraints();
qq_gbc21.gridx = 1; // Column 2
qq_gbc21.gridy = 10; // Row 11
qq_gbc21.weightx = 0;
qq_gbc21.weighty = 0;
qq_gbc21.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc21.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc21.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_GridField12.add( getqq_aLongTextDomain_sp(), qq_gbc21 );
GridBagConstraints qq_gbc22 = new GridBagConstraints();
qq_gbc22.gridx = 0; // Column 1
qq_gbc22.gridy = 11; // Row 12
qq_gbc22.weightx = 0;
qq_gbc22.weighty = 0;
qq_gbc22.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc22.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc22.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_GridField12.add( getqq_MoneyDomainLbl(), qq_gbc22 );
GridBagConstraints qq_gbc23 = new GridBagConstraints();
qq_gbc23.gridx = 1; // Column 2
qq_gbc23.gridy = 11; // Row 12
qq_gbc23.weightx = 0;
qq_gbc23.weighty = 0;
qq_gbc23.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc23.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc23.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_GridField12.add( getqq_aMoneyDomain(), qq_gbc23 );
GridBagConstraints qq_gbc24 = new GridBagConstraints();
qq_gbc24.gridx = 0; // Column 1
qq_gbc24.gridy = 12; // Row 13
qq_gbc24.weightx = 0;
qq_gbc24.weighty = 0;
qq_gbc24.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc24.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc24.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_GridField12.add( getqq_TextDomainLbl(), qq_gbc24 );
GridBagConstraints qq_gbc25 = new GridBagConstraints();
qq_gbc25.gridx = 1; // Column 2
qq_gbc25.gridy = 12; // Row 13
qq_gbc25.weightx = 0;
qq_gbc25.weighty = 0;
qq_gbc25.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc25.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc25.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_GridField12.add( getqq_aTextDomain(), qq_gbc25 );
}
return qq_GridField12;
}
public void setqq_GridField12(GridField value) {
GridField oldValue = qq_GridField12;
qq_GridField12 = value;
this.qq_Listeners.firePropertyChange("qq_GridField12", 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_GridField12() );
Form.add( getqq_aPicture() );
}
return Form;
}
public void setForm(JPanel value) {
JPanel oldValue = Form;
Form = value;
this.qq_Listeners.firePropertyChange("Form", oldValue, value);
}
/**
* Gets the system close policy
*
* The SystemClosePolicy property determines how a window responds to user attempts to close it by using the native window system through the window close box or a window system menu command.
* SystemClosePolicy responds to window closure attempts according to the following parameters:
* <li>Constants.SC_DISABLED Does not allow window closure through window system.</li>
* <li>Constants.SC_ENABLEDNOFINALIZE Window can be closed, but the contents are not verified, guaranteeing that the window will close (for example, the user clicks the Cancel button).</li>
* <li>Constants.SC_ENABLEDFINALIZE Posts the RequestFinalize method on the window, with a reason code of zero.</li>
* <li>Constants.SC_ENABLEDSHUTDOWN Posts Shutdown event to window�s task and to all tasks started by that task. This is the default value.</li>
*/
public int getSystemClosePolicy() {
return qq_SystemClosePolicy;
}
/**
* Sets the system close policy
*
* The SystemClosePolicy property determines how a window responds to user attempts to close it by using the native window system through the window close box or a window system menu command.
* SystemClosePolicy responds to window closure attempts according to the following parameters:
* <li>Constants.SC_DISABLED Does not allow window closure through window system.</li>
* <li>Constants.SC_ENABLEDNOFINALIZE Window can be closed, but the contents are not verified, guaranteeing that the window will close (for example, the user clicks the Cancel button).</li>
* <li>Constants.SC_ENABLEDFINALIZE Posts the RequestFinalize method on the window, with a reason code of zero.</li>
* <li>Constants.SC_ENABLEDSHUTDOWN Posts Shutdown event to window�s task and to all tasks started by that task. This is the default value.</li>
*/
public void setSystemClosePolicy(int policy) {
this.qq_SystemClosePolicy = policy;
if (policy == Constants.SC_DISABLED) {
this.addComponentListener(new CloseHideAdaptor(this));
} else {
for (ComponentListener cl : this.getComponentListeners()) {
if (cl instanceof CloseHideAdaptor) {
this.removeComponentListener(cl);
break;
}
}
}
}
/**
* Gets the initial position policy
*
* The InitialPositionPolicy property sets the position of a main window when it is first displayed, relative to a primary window or the screen.
* You use the InitialPositionPolicy property in conjunction with the InitialX, InitialY properties.
* InitialPositionPolicy sets the position of a window according to the following values:
* <li>Constants.PP_SYSTEMDEFAULT Accepts the default window system placement specification.</li>
* <li>Constants.PP_PRIMARYCENTERED Centers the window relative to the window specified as the PrimaryWindow property.</li>
* <li>Constants.PP_PRIMARYRELATIVE Positions the window relative to the primary window, using the PrimaryWindow, InitialX and InitialY attributes.</li>
* <li>Constants.PP_SCREENCENTERED Centers the window relative to the screen.</li>
* <li>Constants.PP_SCREENRELATIVE Positions the window relative to the screen, using the InitialX and InitialY properties.</li>
*/
public int getInitialPositionPolicy() {
return qq_initialPositionPolicy;
}
/**
* Sets the initial position policy
*
* The InitialPositionPolicy property sets the position of a main window when it is first displayed, relative to a primary window or the screen.
* You use the InitialPositionPolicy property in conjunction with the InitialX, InitialY properties.
* InitialPositionPolicy sets the position of a window according to the following values:
* <li>Constants.PP_SYSTEMDEFAULT Accepts the default window system placement specification.</li>
* <li>Constants.PP_PRIMARYCENTERED Centers the window relative to the window specified as the PrimaryWindow property.</li>
* <li>Constants.PP_PRIMARYRELATIVE Positions the window relative to the primary window, using the PrimaryWindow, InitialX and InitialY attributes.</li>
* <li>Constants.PP_SCREENCENTERED Centers the window relative to the screen.</li>
* <li>Constants.PP_SCREENRELATIVE Positions the window relative to the screen, using the InitialX and InitialY properties.</li>
*/
public void setInitialPositionPolicy(int policy) {
this.qq_initialPositionPolicy = policy;
}
/**
* Gets the primary window
*
* The primary window property designates a window, known as a primary window, to serve as an initial position reference for the current window.
* When a main window first realizes itself through the Open method on the UserWindow, it assumes a position according to the InitialPositionPolicy attribute.
* When the InitialPositionPolicy property is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_PRIMARYCENTERED (centered on the primary window),
* the window realizes itself in a position relative to the designated primary window.<p>
* <p>
* To take a position relative to the primary window, a window uses the PrimaryWindow attribute in conjunction with the InitialX and InitialY properties, which specify the window�s horizontal and vertical coordinates.
*/
public Window getPrimaryWindow() {
return this.primaryWindow;
}
/**
* Sets the primary window
*
* The primary window property designates a window, known as a primary window, to serve as an initial position reference for the current window.
* When a main window first realizes itself through the Open method on the UserWindow, it assumes a position according to the InitialPositionPolicy attribute.
* When the InitialPositionPolicy property is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_PRIMARYCENTERED (centered on the primary window),
* the window realizes itself in a position relative to the designated primary window.<p>
* <p>
* To take a position relative to the primary window, a window uses the PrimaryWindow attribute in conjunction with the InitialX and InitialY properties, which specify the window�s horizontal and vertical coordinates.
*/
public void setPrimaryWindow(Window value) {
this.primaryWindow = value;
}
/**
* Gets the InitialX value
*
* The InitialX property (integer) is the window�s initial horizontal screen position, relative to a primary window or the screen. It is specified in mils.
* InitialX applies only to main windows and only when a window�s InitialPositionPolicy attribute is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_SCREENRELATIVE (relative to the screen).
* InitialX, and its corollary, InitialY, work in conjunction with the PrimaryWindow and InitialPositionPolicy attributes to determine the position of a main window when it is first realized.
*/
public int getInitialX() {
return initialX;
}
/**
* Sets the InitialX value
*
* The InitialX property (integer) is the window�s initial horizontal screen position, relative to a primary window or the screen. It is specified in mils.
* InitialX applies only to main windows and only when a window�s InitialPositionPolicy attribute is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_SCREENRELATIVE (relative to the screen).
* InitialX, and its corollary, InitialY, work in conjunction with the PrimaryWindow and InitialPositionPolicy attributes to determine the position of a main window when it is first realized.
*/
public void setInitialX(int value) {
this.initialX = value;
}
/**
* Gets the InitialY value
*
* The InitialY property (integer) is the window�s initial vertical screen position, relative to a primary window or the screen. It is specified in mils.
* InitialY applies only to main windows and only when a window�s InitialPositionPolicy attribute is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_SCREENRELATIVE (relative to the screen).
* InitialY, and its corollary, InitialX, work in conjunction with the PrimaryWindow and InitialPositionPolicy attributes to determine the position of a main window when it is first realized.
*/
public int getInitialY() {
return initialY;
}
/**
* Sets the InitialY value
*
* The InitialY property (integer) is the window�s initial vertical screen position, relative to a primary window or the screen. It is specified in mils.
* InitialY applies only to main windows and only when a window�s InitialPositionPolicy attribute is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_SCREENRELATIVE (relative to the screen).
* InitialY, and its corollary, InitialX, work in conjunction with the PrimaryWindow and InitialPositionPolicy attributes to determine the position of a main window when it is first realized.
*/
public void setInitialY(int value) {
this.initialY = value;
}
/**
* Gets the default message set number for the window and its widgets.
*/
public int getSetNum() {
return this.qq_defaultSet;
}
/**
* Sets the default message set number for the window and its widgets.
*/
public void setSetNum(int value) {
this.qq_defaultSet = value;
}
/**
* Gets the message set number for the message number of the window's title.
*/
public int getTitleSetNum() {
return this.qq_msgSet;
}
/**
* Sets the message set number for the message number of the window's title.
*/
public void setTitleSetNum(int value) {
this.qq_msgSet = value;
}
/**
* Gets the message number for the message number of the window's title.
*/
public int getTitleMsgNum() {
return this.qq_msgNumber;
}
/**
* Sets the message number for the message number of the window's title.
*/
public void setTitleMsgNum(int value) {
this.qq_msgNumber = value;
}
/**
* Initialise the window and all its children.
*/
protected void initialize() {
if (this.Form == null) {
this.setName( "main" );
this.setTitle( "" );
this.setSystemClosePolicy(Constants.SC_ENABLEDSHUTDOWN);
if (this.getContentPane() != this.getForm()) {
this.setContentPane(getForm());
}
this.qq_setupWindowUsage();
this.setResizable( false );
this.setAlwaysOnTop(false);
UserWindow.setIconizeEnabled(this, true);
WindowManager.addWindowListener(this);
this.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
this.setUsage(DisplayProject.Constants.WU_UPDATE);
UIutils.processGUIActions();
this.pack();
this.setInitialX(0);
this.setInitialY(0);
this.setInitialPositionPolicy(Constants.PP_SYSTEMDEFAULT);
}
}
// ----------------
// Window usage
//-----------------
protected WindowUsageMap usage = new WindowUsageMap();
public int getUsage() {
return this.usage.getUsage();
}
public WindowUsageMap getUsageMap() {
return this.usage;
}
/**
* Sets the window usage
*
* The Usage property sets the state for all a window�s child widgets at once, providing collective widget state changes on a predefined basis. A widget�s state determines how the widget reacts to mouse actions and how it displays itself. A window�s Usage property provides a convenient way to control the states of a group of widgets in the context of their parent window. With the Usage attribute, you can synchronize widget states to conform to a pattern you establish for the window.
* The Usage attribute accepts the following values:
* <li>Constants.WU_EDIT Edit usage: widgets themselves are editable, but not underlying data.</li>
* <li>Constants.WU_QUERY Query only usage: widget data is editable, but not widgets themselves.</li>
* <li>Constants.WU_UPDATE Update usage: mouse actions and keyboard input accepted. Widgets themselves are changeable. This is the default.</li>
* <li>Constants.WU_USER1 A user-defined usage. Default values same as WU_UPDATE.</li>
* <li>Constants.WU_USER2 A user-defined usage. Default values same as WU_UPDATE.</li>
* <li>Constants.WU_USER3 A user-defined usage. Default values same as WU_UPDATE.</li>
* <li>Constants.WU_VIEW View-only usage: no keyboard input is accepted. Widget posts Click events for mouse clicks.</li>
*/
public void setUsage(int usage) {
this.usage.setUsage(usage);
}
public void qq_setupWindowUsage() {
this.usage = new WindowUsageMap();
this.usage.add(getqq_aPicture(), Constants.FS_INVISIBLE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_GridField12(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aBooleanDomain(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aDateTimeDomain(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aDoubleDomain(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aImageDomain(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aIntegerDomain(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aLongTextDomain(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aMoneyDomain(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aTextDomain(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aNotherDate(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aInteger(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aIntegerNullable(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aDouble(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_BooleanDomainLbl(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_aBooleanData(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_BooleanDataLbl(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_DateTimeDomainLbl(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_DateTimeDataLbl(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_DouibleDomainLbl(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_DoubleDataLbl(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_ImageDomainLbl(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_IntegerDomainLbl(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_IntegerDataLbl(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_IntegerNullableLbl(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_LongTextDomainLbl(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_MoneyDomainLbl(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_TextDomainLbl(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
}
// </editor-fold>
// -----------
// Main method
// -----------
public static void main( String[] args ) {
FrameworkUtils.setCmdLineArgs(args);
AppletConnectionInfo client = null;
try {
// Install our own focus manager. MUST be done prior to setting the
// UIManager, otherwise you'll run into issues like things have the wrong focus.
KeyboardFocusManager.setCurrentKeyboardFocusManager(new ForteKeyboardFocusManager());
UIManager.setLookAndFeel(new Win32LookAndFeel());
client = UserWindow.postAPPLETStarted();
Main main_start = new Main();
main_start.display();
UserWindow.postAPPLETStopped(client);
System.exit(0);
} catch (Throwable e) {
ErrorMgr.showErrors(null, "Unhandled exception", e);
UserWindow.postAPPLETStopped(client);
System.exit(0);
}
}
} // end class main
// c Pass 2 Conversion Time: 2184 milliseconds