package WindowTester;
import DisplayProject.ArrayColumn;
import DisplayProject.ArrayFieldModel;
import DisplayProject.CloseHideAdaptor;
import DisplayProject.Constants;
import DisplayProject.CursorMgr;
import DisplayProject.DataField;
import DisplayProject.GridField;
import DisplayProject.RadioList;
import DisplayProject.RadioListModel;
import DisplayProject.TableJButton;
import DisplayProject.UDSWindow;
import DisplayProject.UIutils;
import DisplayProject.WindowManager;
import DisplayProject.WindowUsageMap;
import DisplayProject.actions.DateTemplate;
import DisplayProject.actions.FrameColor;
import DisplayProject.actions.HeightPolicy;
import DisplayProject.actions.Name;
import DisplayProject.actions.TableRow;
import DisplayProject.actions.UserWindow;
import DisplayProject.actions.WidgetState;
import DisplayProject.actions.WidthPolicy;
import DisplayProject.binding.BindingManager;
import DisplayProject.binding.beans.ExtendedPropertyChangeSupport;
import DisplayProject.binding.beans.Observable;
import DisplayProject.binding.list.SelectionInList;
import DisplayProject.controls.ArrayField;
import DisplayProject.controls.DropList;
import DisplayProject.controls.TextGraphic;
import DisplayProject.events.ClientEventManager;
import DisplayProject.factory.CompoundFieldFactory;
import DisplayProject.factory.DataFieldFactory;
import DisplayProject.factory.DropFillinFactory;
import DisplayProject.factory.GraphicFactory;
import DisplayProject.factory.ListFieldFactory;
import DisplayProject.factory.PushButtonFactory;
import DisplayProject.factory.TableFactory;
import DisplayProject.factory.ToggleFieldFactory;
import DisplayProject.plaf.Win32LookAndFeel;
import DisplayProject.table.ArrayFieldCellHelper;
import DisplayProject.table.ButtonCellEditor;
import DisplayProject.table.ButtonCellRenderer;
import DisplayProject.table.CheckBoxCellEditor;
import DisplayProject.table.CheckBoxCellRenderer;
import DisplayProject.table.ComboBoxCellRenderer;
import DisplayProject.table.FormattedCellEditor;
import DisplayProject.table.FormattedCellRenderer;
import DisplayProject.table.RadioListCellEditor;
import DisplayProject.table.RadioListCellRenderer;
import Framework.Array_Of_ListElement;
import Framework.DataValue;
import Framework.DateTimeData;
import Framework.ErrorMgr;
import Framework.EventHandle;
import Framework.EventManager;
import Framework.EventRegistration;
import Framework.EventRegistrationCallback;
import Framework.File;
import Framework.ForteKeyboardFocusManager;
import Framework.FrameworkUtils;
import Framework.ListElement;
import Framework.ParameterHolder;
import Framework.RuntimeProperties;
import Framework.Task;
import Framework.TextData;
import Framework.UsageException;
import WindowTester.Array_Of_ValidatingClass;
import WindowTester.MoneyDomain;
import WindowTester.ValidatingClass;
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.Class;
import java.lang.String;
import java.lang.reflect.Field;
import java.net.MalformedURLException;
import java.net.URL;
import javax.help.CSH;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.SwingConstants;
import javax.swing.ToolTipManager;
import javax.swing.UIManager;
import org.apache.log4j.Logger;
/**
* ValidatingWindow<p>
* <p>
* @author Generated from Forte
* @since 19-Nov-2008
*/
@RuntimeProperties(isDistributed=false, isAnchored=false, isShared=false, isTransactional=false)
@UDSWindow()
@SuppressWarnings("serial")
public class ValidatingWindow
extends JFrame
implements Serializable, Observable
{
// ----------
// Attributes
// ----------
protected File DefaultHelpFile;
protected BindingManager bindingManager = null;
public PropertyChangeSupport qq_Listeners = new ExtendedPropertyChangeSupport(this, true);
private double decimal1;
private MoneyDomain decimal2;
private double resultDouble;
private MoneyDomain resultMoney;
private int gender;
private String aheight;
private Array_Of_ValidatingClass<ValidatingClass> arrayTester;
private int rowAtStart;
private int rowAtEnd;
// ------------
// Constructors
// ------------
public ValidatingWindow() {
// Explicitly call the superclass constructor to prevent the implicit call
super();
this.initialize();
this.setArrayTester(new Array_Of_ValidatingClass<ValidatingClass>());
this.setResultMoney(new MoneyDomain());
this.setDecimal2(new MoneyDomain());
}
// ----------------------
// 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 setDecimal1(double decimal1) {
double oldValue = this.decimal1;
this.decimal1 = decimal1;
this.qq_Listeners.firePropertyChange("decimal1", new Double(oldValue), new Double(this.decimal1));
}
public double getDecimal1() {
return this.decimal1;
}
public void setDecimal2(MoneyDomain decimal2) {
MoneyDomain oldValue = this.decimal2;
this.decimal2 = decimal2;
this.qq_Listeners.firePropertyChange("decimal2", oldValue, this.decimal2);
}
public MoneyDomain getDecimal2() {
return this.decimal2;
}
public void setResultDouble(double resultDouble) {
double oldValue = this.resultDouble;
this.resultDouble = resultDouble;
this.qq_Listeners.firePropertyChange("resultDouble", new Double(oldValue), new Double(this.resultDouble));
}
public double getResultDouble() {
return this.resultDouble;
}
public void setResultMoney(MoneyDomain resultMoney) {
MoneyDomain oldValue = this.resultMoney;
this.resultMoney = resultMoney;
this.qq_Listeners.firePropertyChange("resultMoney", oldValue, this.resultMoney);
}
public MoneyDomain getResultMoney() {
return this.resultMoney;
}
public void setGender(int gender) {
int oldValue = this.gender;
this.gender = gender;
this.qq_Listeners.firePropertyChange("gender", oldValue, this.gender);
}
public int getGender() {
return this.gender;
}
public void setAheight(String aheight) {
String oldValue = this.aheight;
this.aheight = aheight;
this.qq_Listeners.firePropertyChange("aheight", oldValue, this.aheight);
}
public String getAheight() {
return this.aheight;
}
public void setArrayTester(Array_Of_ValidatingClass<ValidatingClass> arrayTester) {
Array_Of_ValidatingClass<ValidatingClass> oldValue = this.arrayTester;
this.arrayTester = arrayTester;
this.qq_Listeners.firePropertyChange("arrayTester", oldValue, this.arrayTester);
}
public Array_Of_ValidatingClass<ValidatingClass> getArrayTester() {
return this.arrayTester;
}
public void setRowAtStart(int rowAtStart) {
int oldValue = this.rowAtStart;
this.rowAtStart = rowAtStart;
this.qq_Listeners.firePropertyChange("rowAtStart", oldValue, this.rowAtStart);
}
public int getRowAtStart() {
return this.rowAtStart;
}
public void setRowAtEnd(int rowAtEnd) {
int oldValue = this.rowAtEnd;
this.rowAtEnd = rowAtEnd;
this.qq_Listeners.firePropertyChange("rowAtEnd", oldValue, this.rowAtEnd);
}
public int getRowAtEnd() {
return this.rowAtEnd;
}
// -------
// 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);
}
/**
* dataFieldEventWatcher (Translation of Forte Event Handler)<p>
* <p>
* @param pDataField Type: DataField
* @return EventRegistration
*/
public EventRegistration dataFieldEventWatcher(DataField pDataField) {
final ParameterHolder qq_pDataField = new ParameterHolder(pDataField);
EventRegistration qq_resultRegistration = new EventRegistration();
// ------------------------
// pDataField.AfterDeselect
// ------------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
(DataField)qq_pDataField.getObject(), "AfterDeselect",
new EventRegistrationCallback("DataField_AfterDeselect_DataFieldqq_pDataFieldgetObject") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ValidatingWindow.this.dumpFieldState((DataField)qq_pDataField.getObject(), "AfterDeselect");
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ------------------------------
// pDataField.AfterFirstKeystroke
// ------------------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
(DataField)qq_pDataField.getObject(), "AfterFirstKeystroke",
new EventRegistrationCallback("DataField_AfterFirstKeystroke_DataFieldqq_pDataFieldgetObject") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ValidatingWindow.this.dumpFieldState((DataField)qq_pDataField.getObject(), "AfterFirstKeystroke");
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// -------------------------
// pDataField.AfterFocusGain
// -------------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
(DataField)qq_pDataField.getObject(), "AfterFocusGain",
new EventRegistrationCallback("DataField_AfterFocusGain_DataFieldqq_pDataFieldgetObject") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ValidatingWindow.this.dumpFieldState((DataField)qq_pDataField.getObject(), "AfterFocusGain");
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ----------------------
// pDataField.AfterSelect
// ----------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
(DataField)qq_pDataField.getObject(), "AfterSelect",
new EventRegistrationCallback("DataField_AfterSelect_DataFieldqq_pDataFieldgetObject") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ValidatingWindow.this.dumpFieldState((DataField)qq_pDataField.getObject(), "AfterSelect");
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ---------------------------
// pDataField.AfterValueChange
// ---------------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
(DataField)qq_pDataField.getObject(), "AfterValueChange",
new EventRegistrationCallback("DataField_AfterValueChange_DataFieldqq_pDataFieldgetObject") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ValidatingWindow.this.dumpFieldState((DataField)qq_pDataField.getObject(), "AfterValueChange");
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// --------------------------
// pDataField.BeforeFocusLoss
// --------------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
(DataField)qq_pDataField.getObject(), "BeforeFocusLoss",
new EventRegistrationCallback("DataField_BeforeFocusLoss_DataFieldqq_pDataFieldgetObject") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ValidatingWindow.this.dumpFieldState((DataField)qq_pDataField.getObject(), "BeforeFocusLoss");
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ----------------
// pDataField.Click
// ----------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
(DataField)qq_pDataField.getObject(), "Click",
new EventRegistrationCallback("DataField_Click_DataFieldqq_pDataFieldgetObject") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ValidatingWindow.this.dumpFieldState((DataField)qq_pDataField.getObject(), "Click");
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ----------------------
// pDataField.ClickMiddle
// ----------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
(DataField)qq_pDataField.getObject(), "ClickMiddle",
new EventRegistrationCallback("DataField_ClickMiddle_DataFieldqq_pDataFieldgetObject") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ValidatingWindow.this.dumpFieldState((DataField)qq_pDataField.getObject(), "ClickMiddle");
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ---------------------
// pDataField.ClickOuter
// ---------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
(DataField)qq_pDataField.getObject(), "ClickOuter",
new EventRegistrationCallback("DataField_ClickOuter_DataFieldqq_pDataFieldgetObject") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ValidatingWindow.this.dumpFieldState((DataField)qq_pDataField.getObject(), "ClickOuter");
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ----------------------
// pDataField.DoubleClick
// ----------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
(DataField)qq_pDataField.getObject(), "DoubleClick",
new EventRegistrationCallback("DataField_DoubleClick_DataFieldqq_pDataFieldgetObject") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ValidatingWindow.this.dumpFieldState((DataField)qq_pDataField.getObject(), "DoubleClick");
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ---------------------
// pDataField.MouseEnter
// ---------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
(DataField)qq_pDataField.getObject(), "MouseEnter",
new EventRegistrationCallback("DataField_MouseEnter_DataFieldqq_pDataFieldgetObject") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ValidatingWindow.this.dumpFieldState((DataField)qq_pDataField.getObject(), "MouseEnter");
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ---------------------
// pDataField.MouseLeave
// ---------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
(DataField)qq_pDataField.getObject(), "MouseLeave",
new EventRegistrationCallback("DataField_MouseLeave_DataFieldqq_pDataFieldgetObject") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ValidatingWindow.this.dumpFieldState((DataField)qq_pDataField.getObject(), "MouseLeave");
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
return qq_resultRegistration;
}
/**
* display<p>
* <p>
*/
public void display() {
UserWindow.open(this);
// ----------
// Event Loop
// ----------
EventManager.startEventLoop();
try {
this.tableEventWatcher();
this.invalidatingHandler();
this.dataFieldEventWatcher(this.getqq_ArrayTesterArray_DateField());
this.dataFieldEventWatcher(this.getqq_ArrayTesterArray_InvalidColumn());
this.dataFieldEventWatcher(this.getqq_ArrayTesterArray_ValidatingField());
EventRegistration DataField_AfterValueChange_getqq_decimal1 = ClientEventManager.register( this.getqq_decimal1(), "AfterValueChange" );
EventRegistration DataField_AfterValueChange_getqq_decimal2 = ClientEventManager.register( this.getqq_decimal2(), "AfterValueChange" );
EventRegistration DataField_AfterValueChange_getqq_ArrayTesterArray_ValidatingField = ClientEventManager.register( this.getqq_ArrayTesterArray_ValidatingField(), "AfterValueChange" );
EventRegistration PushButton_Click_getqq_ArrayTesterArray_ValidateButton = ClientEventManager.register( this.getqq_ArrayTesterArray_ValidateButton(), "Click" );
EventRegistration TaskHandle_Shutdown_langThreadcurrentThread = ClientEventManager.register( Thread.currentThread(), "Shutdown" );
while (true) {
UIutils.processGUIActions();
EventHandle qq_currentEvent = EventManager.waitForEvent();
if (qq_currentEvent == null)
break;
// ---------------------------
// <decimal1>.AfterValueChange
// ---------------------------
if (qq_currentEvent.isEvent(DataField_AfterValueChange_getqq_decimal1)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
this.getResultMoney().setValue(this.getDecimal1()+this.getDecimal2().doubleValue());
this.setResultDouble(this.getDecimal1()+this.getDecimal2().doubleValue());
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ---------------------------
// <decimal2>.AfterValueChange
// ---------------------------
else if (qq_currentEvent.isEvent(DataField_AfterValueChange_getqq_decimal2)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
this.getResultMoney().setValue(this.getDecimal1()+this.getDecimal2().doubleValue());
this.setResultDouble(this.getDecimal1()+this.getDecimal2().doubleValue());
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// -------------------------------------------------
// <ArrayTester[*].ValidatingField>.AfterValueChange
// -------------------------------------------------
else if (qq_currentEvent.isEvent(DataField_AfterValueChange_getqq_ArrayTesterArray_ValidatingField)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
int row = TableRow.get(this.getqq_ArrayTester());
this.setRowAtStart(row);
if (row > 0) {
// Simulate some complex validation
Task.delay(1000);
TextData aField = new TextData(this.getArrayTester().get(row-1).getValidatingField());
if (aField.getActualSize() == 0 || !("*".equals(aField.copyRange(aField.getActualSize()-1).getValue()))) {
WindowManager.messageDialog(this, "Must end with a *", 1, 50);
UIutils.purgeEvents();
}
this.setRowAtEnd(TableRow.get(this.getqq_ArrayTester()));
}
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ------------------------------------------
// self.<ArrayTester[*].ValidateButton>.Click
// ------------------------------------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_ArrayTesterArray_ValidateButton)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
this.setRowAtStart(TableRow.get(this.getqq_ArrayTester()));
this.setRowAtEnd(TableRow.get(this.getqq_ArrayTester()));
// ================ 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( DataField_AfterValueChange_getqq_decimal1 );
EventManager.deregister( DataField_AfterValueChange_getqq_decimal2 );
EventManager.deregister( DataField_AfterValueChange_getqq_ArrayTesterArray_ValidatingField );
EventManager.deregister( PushButton_Click_getqq_ArrayTesterArray_ValidateButton );
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);
}
}
/**
* dumpFieldState<p>
* <p>
* @param pField Type: DataField
* @param pEvent Type: String
*/
public void dumpFieldState(DataField pField, String pEvent) {
TextData aMsg = new TextData();
Class<?> aClass = ValidatingClass.class;
TextData aValue = new TextData(Name.getWithCharacterField(pField).getValue());
if (aValue.moveToLastChar(".")) {
aValue = aValue.copyRange(aValue.getOffset()+1);
}
Field anAttr = FrameworkUtils.getField(aClass, aValue.getValue());
aMsg.concat("DataField:").concat(pEvent).concat(" (").concat(Name.getWithCharacterField(pField)).concat(") ");
if (anAttr != null) {
int row = TableRow.get(this.getqq_ArrayTester());
if (row > 0) {
ValidatingClass aRow = this.getArrayTester().get(row-1);
aMsg.concat("row:").concat(row).concat(" ").concat((DataValue)FrameworkUtils.getFieldValue(anAttr, aRow));
}
}
Logger.getLogger("task.part.logmgr").info(aMsg);
}
/**
* dumpTableState<p>
* <p>
* @param pEventName Type: String
*/
public void dumpTableState(String pEventName) {
TextData aMsg = new TextData();
int row = TableRow.get(this.getqq_ArrayTester());
aMsg.concat("ArrayField:").concat(pEventName).concat(": row:").concat(row);
if (row > 0) {
ValidatingClass aRow = this.getArrayTester().get(row-1);
aMsg.concat(" ").concat(aRow.toString());
Logger.getLogger("task.part.logmgr").info(aMsg);
}
}
/**
* invalidatingHandler (Translation of Forte Event Handler)<p>
* <p>
* @return EventRegistration
*/
public EventRegistration invalidatingHandler() {
EventRegistration qq_resultRegistration = new EventRegistration();
// -----------------------------------
// <InvalidateInEventHandlerBtn>.click
// -----------------------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_InvalidateInEventHandlerBtn(), "Click",
new EventRegistrationCallback("PushButton_Click_getqq_InvalidateInEventHandlerBtn") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
WidgetState.set(ValidatingWindow.this.getqq_ButtonToInvalidate(), Constants.FS_DISABLED);
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
return qq_resultRegistration;
}
/**
* tableEventWatcher (Translation of Forte Event Handler)<p>
* <p>
* @return EventRegistration
*/
public EventRegistration tableEventWatcher() {
EventRegistration qq_resultRegistration = new EventRegistration();
// ---------------------------
// <ArrayTester>.AfterDeselect
// ---------------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_ArrayTester(), "AfterDeselect",
new EventRegistrationCallback("ArrayField_AfterDeselect_getqq_ArrayTester") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ValidatingWindow.this.dumpTableState("AfterDeselect");
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// --------------------------------
// <ArrayTester>.AfterFieldScrolled
// --------------------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_ArrayTester(), "AfterFieldScrolled",
new EventRegistrationCallback("ArrayField_AfterFieldScrolled_getqq_ArrayTester") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ValidatingWindow.this.dumpTableState("AfterFieldScrolled");
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ----------------------------
// <ArrayTester>.AfterFocusGain
// ----------------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_ArrayTester(), "AfterFocusGain",
new EventRegistrationCallback("ArrayField_AfterFocusGain_getqq_ArrayTester") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ValidatingWindow.this.dumpTableState("AfterFocusGain");
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ----------------------------
// <ArrayTester>.AfterRowAppend
// ----------------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_ArrayTester(), "AfterRowAppend",
new EventRegistrationCallback("ArrayField_AfterRowAppend_getqq_ArrayTester") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ValidatingWindow.this.dumpTableState("AfterRowAppend");
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ---------------------------
// <ArrayTester>.AfterRowEntry
// ---------------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_ArrayTester(), "AfterRowEntry",
new EventRegistrationCallback("ArrayField_AfterRowEntry_getqq_ArrayTester") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ValidatingWindow.this.dumpTableState("AfterRowEntry");
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ---------------------------------
// <ArrayTester>.AfterRowValueChange
// ---------------------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_ArrayTester(), "AfterRowValueChange",
new EventRegistrationCallback("ArrayField_AfterRowValueChange_getqq_ArrayTester") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ValidatingWindow.this.dumpTableState("AfterRowValueChange");
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// -------------------------
// <ArrayTester>.AfterSelect
// -------------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_ArrayTester(), "AfterSelect",
new EventRegistrationCallback("ArrayField_AfterSelect_getqq_ArrayTester") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ValidatingWindow.this.dumpTableState("AfterSelect");
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ------------------------------
// <ArrayTester>.AfterValueChange
// ------------------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_ArrayTester(), "AfterValueChange",
new EventRegistrationCallback("ArrayField_AfterValueChange_getqq_ArrayTester") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ValidatingWindow.this.dumpTableState("AfterValueChange");
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// -----------------------------
// <ArrayTester>.BeforeFocusLoss
// -----------------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_ArrayTester(), "BeforeFocusLoss",
new EventRegistrationCallback("ArrayField_BeforeFocusLoss_getqq_ArrayTester") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ValidatingWindow.this.dumpTableState("BeforeFocusLoss");
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ---------------------------
// <ArrayTester>.BeforeRowExit
// ---------------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_ArrayTester(), "BeforeRowExit",
new EventRegistrationCallback("ArrayField_BeforeRowExit_getqq_ArrayTester") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ValidatingWindow.this.dumpTableState("BeforeRowExit");
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ----------------------
// <ArrayTester>.Traverse
// ----------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_ArrayTester(), "Traverse",
new EventRegistrationCallback("ArrayField_Traverse_getqq_ArrayTester") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
ValidatingWindow.this.dumpTableState("Traverse");
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
return qq_resultRegistration;
}
// ------------------
// Window Definitions
// ------------------
// <editor-fold defaultstate="collapsed" desc="Window Definitions">
private int qq_defaultSet = 1;
private int qq_msgNumber = 0;
private int qq_msgSet = 0;
protected Window primaryWindow = null;
protected int initialX;
protected int initialY;
protected int qq_SystemClosePolicy = Constants.SC_ENABLEDSHUTDOWN;
protected int qq_initialPositionPolicy = Constants.PP_SYSTEMDEFAULT;
public ArrayField qq_ArrayTester;
public DataField qq_ArrayTesterArray_DateField;
public DataField qq_ArrayTesterArray_FloatValue;
public DataField qq_ArrayTesterArray_InvalidColumn;
public DataField qq_ArrayTesterArray_ValidatingField;
public DataField qq_ResultDouble;
public DataField qq_ResultMoney;
public DataField qq_RowAtEnd;
public DataField qq_RowAtStart;
public DataField qq_decimal1;
public DataField qq_decimal2;
public DropList qq_ArrayTesterArray_DropValue;
public GridField qq_GridField12;
public GridField qq_GridField13;
public GridField qq_GridField20;
public GridField qq_GridField42;
public GridField qq_GridField43;
public GridField qq_GridField48;
public JButton qq_ButtonToInvalidate;
public JButton qq_InvalidateInEventHandlerBtn;
public JCheckBox qq_ArrayTesterArray_ToggleValue;
public JPanel Form;
public JScrollPane qq_ArrayTester_sp;
public RadioList qq_Aheight;
public RadioList qq_ArrayTesterArray_Gender;
public RadioList qq_Gender;
public TableJButton qq_ArrayTesterArray_ValidateButton;
public TextGraphic qq_RowAtEndLbl;
public TextGraphic qq_RowAtStartLbl;
public TextGraphic qq_TextGraphic15;
public TextGraphic qq_TextGraphic17;
/**
* qq_decimal1: transformed from: qqds_DataField
* TagId=14
* isInherited=FALSE
*/
public DataField getqq_decimal1() {
if (qq_decimal1 == null) {
// Mask type: MK_NONE
qq_decimal1 = DataFieldFactory.newDataField("decimal1", 14, Constants.MK_NONE);
qq_decimal1.setValue(new Double(0.0));
qq_decimal1.setOriginalFormatText(null);
qq_decimal1.setHorizontalAlignment(JTextField.RIGHT);
getBindingManager().bindComponent(qq_decimal1, "decimal1");
WidthPolicy.set(qq_decimal1, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_decimal1, Constants.SP_NATURAL);
qq_decimal1.setMinimumSize(new Dimension(100, 19));
qq_decimal1.setSize(new Dimension(100, 19));
}
return qq_decimal1;
}
public void setqq_decimal1(DataField value) {
DataField oldValue = qq_decimal1;
qq_decimal1 = value;
this.qq_Listeners.firePropertyChange("qq_decimal1", oldValue, value);
}
/**
* qq_TextGraphic15: transformed from: qqds_TextGraphic
* TagId=15
* isInherited=FALSE
*/
public TextGraphic getqq_TextGraphic15() {
if (qq_TextGraphic15 == null) {
qq_TextGraphic15 = GraphicFactory.newTextGraphic("+\n", "");
// OPTIONAL UIutils.reloadLabelText(qq_TextGraphic15, mcat);
WidthPolicy.set(qq_TextGraphic15, Constants.SP_NATURAL);
HeightPolicy.set(qq_TextGraphic15, Constants.SP_NATURAL);
qq_TextGraphic15.setMinimumSize(new Dimension(14, 16));
}
return qq_TextGraphic15;
}
public void setqq_TextGraphic15(TextGraphic value) {
TextGraphic oldValue = qq_TextGraphic15;
qq_TextGraphic15 = value;
this.qq_Listeners.firePropertyChange("qq_TextGraphic15", oldValue, value);
}
/**
* qq_decimal2: transformed from: qqds_DataField
* TagId=16
* isInherited=FALSE
*/
public DataField getqq_decimal2() {
if (qq_decimal2 == null) {
// Mask type: MK_NONE
qq_decimal2 = DataFieldFactory.newDataField("decimal2", 15, MoneyDomain.class, Constants.MK_NONE);
qq_decimal2.setOriginalFormatText(null);
qq_decimal2.setHorizontalAlignment(JTextField.LEFT);
getBindingManager().bindComponent(qq_decimal2, "decimal2");
WidthPolicy.set(qq_decimal2, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_decimal2, Constants.SP_NATURAL);
qq_decimal2.setMinimumSize(new Dimension(108, 19));
qq_decimal2.setSize(new Dimension(108, 19));
// HelpTopic
CSH.setHelpIDString(qq_decimal2, "");
}
return qq_decimal2;
}
public void setqq_decimal2(DataField value) {
DataField oldValue = qq_decimal2;
qq_decimal2 = value;
this.qq_Listeners.firePropertyChange("qq_decimal2", oldValue, value);
}
/**
* qq_TextGraphic17: transformed from: qqds_TextGraphic
* TagId=17
* isInherited=FALSE
*/
public TextGraphic getqq_TextGraphic17() {
if (qq_TextGraphic17 == null) {
qq_TextGraphic17 = GraphicFactory.newTextGraphic("=\n", "");
// OPTIONAL UIutils.reloadLabelText(qq_TextGraphic17, mcat);
WidthPolicy.set(qq_TextGraphic17, Constants.SP_NATURAL);
HeightPolicy.set(qq_TextGraphic17, Constants.SP_NATURAL);
qq_TextGraphic17.setMinimumSize(new Dimension(14, 16));
}
return qq_TextGraphic17;
}
public void setqq_TextGraphic17(TextGraphic value) {
TextGraphic oldValue = qq_TextGraphic17;
qq_TextGraphic17 = value;
this.qq_Listeners.firePropertyChange("qq_TextGraphic17", oldValue, value);
}
/**
* qq_ResultDouble: transformed from: qqds_DataField
* TagId=18
* isInherited=FALSE
*/
public DataField getqq_ResultDouble() {
if (qq_ResultDouble == null) {
// Mask type: MK_NONE
qq_ResultDouble = DataFieldFactory.newDataField("ResultDouble", 7, Constants.MK_NONE);
qq_ResultDouble.setValue(new Double(0.0));
qq_ResultDouble.setOriginalFormatText(null);
qq_ResultDouble.setHorizontalAlignment(JTextField.RIGHT);
getBindingManager().bindComponent(qq_ResultDouble, "resultDouble");
WidthPolicy.set(qq_ResultDouble, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_ResultDouble, Constants.SP_NATURAL);
qq_ResultDouble.setMinimumSize(new Dimension(59, 19));
qq_ResultDouble.setSize(new Dimension(59, 19));
}
return qq_ResultDouble;
}
public void setqq_ResultDouble(DataField value) {
DataField oldValue = qq_ResultDouble;
qq_ResultDouble = value;
this.qq_Listeners.firePropertyChange("qq_ResultDouble", oldValue, value);
}
/**
* qq_ResultMoney: transformed from: qqds_DataField
* TagId=19
* isInherited=FALSE
*/
public DataField getqq_ResultMoney() {
if (qq_ResultMoney == null) {
// Mask type: MK_NONE
qq_ResultMoney = DataFieldFactory.newDataField("ResultMoney", 9, MoneyDomain.class, Constants.MK_NONE);
qq_ResultMoney.setOriginalFormatText(null);
qq_ResultMoney.setHorizontalAlignment(JTextField.LEFT);
getBindingManager().bindComponent(qq_ResultMoney, "resultMoney");
WidthPolicy.set(qq_ResultMoney, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_ResultMoney, Constants.SP_NATURAL);
qq_ResultMoney.setMinimumSize(new Dimension(72, 19));
qq_ResultMoney.setSize(new Dimension(72, 19));
// HelpTopic
CSH.setHelpIDString(qq_ResultMoney, "");
}
return qq_ResultMoney;
}
public void setqq_ResultMoney(DataField value) {
DataField oldValue = qq_ResultMoney;
qq_ResultMoney = value;
this.qq_Listeners.firePropertyChange("qq_ResultMoney", oldValue, value);
}
/**
* qq_GridField13: transformed from: qqds_GridField
* TagId=13
* isInherited=FALSE
* In forte this was a 6x1 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_GridField13Properties() {
qq_GridField13.setCellTopMargin(25);
qq_GridField13.setCellBottomMargin(25);
qq_GridField13.setCellLeftMargin(25);
qq_GridField13.setCellRightMargin(25);
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(403, 29));
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_GridField13.add( getqq_decimal1(), 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_GridField13.add( getqq_TextGraphic15(), qq_gbc1 );
GridBagConstraints qq_gbc2 = new GridBagConstraints();
qq_gbc2.gridx = 2; // Column 3
qq_gbc2.gridy = 0; // Row 1
qq_gbc2.weightx = 0;
qq_gbc2.weighty = 0;
qq_gbc2.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc2.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc2.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_GridField13.add( getqq_decimal2(), qq_gbc2 );
GridBagConstraints qq_gbc3 = new GridBagConstraints();
qq_gbc3.gridx = 3; // Column 4
qq_gbc3.gridy = 0; // Row 1
qq_gbc3.weightx = 0;
qq_gbc3.weighty = 0;
qq_gbc3.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc3.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc3.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_GridField13.add( getqq_TextGraphic17(), qq_gbc3 );
GridBagConstraints qq_gbc4 = new GridBagConstraints();
qq_gbc4.gridx = 4; // Column 5
qq_gbc4.gridy = 0; // Row 1
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_GridField13.add( getqq_ResultDouble(), qq_gbc4 );
GridBagConstraints qq_gbc5 = new GridBagConstraints();
qq_gbc5.gridx = 5; // Column 6
qq_gbc5.gridy = 0; // Row 1
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_GridField13.add( getqq_ResultMoney(), qq_gbc5 );
}
return qq_GridField13;
}
public void setqq_GridField13(GridField value) {
GridField oldValue = qq_GridField13;
qq_GridField13 = value;
this.qq_Listeners.firePropertyChange("qq_GridField13", oldValue, value);
}
/**
* qq_Gender: transformed from: qqds_RadioList
* TagId=21
* isInherited=FALSE
*/
public RadioList getqq_Gender() {
if (qq_Gender == null) {
String[] names = {"Male", "Female", "Californian"};
qq_Gender = ListFieldFactory.newRadioList(Constants.FO_VERTICAL, "", names, 1, Constants.LP_CONSTANT);
Array_Of_ListElement<ListElement> elements = new Array_Of_ListElement<ListElement>();
elements.add( new ListElement( 1, names[0], ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
elements.add( new ListElement( 2, names[1], ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
elements.add( new ListElement( 3, names[2], ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
qq_Gender.setName("Gender");
getBindingManager().bindComponent(qq_Gender, "gender", elements);
if (qq_Gender.getSelectedIndex() == -1)
qq_Gender.setSelectedIndex(0);
// OPTIONAL UIutils.reloadLabelText(qq_Gender, mcat);
}
return qq_Gender;
}
public void setqq_Gender(RadioList value) {
RadioList oldValue = qq_Gender;
qq_Gender = value;
this.qq_Listeners.firePropertyChange("qq_Gender", oldValue, value);
}
/**
* qq_Aheight: transformed from: qqds_RadioList
* TagId=22
* isInherited=FALSE
*/
public RadioList getqq_Aheight() {
if (qq_Aheight == null) {
String[] names = {"Tall", "Short"};
qq_Aheight = ListFieldFactory.newRadioList(Constants.FO_HORIZONTAL, "", names, 1, Constants.LP_CONSTANT);
Array_Of_ListElement<ListElement> elements = new Array_Of_ListElement<ListElement>();
elements.add( new ListElement( 1, names[0], ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
elements.add( new ListElement( 2, names[1], ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
qq_Aheight.setName("Aheight");
getBindingManager().bindComponent(qq_Aheight, "aheight", elements);
if (qq_Aheight.getSelectedIndex() == -1)
qq_Aheight.setSelectedIndex(0);
// OPTIONAL UIutils.reloadLabelText(qq_Aheight, mcat);
}
return qq_Aheight;
}
public void setqq_Aheight(RadioList value) {
RadioList oldValue = qq_Aheight;
qq_Aheight = value;
this.qq_Listeners.firePropertyChange("qq_Aheight", oldValue, value);
}
/**
* qq_GridField20: transformed from: qqds_GridField
* TagId=20
* isInherited=FALSE
* In forte this was a 2x1 grid field.
* Neither the top nor the bottom cell margins are set, but the left and right cell margins are both 100 mils.
* The width policy is set to Natural, and the height policy is set to Natural.
*/
protected void setqq_GridField20Properties() {
qq_GridField20.setCellLeftMargin(50);
qq_GridField20.setCellRightMargin(50);
qq_GridField20.setCollapsed(true);
qq_GridField20.setHeightPolicy(Constants.SP_NATURAL);
qq_GridField20.setWidthPolicy(Constants.SP_NATURAL);
qq_GridField20.setBackground(null);
}
public GridField getqq_GridField20() {
if (qq_GridField20 == null) {
qq_GridField20 = CompoundFieldFactory.newGridField("qq_GridField20", true);
setqq_GridField20Properties();
qq_GridField20.setMinimumSize(new Dimension(211, 70));
GridBagConstraints qq_gbc = new GridBagConstraints();
qq_gbc.gridx = 0; // Column 1
qq_gbc.gridy = 0; // Row 1
qq_gbc.weightx = 0;
qq_gbc.weighty = 0;
qq_gbc.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc.insets = new Insets(0, 4, 0, 4); // Top, Left, Bottom, Right Margin
qq_GridField20.add( getqq_Gender(), qq_gbc );
GridBagConstraints qq_gbc1 = new GridBagConstraints();
qq_gbc1.gridx = 1; // Column 2
qq_gbc1.gridy = 0; // Row 1
qq_gbc1.weightx = 0;
qq_gbc1.weighty = 0;
qq_gbc1.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc1.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc1.insets = new Insets(0, 4, 0, 4); // Top, Left, Bottom, Right Margin
qq_GridField20.add( getqq_Aheight(), qq_gbc1 );
}
return qq_GridField20;
}
public void setqq_GridField20(GridField value) {
GridField oldValue = qq_GridField20;
qq_GridField20 = value;
this.qq_Listeners.firePropertyChange("qq_GridField20", oldValue, value);
}
/**
* qq_ArrayTester_sp: transformed from: qqds_ArrayField
* TagId=23
* isInherited=FALSE
*/
public JScrollPane getqq_ArrayTester_sp() {
if (qq_ArrayTester_sp == null) {
qq_ArrayTester_sp = CompoundFieldFactory.newScrollPane();
qq_ArrayTester_sp.setName("ArrayTester");
qq_ArrayTester_sp.setViewportView(getqq_ArrayTester());
qq_ArrayTester_sp.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
qq_ArrayTester_sp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
qq_ArrayTester_sp.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));
qq_ArrayTester_sp.setBackground(null);
qq_ArrayTester_sp.getViewport().setBackground(null);
FrameColor.set(qq_ArrayTester_sp, Constants.C_INHERIT);
WidthPolicy.set(qq_ArrayTester_sp, Constants.SP_NATURAL);
HeightPolicy.set(qq_ArrayTester_sp, Constants.SP_NATURAL);
// OPTIONAL qq_ArrayTester_sp.setSize(new Dimension(625, 392));
qq_ArrayTester_sp.setMinimumSize(new Dimension(625, 392));
qq_ArrayTester_sp.setPreferredSize(new Dimension(625, 392));
}
return qq_ArrayTester_sp;
}
public void setqq_ArrayTester_sp(JScrollPane value) {
JScrollPane oldValue = qq_ArrayTester_sp;
qq_ArrayTester_sp = value;
this.qq_Listeners.firePropertyChange("qq_ArrayTester_sp", oldValue, value);
}
/**
* qq_ArrayTester: transformed from: qqds_ArrayField
* TagId=23
* isInherited=FALSE
*/
public ArrayField getqq_ArrayTester() {
if (qq_ArrayTester == null) {
qq_ArrayTester = TableFactory.newArrayField("ArrayTester", 36);
this.getBindingManager().bindComponent(qq_ArrayTester, "arrayTester", ValidatingClass.class,
new String[] { "dateField",
"validatingField",
"toggleValue",
"dropValue",
"invalidColumn",
"floatValue",
"gender",
"" });
qq_ArrayTester.setVisibleRows(10);
((ArrayFieldModel)qq_ArrayTester.getModel()).setAllowsAppend(true);
// === Column model setup ===
// DateField converted from qqds_DataField
ArrayColumn qq_ArrayTesterArray_DateField_Column = new ArrayColumn("DateField", 0, 87, new FormattedCellRenderer(getqq_ArrayTesterArray_DateField()), new FormattedCellEditor(getqq_ArrayTesterArray_DateField()), true);
qq_ArrayTesterArray_DateField_Column.setHeaderValue("DateField");
qq_ArrayTesterArray_DateField_Column.setVisible(true);
qq_ArrayTester.addColumn(qq_ArrayTesterArray_DateField_Column);
// ValidatingField converted from qqds_DataField
ArrayColumn qq_ArrayTesterArray_ValidatingField_Column = new ArrayColumn("ValidatingField", 1, 84, new FormattedCellRenderer(getqq_ArrayTesterArray_ValidatingField()), new FormattedCellEditor(getqq_ArrayTesterArray_ValidatingField()), true);
qq_ArrayTesterArray_ValidatingField_Column.setHeaderValue("ValidatingField");
qq_ArrayTesterArray_ValidatingField_Column.setVisible(true);
qq_ArrayTester.addColumn(qq_ArrayTesterArray_ValidatingField_Column);
// ToggleValue converted from qqds_ToggleField
ArrayColumn qq_ArrayTesterArray_ToggleValue_Column = new ArrayColumn("ToggleValue", 2, 60, new CheckBoxCellRenderer(getqq_ArrayTesterArray_ToggleValue()), new CheckBoxCellEditor(getqq_ArrayTesterArray_ToggleValue()), true);
qq_ArrayTesterArray_ToggleValue_Column.setHeaderValue("ToggleField");
qq_ArrayTesterArray_ToggleValue_Column.setVisible(true);
qq_ArrayTester.addColumn(qq_ArrayTesterArray_ToggleValue_Column);
// DropValue converted from qqds_DropList
ArrayColumn qq_ArrayTesterArray_DropValue_Column = new ArrayColumn("DropValue", 3, getqq_ArrayTesterArray_DropValue().getMinimumSize().width, new ComboBoxCellRenderer(getqq_ArrayTesterArray_DropValue()), DropFillinFactory.newDropListEditor(getqq_ArrayTesterArray_DropValue()), true);
qq_ArrayTesterArray_DropValue_Column.setHeaderValue("DropValue");
qq_ArrayTesterArray_DropValue_Column.setVisible(true);
qq_ArrayTester.addColumn(qq_ArrayTesterArray_DropValue_Column);
// InvalidColumn converted from qqds_DataField
ArrayColumn qq_ArrayTesterArray_InvalidColumn_Column = new ArrayColumn("InvalidColumn", 4, 80, new FormattedCellRenderer(getqq_ArrayTesterArray_InvalidColumn()), new FormattedCellEditor(getqq_ArrayTesterArray_InvalidColumn()), false);
qq_ArrayTesterArray_InvalidColumn_Column.setHeaderValue("Disabled");
qq_ArrayTesterArray_InvalidColumn_Column.setVisible(true);
qq_ArrayTester.addColumn(qq_ArrayTesterArray_InvalidColumn_Column);
// FloatValue converted from qqds_DataField
ArrayColumn qq_ArrayTesterArray_FloatValue_Column = new ArrayColumn("FloatValue", 5, 66, new FormattedCellRenderer(getqq_ArrayTesterArray_FloatValue()), new FormattedCellEditor(getqq_ArrayTesterArray_FloatValue()), true);
qq_ArrayTesterArray_FloatValue_Column.setHeaderValue("Column 6");
qq_ArrayTesterArray_FloatValue_Column.setVisible(true);
qq_ArrayTester.addColumn(qq_ArrayTesterArray_FloatValue_Column);
// <Gender> converted from qqds_RadioList
ArrayColumn qq_ArrayTesterArray_Gender_Column = new ArrayColumn("Gender", 6, 116, new RadioListCellRenderer(getqq_ArrayTesterArray_Gender()), new RadioListCellEditor(getqq_ArrayTesterArray_Gender()), true);
qq_ArrayTesterArray_Gender_Column.setHeaderValue("Column 6");
qq_ArrayTesterArray_Gender_Column.setVisible(true);
qq_ArrayTester.addColumn(qq_ArrayTesterArray_Gender_Column);
// ValidateButton converted from qqds_PushButton
ArrayColumn qq_ArrayTesterArray_ValidateButton_Column = new ArrayColumn("ValidateButton", 7, 48, new ButtonCellRenderer(getqq_ArrayTesterArray_ValidateButton()), new ButtonCellEditor(getqq_ArrayTesterArray_ValidateButton()), true);
qq_ArrayTesterArray_ValidateButton_Column.setHeaderValue("Column 5");
qq_ArrayTesterArray_ValidateButton_Column.setVisible(true);
qq_ArrayTester.addColumn(qq_ArrayTesterArray_ValidateButton_Column);
// === End column model ===
TableFactory.postModelArrayField(qq_ArrayTester);
}
return qq_ArrayTester;
}
public void setqq_ArrayTester(ArrayField value) {
ArrayField oldValue = qq_ArrayTester;
qq_ArrayTester = value;
this.qq_Listeners.firePropertyChange("qq_ArrayTester", oldValue, value);
}
/**
* qq_RowAtStartLbl: transformed from: qqds_TextGraphic
* TagId=44
* isInherited=FALSE
*/
public TextGraphic getqq_RowAtStartLbl() {
if (qq_RowAtStartLbl == null) {
qq_RowAtStartLbl = GraphicFactory.newTextGraphic("Row at Start:\n", "");
// OPTIONAL UIutils.reloadLabelText(qq_RowAtStartLbl, mcat);
WidthPolicy.set(qq_RowAtStartLbl, Constants.SP_NATURAL);
HeightPolicy.set(qq_RowAtStartLbl, Constants.SP_NATURAL);
qq_RowAtStartLbl.setMinimumSize(new Dimension(72, 16));
}
return qq_RowAtStartLbl;
}
public void setqq_RowAtStartLbl(TextGraphic value) {
TextGraphic oldValue = qq_RowAtStartLbl;
qq_RowAtStartLbl = value;
this.qq_Listeners.firePropertyChange("qq_RowAtStartLbl", oldValue, value);
}
/**
* qq_RowAtStart: transformed from: qqds_DataField
* TagId=45
* isInherited=FALSE
*/
public DataField getqq_RowAtStart() {
if (qq_RowAtStart == null) {
// Mask type: MK_NONE
qq_RowAtStart = DataFieldFactory.newDataField("RowAtStart", 11, Constants.MK_NONE);
qq_RowAtStart.setValue(new Integer(0));
qq_RowAtStart.setOriginalFormatText(null);
qq_RowAtStart.setHorizontalAlignment(JTextField.RIGHT);
getBindingManager().bindComponent(qq_RowAtStart, "rowAtStart");
WidthPolicy.set(qq_RowAtStart, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_RowAtStart, Constants.SP_NATURAL);
qq_RowAtStart.setMinimumSize(new Dimension(79, 19));
qq_RowAtStart.setSize(new Dimension(79, 19));
}
return qq_RowAtStart;
}
public void setqq_RowAtStart(DataField value) {
DataField oldValue = qq_RowAtStart;
qq_RowAtStart = value;
this.qq_Listeners.firePropertyChange("qq_RowAtStart", oldValue, value);
}
/**
* qq_RowAtEndLbl: transformed from: qqds_TextGraphic
* TagId=46
* isInherited=FALSE
*/
public TextGraphic getqq_RowAtEndLbl() {
if (qq_RowAtEndLbl == null) {
qq_RowAtEndLbl = GraphicFactory.newTextGraphic("Row at End:\n", "");
qq_RowAtEndLbl.setHorizontalAlignment( SwingConstants.LEFT );
// OPTIONAL UIutils.reloadLabelText(qq_RowAtEndLbl, mcat);
WidthPolicy.set(qq_RowAtEndLbl, Constants.SP_NATURAL);
HeightPolicy.set(qq_RowAtEndLbl, Constants.SP_NATURAL);
qq_RowAtEndLbl.setMinimumSize(new Dimension(67, 16));
}
return qq_RowAtEndLbl;
}
public void setqq_RowAtEndLbl(TextGraphic value) {
TextGraphic oldValue = qq_RowAtEndLbl;
qq_RowAtEndLbl = value;
this.qq_Listeners.firePropertyChange("qq_RowAtEndLbl", oldValue, value);
}
/**
* qq_RowAtEnd: transformed from: qqds_DataField
* TagId=47
* isInherited=FALSE
*/
public DataField getqq_RowAtEnd() {
if (qq_RowAtEnd == null) {
// Mask type: MK_NONE
qq_RowAtEnd = DataFieldFactory.newDataField("RowAtEnd", 11, Constants.MK_NONE);
qq_RowAtEnd.setValue(new Integer(0));
qq_RowAtEnd.setOriginalFormatText(null);
qq_RowAtEnd.setHorizontalAlignment(JTextField.RIGHT);
getBindingManager().bindComponent(qq_RowAtEnd, "rowAtEnd");
WidthPolicy.set(qq_RowAtEnd, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_RowAtEnd, Constants.SP_NATURAL);
qq_RowAtEnd.setMinimumSize(new Dimension(79, 19));
qq_RowAtEnd.setSize(new Dimension(79, 19));
}
return qq_RowAtEnd;
}
public void setqq_RowAtEnd(DataField value) {
DataField oldValue = qq_RowAtEnd;
qq_RowAtEnd = value;
this.qq_Listeners.firePropertyChange("qq_RowAtEnd", oldValue, value);
}
/**
* qq_GridField43: transformed from: qqds_GridField
* TagId=43
* isInherited=FALSE
* In forte this was a 2x2 grid field.
* There are no cell margins set
* The width policy is set to Natural, and the height policy is set to Natural.
*/
protected void setqq_GridField43Properties() {
qq_GridField43.setCollapsed(true);
qq_GridField43.setHeightPolicy(Constants.SP_NATURAL);
qq_GridField43.setWidthPolicy(Constants.SP_NATURAL);
qq_GridField43.setBackground(null);
}
public GridField getqq_GridField43() {
if (qq_GridField43 == null) {
qq_GridField43 = CompoundFieldFactory.newGridField("qq_GridField43", true);
setqq_GridField43Properties();
qq_GridField43.setMinimumSize(new Dimension(151, 40));
GridBagConstraints qq_gbc = new GridBagConstraints();
qq_gbc.gridx = 0; // Column 1
qq_gbc.gridy = 0; // Row 1
qq_gbc.weightx = 0;
qq_gbc.weighty = 0;
qq_gbc.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_GridField43.add( getqq_RowAtStartLbl(), qq_gbc );
GridBagConstraints qq_gbc1 = new GridBagConstraints();
qq_gbc1.gridx = 1; // Column 2
qq_gbc1.gridy = 0; // Row 1
qq_gbc1.weightx = 0;
qq_gbc1.weighty = 0;
qq_gbc1.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc1.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc1.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_GridField43.add( getqq_RowAtStart(), qq_gbc1 );
GridBagConstraints qq_gbc2 = new GridBagConstraints();
qq_gbc2.gridx = 0; // Column 1
qq_gbc2.gridy = 1; // Row 2
qq_gbc2.weightx = 0;
qq_gbc2.weighty = 0;
qq_gbc2.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc2.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc2.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_GridField43.add( getqq_RowAtEndLbl(), qq_gbc2 );
GridBagConstraints qq_gbc3 = new GridBagConstraints();
qq_gbc3.gridx = 1; // Column 2
qq_gbc3.gridy = 1; // Row 2
qq_gbc3.weightx = 0;
qq_gbc3.weighty = 0;
qq_gbc3.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc3.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc3.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_GridField43.add( getqq_RowAtEnd(), qq_gbc3 );
}
return qq_GridField43;
}
public void setqq_GridField43(GridField value) {
GridField oldValue = qq_GridField43;
qq_GridField43 = value;
this.qq_Listeners.firePropertyChange("qq_GridField43", oldValue, value);
}
/**
* qq_ButtonToInvalidate: transformed from: qqds_PushButton
* TagId=49
* isInherited=FALSE
*/
public JButton getqq_ButtonToInvalidate() {
if (qq_ButtonToInvalidate == null) {
qq_ButtonToInvalidate = PushButtonFactory.newInstance("ButtonToInvalidate", "Button To Invalidate");
qq_ButtonToInvalidate.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_ButtonToInvalidate, Constants.SP_NATURAL);
HeightPolicy.set(qq_ButtonToInvalidate, Constants.SP_NATURAL);
qq_ButtonToInvalidate.setMinimumSize(new Dimension(113, 23));
}
return qq_ButtonToInvalidate;
}
public void setqq_ButtonToInvalidate(JButton value) {
JButton oldValue = qq_ButtonToInvalidate;
qq_ButtonToInvalidate = value;
this.qq_Listeners.firePropertyChange("qq_ButtonToInvalidate", oldValue, value);
}
/**
* qq_InvalidateInEventHandlerBtn: transformed from: qqds_PushButton
* TagId=50
* isInherited=FALSE
*/
public JButton getqq_InvalidateInEventHandlerBtn() {
if (qq_InvalidateInEventHandlerBtn == null) {
qq_InvalidateInEventHandlerBtn = PushButtonFactory.newInstance("InvalidateInEventHandlerBtn", "Invalidate in event handler");
qq_InvalidateInEventHandlerBtn.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_InvalidateInEventHandlerBtn, Constants.SP_NATURAL);
HeightPolicy.set(qq_InvalidateInEventHandlerBtn, Constants.SP_NATURAL);
qq_InvalidateInEventHandlerBtn.setMinimumSize(new Dimension(142, 23));
}
return qq_InvalidateInEventHandlerBtn;
}
public void setqq_InvalidateInEventHandlerBtn(JButton value) {
JButton oldValue = qq_InvalidateInEventHandlerBtn;
qq_InvalidateInEventHandlerBtn = value;
this.qq_Listeners.firePropertyChange("qq_InvalidateInEventHandlerBtn", oldValue, value);
}
/**
* qq_GridField48: transformed from: qqds_GridField
* TagId=48
* isInherited=FALSE
* In forte this was a 1x2 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_GridField48Properties() {
qq_GridField48.setCellTopMargin(25);
qq_GridField48.setCellBottomMargin(25);
qq_GridField48.setCellLeftMargin(25);
qq_GridField48.setCellRightMargin(25);
qq_GridField48.setCollapsed(true);
qq_GridField48.setHeightPolicy(Constants.SP_NATURAL);
qq_GridField48.setWidthPolicy(Constants.SP_NATURAL);
qq_GridField48.setBackground(null);
}
public GridField getqq_GridField48() {
if (qq_GridField48 == null) {
qq_GridField48 = CompoundFieldFactory.newGridField("qq_GridField48", true);
setqq_GridField48Properties();
qq_GridField48.setMinimumSize(new Dimension(151, 60));
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_GridField48.add( getqq_InvalidateInEventHandlerBtn(), qq_gbc );
GridBagConstraints qq_gbc1 = new GridBagConstraints();
qq_gbc1.gridx = 0; // Column 1
qq_gbc1.gridy = 1; // Row 2
qq_gbc1.weightx = 0;
qq_gbc1.weighty = 0;
qq_gbc1.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc1.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc1.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_GridField48.add( getqq_ButtonToInvalidate(), qq_gbc1 );
}
return qq_GridField48;
}
public void setqq_GridField48(GridField value) {
GridField oldValue = qq_GridField48;
qq_GridField48 = value;
this.qq_Listeners.firePropertyChange("qq_GridField48", oldValue, value);
}
/**
* qq_GridField42: transformed from: qqds_GridField
* TagId=42
* isInherited=FALSE
* In forte this was a 2x1 grid field.
* There are no cell margins set
* The width policy is set to Natural, and the height policy is set to Natural.
*/
protected void setqq_GridField42Properties() {
qq_GridField42.setCollapsed(true);
qq_GridField42.setHeightPolicy(Constants.SP_NATURAL);
qq_GridField42.setWidthPolicy(Constants.SP_NATURAL);
qq_GridField42.setBackground(null);
}
public GridField getqq_GridField42() {
if (qq_GridField42 == null) {
qq_GridField42 = CompoundFieldFactory.newGridField("qq_GridField42", true);
setqq_GridField42Properties();
qq_GridField42.setMinimumSize(new Dimension(304, 60));
GridBagConstraints qq_gbc = new GridBagConstraints();
qq_gbc.gridx = 0; // Column 1
qq_gbc.gridy = 0; // Row 1
qq_gbc.weightx = 0;
qq_gbc.weighty = 0;
qq_gbc.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_GridField42.add( getqq_GridField43(), qq_gbc );
GridBagConstraints qq_gbc1 = new GridBagConstraints();
qq_gbc1.gridx = 1; // Column 2
qq_gbc1.gridy = 0; // Row 1
qq_gbc1.weightx = 0;
qq_gbc1.weighty = 0;
qq_gbc1.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc1.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc1.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_GridField42.add( getqq_GridField48(), qq_gbc1 );
}
return qq_GridField42;
}
public void setqq_GridField42(GridField value) {
GridField oldValue = qq_GridField42;
qq_GridField42 = value;
this.qq_Listeners.firePropertyChange("qq_GridField42", oldValue, value);
}
/**
* qq_GridField12: transformed from: qqds_GridField
* TagId=12
* isInherited=FALSE
* In forte this was a 1x4 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_GridField12Properties() {
qq_GridField12.setCellTopMargin(50);
qq_GridField12.setCellBottomMargin(50);
qq_GridField12.setCellLeftMargin(50);
qq_GridField12.setCellRightMargin(50);
qq_GridField12.setCollapsed(true);
qq_GridField12.setHeightPolicy(Constants.SP_NATURAL);
qq_GridField12.setWidthPolicy(Constants.SP_NATURAL);
qq_GridField12.setBackground(null);
qq_GridField12.setLocation(7, 3);
}
public GridField getqq_GridField12() {
if (qq_GridField12 == null) {
qq_GridField12 = CompoundFieldFactory.newGridField("qq_GridField12", true);
setqq_GridField12Properties();
qq_GridField12.setMinimumSize(new Dimension(644, 601));
GridBagConstraints qq_gbc = new GridBagConstraints();
qq_gbc.gridx = 0; // Column 1
qq_gbc.gridy = 0; // Row 1
qq_gbc.weightx = 0;
qq_gbc.weighty = 0;
qq_gbc.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc.insets = new Insets(4, 4, 4, 4); // Top, Left, Bottom, Right Margin
qq_GridField12.add( getqq_GridField13(), qq_gbc );
GridBagConstraints qq_gbc1 = new GridBagConstraints();
qq_gbc1.gridx = 0; // Column 1
qq_gbc1.gridy = 1; // Row 2
qq_gbc1.weightx = 0;
qq_gbc1.weighty = 0;
qq_gbc1.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc1.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc1.insets = new Insets(4, 4, 4, 4); // Top, Left, Bottom, Right Margin
qq_GridField12.add( getqq_GridField20(), 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.CENTER; // Gravity - original: CG_DEFAULT gf
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_GridField12.add( getqq_ArrayTester_sp(), 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.CENTER; // Gravity - original: CG_DEFAULT gf
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_GridField12.add( getqq_GridField42(), qq_gbc3 );
}
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() );
}
return Form;
}
public void setForm(JPanel value) {
JPanel oldValue = Form;
Form = value;
this.qq_Listeners.firePropertyChange("Form", oldValue, value);
}
/**
* Gets the system close policy
*
* The SystemClosePolicy property determines how a window responds to user attempts to close it by using the native window system through the window close box or a window system menu command.
* SystemClosePolicy responds to window closure attempts according to the following parameters:
* <li>Constants.SC_DISABLED Does not allow window closure through window system.</li>
* <li>Constants.SC_ENABLEDNOFINALIZE Window can be closed, but the contents are not verified, guaranteeing that the window will close (for example, the user clicks the Cancel button).</li>
* <li>Constants.SC_ENABLEDFINALIZE Posts the RequestFinalize method on the window, with a reason code of zero.</li>
* <li>Constants.SC_ENABLEDSHUTDOWN Posts Shutdown event to window�s task and to all tasks started by that task. This is the default value.</li>
*/
public int getSystemClosePolicy() {
return qq_SystemClosePolicy;
}
/**
* Sets the system close policy
*
* The SystemClosePolicy property determines how a window responds to user attempts to close it by using the native window system through the window close box or a window system menu command.
* SystemClosePolicy responds to window closure attempts according to the following parameters:
* <li>Constants.SC_DISABLED Does not allow window closure through window system.</li>
* <li>Constants.SC_ENABLEDNOFINALIZE Window can be closed, but the contents are not verified, guaranteeing that the window will close (for example, the user clicks the Cancel button).</li>
* <li>Constants.SC_ENABLEDFINALIZE Posts the RequestFinalize method on the window, with a reason code of zero.</li>
* <li>Constants.SC_ENABLEDSHUTDOWN Posts Shutdown event to window�s task and to all tasks started by that task. This is the default value.</li>
*/
public void setSystemClosePolicy(int policy) {
this.qq_SystemClosePolicy = policy;
if (policy == Constants.SC_DISABLED) {
this.addComponentListener(new CloseHideAdaptor(this));
} else {
for (ComponentListener cl : this.getComponentListeners()) {
if (cl instanceof CloseHideAdaptor) {
this.removeComponentListener(cl);
break;
}
}
}
}
/**
* Gets the initial position policy
*
* The InitialPositionPolicy property sets the position of a main window when it is first displayed, relative to a primary window or the screen.
* You use the InitialPositionPolicy property in conjunction with the InitialX, InitialY properties.
* InitialPositionPolicy sets the position of a window according to the following values:
* <li>Constants.PP_SYSTEMDEFAULT Accepts the default window system placement specification.</li>
* <li>Constants.PP_PRIMARYCENTERED Centers the window relative to the window specified as the PrimaryWindow property.</li>
* <li>Constants.PP_PRIMARYRELATIVE Positions the window relative to the primary window, using the PrimaryWindow, InitialX and InitialY attributes.</li>
* <li>Constants.PP_SCREENCENTERED Centers the window relative to the screen.</li>
* <li>Constants.PP_SCREENRELATIVE Positions the window relative to the screen, using the InitialX and InitialY properties.</li>
*/
public int getInitialPositionPolicy() {
return qq_initialPositionPolicy;
}
/**
* Sets the initial position policy
*
* The InitialPositionPolicy property sets the position of a main window when it is first displayed, relative to a primary window or the screen.
* You use the InitialPositionPolicy property in conjunction with the InitialX, InitialY properties.
* InitialPositionPolicy sets the position of a window according to the following values:
* <li>Constants.PP_SYSTEMDEFAULT Accepts the default window system placement specification.</li>
* <li>Constants.PP_PRIMARYCENTERED Centers the window relative to the window specified as the PrimaryWindow property.</li>
* <li>Constants.PP_PRIMARYRELATIVE Positions the window relative to the primary window, using the PrimaryWindow, InitialX and InitialY attributes.</li>
* <li>Constants.PP_SCREENCENTERED Centers the window relative to the screen.</li>
* <li>Constants.PP_SCREENRELATIVE Positions the window relative to the screen, using the InitialX and InitialY properties.</li>
*/
public void setInitialPositionPolicy(int policy) {
this.qq_initialPositionPolicy = policy;
}
/**
* Gets the primary window
*
* The primary window property designates a window, known as a primary window, to serve as an initial position reference for the current window.
* When a main window first realizes itself through the Open method on the UserWindow, it assumes a position according to the InitialPositionPolicy attribute.
* When the InitialPositionPolicy property is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_PRIMARYCENTERED (centered on the primary window),
* the window realizes itself in a position relative to the designated primary window.<p>
* <p>
* To take a position relative to the primary window, a window uses the PrimaryWindow attribute in conjunction with the InitialX and InitialY properties, which specify the window�s horizontal and vertical coordinates.
*/
public Window getPrimaryWindow() {
return this.primaryWindow;
}
/**
* Sets the primary window
*
* The primary window property designates a window, known as a primary window, to serve as an initial position reference for the current window.
* When a main window first realizes itself through the Open method on the UserWindow, it assumes a position according to the InitialPositionPolicy attribute.
* When the InitialPositionPolicy property is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_PRIMARYCENTERED (centered on the primary window),
* the window realizes itself in a position relative to the designated primary window.<p>
* <p>
* To take a position relative to the primary window, a window uses the PrimaryWindow attribute in conjunction with the InitialX and InitialY properties, which specify the window�s horizontal and vertical coordinates.
*/
public void setPrimaryWindow(Window value) {
this.primaryWindow = value;
}
/**
* Gets the InitialX value
*
* The InitialX property (integer) is the window�s initial horizontal screen position, relative to a primary window or the screen. It is specified in mils.
* InitialX applies only to main windows and only when a window�s InitialPositionPolicy attribute is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_SCREENRELATIVE (relative to the screen).
* InitialX, and its corollary, InitialY, work in conjunction with the PrimaryWindow and InitialPositionPolicy attributes to determine the position of a main window when it is first realized.
*/
public int getInitialX() {
return initialX;
}
/**
* Sets the InitialX value
*
* The InitialX property (integer) is the window�s initial horizontal screen position, relative to a primary window or the screen. It is specified in mils.
* InitialX applies only to main windows and only when a window�s InitialPositionPolicy attribute is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_SCREENRELATIVE (relative to the screen).
* InitialX, and its corollary, InitialY, work in conjunction with the PrimaryWindow and InitialPositionPolicy attributes to determine the position of a main window when it is first realized.
*/
public void setInitialX(int value) {
this.initialX = value;
}
/**
* Gets the InitialY value
*
* The InitialY property (integer) is the window�s initial vertical screen position, relative to a primary window or the screen. It is specified in mils.
* InitialY applies only to main windows and only when a window�s InitialPositionPolicy attribute is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_SCREENRELATIVE (relative to the screen).
* InitialY, and its corollary, InitialX, work in conjunction with the PrimaryWindow and InitialPositionPolicy attributes to determine the position of a main window when it is first realized.
*/
public int getInitialY() {
return initialY;
}
/**
* Sets the InitialY value
*
* The InitialY property (integer) is the window�s initial vertical screen position, relative to a primary window or the screen. It is specified in mils.
* InitialY applies only to main windows and only when a window�s InitialPositionPolicy attribute is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_SCREENRELATIVE (relative to the screen).
* InitialY, and its corollary, InitialX, work in conjunction with the PrimaryWindow and InitialPositionPolicy attributes to determine the position of a main window when it is first realized.
*/
public void setInitialY(int value) {
this.initialY = value;
}
/**
* Gets the default message set number for the window and its widgets.
*/
public int getSetNum() {
return this.qq_defaultSet;
}
/**
* Sets the default message set number for the window and its widgets.
*/
public void setSetNum(int value) {
this.qq_defaultSet = value;
}
/**
* Gets the message set number for the message number of the window's title.
*/
public int getTitleSetNum() {
return this.qq_msgSet;
}
/**
* Sets the message set number for the message number of the window's title.
*/
public void setTitleSetNum(int value) {
this.qq_msgSet = value;
}
/**
* Gets the message number for the message number of the window's title.
*/
public int getTitleMsgNum() {
return this.qq_msgNumber;
}
/**
* Sets the message number for the message number of the window's title.
*/
public void setTitleMsgNum(int value) {
this.qq_msgNumber = value;
}
/**
* qq_ArrayTesterArray_DateField: transformed from: qqds_DataField
* TagId=24
* isInherited=FALSE
*/
public DataField getqq_ArrayTesterArray_DateField() {
if (qq_ArrayTesterArray_DateField == null) {
// Mask type: MK_TEMPLATE
// original Forte format string -->dd.mm.yyyy<--
qq_ArrayTesterArray_DateField = DataFieldFactory.newDataField("DateField", 12, DateTimeData.class);
DateTemplate.set(qq_ArrayTesterArray_DateField, "dd.mm.yyyy", DateTimeData.class);
qq_ArrayTesterArray_DateField.setOriginalFormatText("dd.mm.yyyy");
qq_ArrayTesterArray_DateField.setHorizontalAlignment(JTextField.LEFT);
WidthPolicy.set(qq_ArrayTesterArray_DateField, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_ArrayTesterArray_DateField, Constants.SP_NATURAL);
qq_ArrayTesterArray_DateField.setMinimumSize(new Dimension(87, 19));
qq_ArrayTesterArray_DateField.setSize(new Dimension(87, 19));
qq_ArrayTesterArray_DateField.setLocation(44, 113);
ArrayFieldCellHelper.setUpCellEditor(qq_ArrayTesterArray_DateField, qq_ArrayTester, 0, false);
}
return qq_ArrayTesterArray_DateField;
}
public void setqq_ArrayTesterArray_DateField(DataField value) {
DataField oldValue = qq_ArrayTesterArray_DateField;
qq_ArrayTesterArray_DateField = value;
this.qq_Listeners.firePropertyChange("qq_ArrayTesterArray_DateField", oldValue, value);
}
/**
* qq_ArrayTesterArray_ValidatingField: transformed from: qqds_DataField
* TagId=26
* isInherited=FALSE
*/
public DataField getqq_ArrayTesterArray_ValidatingField() {
if (qq_ArrayTesterArray_ValidatingField == null) {
// Mask type: MK_NONE
qq_ArrayTesterArray_ValidatingField = DataFieldFactory.newDataField("ValidatingField", 11, Constants.MK_NONE);
qq_ArrayTesterArray_ValidatingField.setOriginalFormatText(null);
qq_ArrayTesterArray_ValidatingField.setHorizontalAlignment(JTextField.LEFT);
WidthPolicy.set(qq_ArrayTesterArray_ValidatingField, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_ArrayTesterArray_ValidatingField, Constants.SP_NATURAL);
qq_ArrayTesterArray_ValidatingField.setMinimumSize(new Dimension(84, 19));
qq_ArrayTesterArray_ValidatingField.setSize(new Dimension(84, 19));
qq_ArrayTesterArray_ValidatingField.setLocation(139, 115);
ArrayFieldCellHelper.setUpCellEditor(qq_ArrayTesterArray_ValidatingField, qq_ArrayTester, 1, false);
}
return qq_ArrayTesterArray_ValidatingField;
}
public void setqq_ArrayTesterArray_ValidatingField(DataField value) {
DataField oldValue = qq_ArrayTesterArray_ValidatingField;
qq_ArrayTesterArray_ValidatingField = value;
this.qq_Listeners.firePropertyChange("qq_ArrayTesterArray_ValidatingField", oldValue, value);
}
/**
* qq_ArrayTesterArray_ToggleValue: transformed from: qqds_ToggleField
* TagId=28
* isInherited=FALSE
*/
public JCheckBox getqq_ArrayTesterArray_ToggleValue() {
if (qq_ArrayTesterArray_ToggleValue == null) {
qq_ArrayTesterArray_ToggleValue = ToggleFieldFactory.newToggleField("Toggle", "ToggleValue");
// OPTIONAL UIutils.reloadLabelText(qq_ArrayTesterArray_ToggleValue, mcat);
ArrayFieldCellHelper.setUpCellEditor(qq_ArrayTesterArray_ToggleValue, qq_ArrayTester, 2, false);
qq_ArrayTesterArray_ToggleValue.setLocation(232, 117);
}
return qq_ArrayTesterArray_ToggleValue;
}
public void setqq_ArrayTesterArray_ToggleValue(JCheckBox value) {
JCheckBox oldValue = qq_ArrayTesterArray_ToggleValue;
qq_ArrayTesterArray_ToggleValue = value;
this.qq_Listeners.firePropertyChange("qq_ArrayTesterArray_ToggleValue", oldValue, value);
}
/**
* qq_ArrayTesterArray_DropValue: transformed from: qqds_DropList
* TagId=30
* isInherited=FALSE
*/
public DropList getqq_ArrayTesterArray_DropValue() {
if (qq_ArrayTesterArray_DropValue == null) {
ListElement[] elements = new ListElement[4];
elements[0] = new ListElement( 1, "One", ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE );
elements[1] = new ListElement( 2, "Two", ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE );
elements[2] = new ListElement( 3, "Three", ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE );
elements[3] = new ListElement( 4, "Four", ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE );
qq_ArrayTesterArray_DropValue = DropFillinFactory.newDropList(elements);
qq_ArrayTesterArray_DropValue.setName("DropValue");
// OPTIONAL UIutils.reloadLabelText(qq_ArrayTesterArray_DropValue, mcat);
qq_ArrayTesterArray_DropValue.setMaximumRowCount(4);
ArrayFieldCellHelper.setUpCellEditor(qq_ArrayTesterArray_DropValue, qq_ArrayTester, 3, false);
WidthPolicy.set(qq_ArrayTesterArray_DropValue, Constants.SP_NATURAL);
HeightPolicy.set(qq_ArrayTesterArray_DropValue, Constants.SP_NATURAL);
qq_ArrayTesterArray_DropValue.setMinimumSize(new Dimension(62, 19));
qq_ArrayTesterArray_DropValue.setLocation(291, 116);
}
return qq_ArrayTesterArray_DropValue;
}
public void setqq_ArrayTesterArray_DropValue(DropList value) {
DropList oldValue = qq_ArrayTesterArray_DropValue;
qq_ArrayTesterArray_DropValue = value;
this.qq_Listeners.firePropertyChange("qq_ArrayTesterArray_DropValue", oldValue, value);
}
/**
* qq_ArrayTesterArray_InvalidColumn: transformed from: qqds_DataField
* TagId=32
* isInherited=FALSE
*/
public DataField getqq_ArrayTesterArray_InvalidColumn() {
if (qq_ArrayTesterArray_InvalidColumn == null) {
// Mask type: MK_NONE
qq_ArrayTesterArray_InvalidColumn = DataFieldFactory.newDataField("InvalidColumn", 20, Constants.MK_NONE);
qq_ArrayTesterArray_InvalidColumn.setOriginalFormatText(null);
qq_ArrayTesterArray_InvalidColumn.setHorizontalAlignment(JTextField.LEFT);
WidthPolicy.set(qq_ArrayTesterArray_InvalidColumn, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_ArrayTesterArray_InvalidColumn, Constants.SP_NATURAL);
qq_ArrayTesterArray_InvalidColumn.setMinimumSize(new Dimension(80, 19));
qq_ArrayTesterArray_InvalidColumn.setSize(new Dimension(80, 19));
qq_ArrayTesterArray_InvalidColumn.setLocation(290, 34);
ArrayFieldCellHelper.setUpCellEditor(qq_ArrayTesterArray_InvalidColumn, qq_ArrayTester, 4, false);
}
return qq_ArrayTesterArray_InvalidColumn;
}
public void setqq_ArrayTesterArray_InvalidColumn(DataField value) {
DataField oldValue = qq_ArrayTesterArray_InvalidColumn;
qq_ArrayTesterArray_InvalidColumn = value;
this.qq_Listeners.firePropertyChange("qq_ArrayTesterArray_InvalidColumn", oldValue, value);
}
/**
* qq_ArrayTesterArray_FloatValue: transformed from: qqds_DataField
* TagId=34
* isInherited=FALSE
*/
public DataField getqq_ArrayTesterArray_FloatValue() {
if (qq_ArrayTesterArray_FloatValue == null) {
// Mask type: MK_TEMPLATE
// original Forte format string -->#,##0.00<--
this.qq_ArrayTesterArray_FloatValue = DataFieldFactory.newDataField("FloatValue", 20, "#,##0.00", Float.TYPE);
qq_ArrayTesterArray_FloatValue.setOriginalFormatText("#,##0.00");
qq_ArrayTesterArray_FloatValue.setHorizontalAlignment(JTextField.RIGHT);
WidthPolicy.set(qq_ArrayTesterArray_FloatValue, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_ArrayTesterArray_FloatValue, Constants.SP_NATURAL);
qq_ArrayTesterArray_FloatValue.setMinimumSize(new Dimension(66, 1));
qq_ArrayTesterArray_FloatValue.setSize(new Dimension(66, 1));
qq_ArrayTesterArray_FloatValue.setLocation(370, 43);
ArrayFieldCellHelper.setUpCellEditor(qq_ArrayTesterArray_FloatValue, qq_ArrayTester, 5, false);
}
return qq_ArrayTesterArray_FloatValue;
}
public void setqq_ArrayTesterArray_FloatValue(DataField value) {
DataField oldValue = qq_ArrayTesterArray_FloatValue;
qq_ArrayTesterArray_FloatValue = value;
this.qq_Listeners.firePropertyChange("qq_ArrayTesterArray_FloatValue", oldValue, value);
}
/**
* qq_ArrayTesterArray_Gender: transformed from: qqds_RadioList
* TagId=36
* isInherited=FALSE
*/
public RadioList getqq_ArrayTesterArray_Gender() {
if (qq_ArrayTesterArray_Gender == null) {
String[] names = {"Male", "Female"};
qq_ArrayTesterArray_Gender = ListFieldFactory.newRadioList(Constants.FO_HORIZONTAL, "", names, 1, Constants.LP_CONSTANT);
Array_Of_ListElement<ListElement> elements = new Array_Of_ListElement<ListElement>();
elements.add( new ListElement( 1, names[0], ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
elements.add( new ListElement( 2, names[1], ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
qq_ArrayTesterArray_Gender.setName("Gender");
qq_ArrayTesterArray_Gender.setModel(new RadioListModel(new SelectionInList(elements), qq_ArrayTesterArray_Gender) );
if (qq_ArrayTesterArray_Gender.getSelectedIndex() == -1)
qq_ArrayTesterArray_Gender.setSelectedIndex(0);
// OPTIONAL UIutils.reloadLabelText(qq_ArrayTesterArray_Gender, mcat);
ArrayFieldCellHelper.setUpCellEditor(qq_ArrayTesterArray_Gender, qq_ArrayTester, 6, false);
qq_ArrayTesterArray_Gender.setLocation(376, 40);
}
return qq_ArrayTesterArray_Gender;
}
public void setqq_ArrayTesterArray_Gender(RadioList value) {
RadioList oldValue = qq_ArrayTesterArray_Gender;
qq_ArrayTesterArray_Gender = value;
this.qq_Listeners.firePropertyChange("qq_ArrayTesterArray_Gender", oldValue, value);
}
/**
* qq_ArrayTesterArray_ValidateButton: transformed from: qqds_PushButton
* TagId=38
* isInherited=FALSE
*/
public TableJButton getqq_ArrayTesterArray_ValidateButton() {
if (qq_ArrayTesterArray_ValidateButton == null) {
qq_ArrayTesterArray_ValidateButton = PushButtonFactory.newTableInstance("ValidateButton", "Button");
qq_ArrayTesterArray_ValidateButton.setVerifyInputWhenFocusTarget(true);
ArrayFieldCellHelper.setUpCellEditor(qq_ArrayTesterArray_ValidateButton, qq_ArrayTester, 7, false);
WidthPolicy.set(qq_ArrayTesterArray_ValidateButton, Constants.SP_NATURAL);
HeightPolicy.set(qq_ArrayTesterArray_ValidateButton, Constants.SP_NATURAL);
qq_ArrayTesterArray_ValidateButton.setMinimumSize(new Dimension(48, 23));
qq_ArrayTesterArray_ValidateButton.setLocation(352, 115);
}
return qq_ArrayTesterArray_ValidateButton;
}
public void setqq_ArrayTesterArray_ValidateButton(TableJButton value) {
TableJButton oldValue = qq_ArrayTesterArray_ValidateButton;
qq_ArrayTesterArray_ValidateButton = value;
this.qq_Listeners.firePropertyChange("qq_ArrayTesterArray_ValidateButton", oldValue, value);
}
/**
* Initialise the window and all its children.
*/
protected void initialize() {
if (this.Form == null) {
this.setName( "ValidatingWindow" );
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_GridField12(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
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_decimal1(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_TextGraphic15(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_decimal2(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_TextGraphic17(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_ResultDouble(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_ResultMoney(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_GridField20(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_Gender(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_Aheight(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_ArrayTester(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_ArrayTesterArray_DateField(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_ArrayTesterArray_ValidatingField(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_ArrayTesterArray_ToggleValue(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_ArrayTesterArray_DropValue(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_ArrayTesterArray_InvalidColumn(), Constants.FS_INACTIVE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_ArrayTesterArray_FloatValue(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_ArrayTesterArray_Gender(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_ArrayTesterArray_ValidateButton(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_GridField42(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_GridField43(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_RowAtStartLbl(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_RowAtStart(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_RowAtEndLbl(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_RowAtEnd(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_GridField48(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_ButtonToInvalidate(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_InvalidateInEventHandlerBtn(), 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);
ValidatingWindow myClass = new ValidatingWindow();
myClass.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
myClass.setVisible(true);
UIutils.processGUIActions();
}
} // end class ValidatingWindow
// c Pass 2 Conversion Time: 1014 milliseconds