package ArrayWithAllWidgets;
import ArrayWithAllWidgets.Array_Of_MappedType;
import ArrayWithAllWidgets.MappedType;
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.AppletConnectionInfo;
import DisplayProject.actions.ColourChange;
import DisplayProject.actions.ExitOnTab;
import DisplayProject.actions.FrameColor;
import DisplayProject.actions.HeightPolicy;
import DisplayProject.actions.ImageValue;
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.FillInField;
import DisplayProject.controls.MultiLineTextField;
import DisplayProject.controls.Panel;
import DisplayProject.controls.PictureGraphic;
import DisplayProject.controls.TabFolder;
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.TextEditFactory;
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.FillInFieldCellEditor;
import DisplayProject.table.FillInFieldCellRenderer;
import DisplayProject.table.FormattedCellEditor;
import DisplayProject.table.FormattedCellRenderer;
import DisplayProject.table.RadioListCellEditor;
import DisplayProject.table.RadioListCellRenderer;
import DisplayProject.table.TextFieldCellEditor;
import DisplayProject.table.TextFieldCellRenderer;
import DisplayProject.table.TextGraphicCellRenderer;
import Framework.Array_Of_ListElement;
import Framework.ErrorMgr;
import Framework.EventHandle;
import Framework.EventManager;
import Framework.EventRegistration;
import Framework.File;
import Framework.ForteKeyboardFocusManager;
import Framework.FrameworkUtils;
import Framework.ImageData;
import Framework.IntegerData;
import Framework.ListElement;
import Framework.ParameterHolder;
import Framework.RuntimeProperties;
import Framework.Task;
import Framework.TextData;
import Framework.UsageException;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import java.awt.KeyboardFocusManager;
import java.awt.Window;
import java.awt.event.ComponentListener;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.Serializable;
import java.lang.String;
import java.net.MalformedURLException;
import java.net.URL;
import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTabbedPane;
import javax.swing.JTextField;
import javax.swing.UIManager;
import javax.swing.table.DefaultTableCellRenderer;
import org.apache.log4j.Logger;
/**
* ArrayTester<p>
* <p>
* @author Generated from Forte
* @since 19-Nov-2008
*/
@RuntimeProperties(isDistributed=false, isAnchored=false, isShared=false, isTransactional=false)
@UDSWindow()
@SuppressWarnings("serial")
public class ArrayTester
extends JFrame
implements Serializable, Observable
{
// ----------
// Attributes
// ----------
protected File DefaultHelpFile;
protected BindingManager bindingManager = null;
public PropertyChangeSupport qq_Listeners = new ExtendedPropertyChangeSupport(this, true);
private Array_Of_MappedType<MappedType> aList;
private Array_Of_MappedType<MappedType> aList1;
private String nothing;
// ------------
// Constructors
// ------------
public ArrayTester() {
// Explicitly call the superclass constructor to prevent the implicit call
super();
this.initialize();
this.setAList(new Array_Of_MappedType<MappedType>());
this.getAList().add(new MappedType(true, "Mary", 2, "Five", ImageValue.get(this.getqq_anImage()), 1, 3, new TextData("Data")));
this.setAList1(new Array_Of_MappedType<MappedType>());
this.getAList1().add(new MappedType(true, "Mary", 2, "Five", ImageValue.get(this.getqq_anImage()), 1, 3, new TextData("Data")));
this.getAList1().add(new MappedType(false, "Bob", 1, "Six", ImageValue.get(this.getqq_anImage()), 2, 4, new TextData("Input")));
}
// ----------------------
// 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 setAList(Array_Of_MappedType<MappedType> aList) {
Array_Of_MappedType<MappedType> oldValue = this.aList;
this.aList = aList;
this.qq_Listeners.firePropertyChange("AList", oldValue, this.aList);
}
public Array_Of_MappedType<MappedType> getAList() {
return this.aList;
}
public void setAList1(Array_Of_MappedType<MappedType> aList1) {
Array_Of_MappedType<MappedType> oldValue = this.aList1;
this.aList1 = aList1;
this.qq_Listeners.firePropertyChange("AList1", oldValue, this.aList1);
}
public Array_Of_MappedType<MappedType> getAList1() {
return this.aList1;
}
public void setNothing(String nothing) {
String oldValue = this.nothing;
this.nothing = nothing;
this.qq_Listeners.firePropertyChange("nothing", oldValue, this.nothing);
}
public String getNothing() {
return this.nothing;
}
// -------
// Methods
// -------
public void addPropertyChangeListener(String property, PropertyChangeListener listener) {
qq_Listeners.addPropertyChangeListener(property, listener);
}
public void addPropertyChangeListener(PropertyChangeListener listener) {
qq_Listeners.addPropertyChangeListener(listener);
}
public void removePropertyChangeListener(String property, PropertyChangeListener listener) {
qq_Listeners.removePropertyChangeListener(property, listener);
}
public void removePropertyChangeListener(PropertyChangeListener listener) {
qq_Listeners.removePropertyChangeListener(listener);
}
/**
* display<p>
* <p>
*/
public void display() {
UserWindow.open(this);
// ----------
// Event Loop
// ----------
EventManager.startEventLoop();
try {
EventRegistration ArrayField_ClickOuter_getqq_aList = ClientEventManager.register( this.getqq_aList(), "ClickOuter" );
EventRegistration ArrayField_ChildClickOuter_getqq_aList = ClientEventManager.register( this.getqq_aList(), "ChildClickOuter" );
EventRegistration ArrayField_Click_getqq_aList = ClientEventManager.register( this.getqq_aList(), "Click" );
EventRegistration ArrayField_ChildClick_getqq_aList = ClientEventManager.register( this.getqq_aList(), "ChildClick" );
EventRegistration DataField_Click_getqq_aListArray_aDataField = ClientEventManager.register( this.getqq_aListArray_aDataField(), "Click" );
EventRegistration PushButton_Click_getqq_aListArray_aPushButton = ClientEventManager.register( this.getqq_aListArray_aPushButton(), "Click" );
EventRegistration PushButton_Click_getqq_aList1Array_aPushButton = ClientEventManager.register( this.getqq_aList1Array_aPushButton(), "Click" );
EventRegistration DropList_BeforeFocusLoss_getqq_aListArray_aDropList = ClientEventManager.register( this.getqq_aListArray_aDropList(), "BeforeFocusLoss" );
EventRegistration FillInField_BeforeFocusLoss_getqq_aListArray_aFillinField = ClientEventManager.register( this.getqq_aListArray_aFillinField(), "BeforeFocusLoss" );
EventRegistration ToggleField_Click_getqq_aListArray_aCheckBox = ClientEventManager.register( this.getqq_aListArray_aCheckBox(), "Click" );
EventRegistration TaskHandle_Shutdown_langThreadcurrentThread = ClientEventManager.register( Thread.currentThread(), "Shutdown" );
EventRegistration PushButton_Click_getqq_insertARow = ClientEventManager.register( this.getqq_insertARow(), "Click" );
while (true) {
UIutils.processGUIActions();
EventHandle qq_currentEvent = EventManager.waitForEvent();
if (qq_currentEvent == null)
break;
// ------------------
// <aList>.ClickOuter
// ------------------
if (qq_currentEvent.isEvent(ArrayField_ClickOuter_getqq_aList)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Logger.getLogger("task.part.logmgr").info("<aList>.ClickOuter");
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// -----------------------
// <aList>.ChildClickOuter
// -----------------------
else if (qq_currentEvent.isEvent(ArrayField_ChildClickOuter_getqq_aList)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Logger.getLogger("task.part.logmgr").info("<aList>.ChildClickOuter");
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// -------------
// <aList>.Click
// -------------
else if (qq_currentEvent.isEvent(ArrayField_Click_getqq_aList)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Logger.getLogger("task.part.logmgr").info("<aList>.Click");
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ------------------
// <aList>.ChildClick
// ------------------
else if (qq_currentEvent.isEvent(ArrayField_ChildClick_getqq_aList)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
JComponent child = (JComponent)((ParameterHolder)qq_currentEvent.getParameter("child")).getObject();
int x = ((ParameterHolder)qq_currentEvent.getParameter("x")).getInt();
int y = ((ParameterHolder)qq_currentEvent.getParameter("y")).getInt();
int modifier = ((ParameterHolder)qq_currentEvent.getParameter("modifier")).getInt();
int row = ((ParameterHolder)qq_currentEvent.getParameter("row")).getInt();
int column = ((ParameterHolder)qq_currentEvent.getParameter("column")).getInt();
Logger.getLogger("task.part.logmgr").info(new TextData().replaceParameters("<aList>.ChildClick(child = %1, x = %2, y = %3, modifier = %4, row = %5, column = %6)", Name.get(child), new IntegerData(x), new IntegerData(y), new IntegerData(modifier), new IntegerData(row), new IntegerData(column)));
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ---------------------------
// <aList[*].aDataField>.Click
// ---------------------------
else if (qq_currentEvent.isEvent(DataField_Click_getqq_aListArray_aDataField)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Logger.getLogger("task.part.logmgr").info("<aList[*].aDataField>.Click");
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ----------------------------
// <aList[*].aPushButton>.Click
// ----------------------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_aListArray_aPushButton)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Logger.getLogger("task.part.logmgr").info("List button pushed");
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// -----------------------------
// <aList1[*].aPushButton>.Click
// -----------------------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_aList1Array_aPushButton)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Logger.getLogger("task.part.logmgr").info("List1 button pushed");
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ------------------------------------
// <aList[*].aDropList>.beforefocusloss
// ------------------------------------
else if (qq_currentEvent.isEvent(DropList_BeforeFocusLoss_getqq_aListArray_aDropList)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
if (this.getAList().get(TableRow.get(this.getqq_aList())-1).getADropList() == 1) {
WindowManager.messageDialog(this, "Cannot be 1", 1, 50);
UIutils.purgeEvents();
}
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ---------------------------------------
// <aList[*].aFillinField>.beforefocusloss
// ---------------------------------------
else if (qq_currentEvent.isEvent(FillInField_BeforeFocusLoss_getqq_aListArray_aFillinField)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
if ("".equals(this.getAList().get(TableRow.get(this.getqq_aList())-1).getAFillinField())) {
WindowManager.messageDialog(this, "Cannot be blank", 1, 50);
UIutils.purgeEvents();
}
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// --------------------------
// <aList[*].aCheckBox>.click
// --------------------------
else if (qq_currentEvent.isEvent(ToggleField_Click_getqq_aListArray_aCheckBox)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
WidgetState.set((JComponent)this.getqq_aListArray_aCheckBox(), Constants.FS_DISABLED);
Task.delay(500);
WidgetState.set((JComponent)this.getqq_aListArray_aCheckBox(), Constants.FS_UPDATE);
// ================ 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();
}
}
// ------------------
// <insertARow>.click
// ------------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_insertARow)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
this.getAList1().add(0);
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
}
EventManager.deregister( ArrayField_ClickOuter_getqq_aList );
EventManager.deregister( ArrayField_ChildClickOuter_getqq_aList );
EventManager.deregister( ArrayField_Click_getqq_aList );
EventManager.deregister( ArrayField_ChildClick_getqq_aList );
EventManager.deregister( DataField_Click_getqq_aListArray_aDataField );
EventManager.deregister( PushButton_Click_getqq_aListArray_aPushButton );
EventManager.deregister( PushButton_Click_getqq_aList1Array_aPushButton );
EventManager.deregister( DropList_BeforeFocusLoss_getqq_aListArray_aDropList );
EventManager.deregister( FillInField_BeforeFocusLoss_getqq_aListArray_aFillinField );
EventManager.deregister( ToggleField_Click_getqq_aListArray_aCheckBox );
EventManager.deregister( TaskHandle_Shutdown_langThreadcurrentThread );
EventManager.deregister( PushButton_Click_getqq_insertARow );
}
//catch (Exception qq_error) {
//Logger.getLogger("task.part.Event").error("Event loop terminated by unhandled exception: " + qq_error.getMessage(), qq_error );
//throw qq_error;
//}
finally {
EventManager.endEventLoop();
UserWindow.close(this);
}
}
// ------------------
// Window Definitions
// ------------------
// <editor-fold defaultstate="collapsed" desc="Window Definitions">
private int qq_defaultSet = 1;
private int qq_msgNumber = 0;
private int qq_msgSet = 0;
protected Window primaryWindow = null;
protected int initialX;
protected int initialY;
protected int qq_SystemClosePolicy = Constants.SC_ENABLEDSHUTDOWN;
protected int qq_initialPositionPolicy = Constants.PP_SYSTEMDEFAULT;
public ArrayField qq_aList1;
public ArrayField qq_aList;
public DataField qq_aList1Array_aDataField;
public DataField qq_aListArray_aDataField;
public DataField qq_nothing;
public DefaultTableCellRenderer qq_aList1Array_aList1Array_PictureGraphic58;
public DefaultTableCellRenderer qq_aListArray_aListArray_PictureGraphic71;
public DropList qq_aList1Array_aDropList;
public DropList qq_aListArray_aDropList;
public FillInField qq_aList1Array_aFillinField;
public FillInField qq_aListArray_aFillinField;
public GridField qq_GridField12;
public JButton qq_insertARow;
public JCheckBox qq_aList1Array_aCheckBox;
public JCheckBox qq_aListArray_aCheckBox;
public JPanel Form;
public JScrollPane qq_aList1Array_aTextField_sp;
public JScrollPane qq_aList1_sp;
public JScrollPane qq_aListArray_aTextField_sp;
public JScrollPane qq_aList_sp;
public MultiLineTextField qq_aList1Array_aTextField;
public MultiLineTextField qq_aListArray_aTextField;
public Panel qq_Panel65;
public Panel qq_Panel68;
public PictureGraphic qq_PictureGraphic66;
public PictureGraphic qq_anImage;
public RadioList qq_aList1Array_aRadioList;
public RadioList qq_aListArray_aRadioList;
public TabFolder qq_TabFolder64;
public TableJButton qq_aList1Array_aPushButton;
public TableJButton qq_aListArray_aPushButton;
public TextGraphic qq_aList1Array_aList1Array_LabelLbl;
public TextGraphic qq_aListArray_aListArray_LabelLbl1;
/**
* qq_anImage: transformed from: qqds_PictureGraphic
* TagId=38
* isInherited=FALSE
*/
public PictureGraphic getqq_anImage() {
if (qq_anImage == null) {
qq_anImage = GraphicFactory.newPictureGraphic("", Constants.CG_CENTER);
qq_anImage.setImageValue(new ImageData(new ImageIcon(ArrayTester.class.getResource("ArrayTester.qq_anImage.png"))));
qq_anImage.setWidthPolicy(Constants.SP_NATURAL);
qq_anImage.setHeightPolicy(Constants.SP_NATURAL);
qq_anImage.setImageSizePolicy(Constants.IS_NATURAL);
qq_anImage.setOpaque( true );
qq_anImage.setSize(new Dimension(16, 16));
qq_anImage.setMinimumSize(new Dimension(16, 16));
qq_anImage.setPreferredSize(new Dimension(16, 16));
}
return qq_anImage;
}
public void setqq_anImage(PictureGraphic value) {
PictureGraphic oldValue = qq_anImage;
qq_anImage = value;
this.qq_Listeners.firePropertyChange("qq_anImage", oldValue, value);
}
/**
* qq_aList1_sp: transformed from: qqds_ArrayField
* TagId=39
* isInherited=FALSE
*/
public JScrollPane getqq_aList1_sp() {
if (qq_aList1_sp == null) {
qq_aList1_sp = CompoundFieldFactory.newScrollPane();
qq_aList1_sp.setName("aList1");
qq_aList1_sp.setViewportView(getqq_aList1());
qq_aList1_sp.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
qq_aList1_sp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
qq_aList1_sp.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));
qq_aList1_sp.setBackground(null);
qq_aList1_sp.getViewport().setBackground(null);
FrameColor.set(qq_aList1_sp, Constants.C_INHERIT);
ColourChange.setBackground(qq_aList1_sp, Constants.C_PALECYAN);
WidthPolicy.set(qq_aList1_sp, Constants.SP_NATURAL);
HeightPolicy.set(qq_aList1_sp, Constants.SP_NATURAL);
// OPTIONAL qq_aList1_sp.setSize(new Dimension(758, 232));
qq_aList1_sp.setMinimumSize(new Dimension(758, 232));
qq_aList1_sp.setPreferredSize(new Dimension(758, 232));
}
return qq_aList1_sp;
}
public void setqq_aList1_sp(JScrollPane value) {
JScrollPane oldValue = qq_aList1_sp;
qq_aList1_sp = value;
this.qq_Listeners.firePropertyChange("qq_aList1_sp", oldValue, value);
}
/**
* qq_aList1: transformed from: qqds_ArrayField
* TagId=39
* isInherited=FALSE
*/
public ArrayField getqq_aList1() {
if (qq_aList1 == null) {
qq_aList1 = TableFactory.newArrayField("aList1", 69);
this.getBindingManager().bindComponent(qq_aList1, "AList1", MappedType.class,
new String[] { "",
"ADataField",
"ATextField",
"ARadioList",
"ADropList",
"AFillinField",
"ACheckBox",
"",
"" });
qq_aList1.setVisibleRows(3);
// === Column model setup ===
// converted from qqds_TextGraphic
ArrayColumn qq_aList1Array_aList1Array_LabelLbl_Column = new ArrayColumn("", 0, 31, new TextGraphicCellRenderer(getqq_aList1Array_aList1Array_LabelLbl()), null, false);
qq_aList1Array_aList1Array_LabelLbl_Column.setHeaderValue("Column 1");
qq_aList1Array_aList1Array_LabelLbl_Column.setVisible(true);
qq_aList1.addColumn(qq_aList1Array_aList1Array_LabelLbl_Column);
// aDataField converted from qqds_DataField
ArrayColumn qq_aList1Array_aDataField_Column = new ArrayColumn("aDataField", 1, 115, new FormattedCellRenderer(getqq_aList1Array_aDataField()), new FormattedCellEditor(getqq_aList1Array_aDataField()), true);
qq_aList1Array_aDataField_Column.setHeaderValue("Column 2");
qq_aList1Array_aDataField_Column.setVisible(true);
qq_aList1.addColumn(qq_aList1Array_aDataField_Column);
// aTextField converted from qqds_TextField
ArrayColumn qq_aList1Array_aTextField_Column = new ArrayColumn("aTextField", 2, 168, new TextFieldCellRenderer(getqq_aList1Array_aTextField_sp()), new TextFieldCellEditor(getqq_aList1Array_aTextField_sp()), true);
qq_aList1Array_aTextField_Column.setHeaderValue("Column 3");
qq_aList1Array_aTextField_Column.setVisible(true);
qq_aList1.addColumn(qq_aList1Array_aTextField_Column);
// aRadioList converted from qqds_RadioList
ArrayColumn qq_aList1Array_aRadioList_Column = new ArrayColumn("aRadioList", 3, 98, new RadioListCellRenderer(getqq_aList1Array_aRadioList()), new RadioListCellEditor(getqq_aList1Array_aRadioList()), true);
qq_aList1Array_aRadioList_Column.setHeaderValue("aRadioList");
qq_aList1Array_aRadioList_Column.setVisible(true);
qq_aList1.addColumn(qq_aList1Array_aRadioList_Column);
// aDropList converted from qqds_DropList
ArrayColumn qq_aList1Array_aDropList_Column = new ArrayColumn("aDropList", 4, getqq_aList1Array_aDropList().getMinimumSize().width, new ComboBoxCellRenderer(getqq_aList1Array_aDropList()), DropFillinFactory.newDropListEditor(getqq_aList1Array_aDropList()), true);
qq_aList1Array_aDropList_Column.setHeaderValue("Column 6");
qq_aList1Array_aDropList_Column.setVisible(true);
qq_aList1.addColumn(qq_aList1Array_aDropList_Column);
// aFillinField converted from qqds_FillInField
ArrayColumn qq_aList1Array_aFillinField_Column = new ArrayColumn("aFillinField", 5, getqq_aList1Array_aFillinField().getMinimumSize().width, new FillInFieldCellRenderer(getqq_aList1Array_aFillinField()), new FillInFieldCellEditor(getqq_aList1Array_aFillinField()), true);
qq_aList1Array_aFillinField_Column.setHeaderValue("Column 7");
qq_aList1Array_aFillinField_Column.setVisible(true);
qq_aList1.addColumn(qq_aList1Array_aFillinField_Column);
// aCheckBox converted from qqds_ToggleField
ArrayColumn qq_aList1Array_aCheckBox_Column = new ArrayColumn("aCheckBox", 6, 50, new CheckBoxCellRenderer(getqq_aList1Array_aCheckBox()), new CheckBoxCellEditor(getqq_aList1Array_aCheckBox()), true);
qq_aList1Array_aCheckBox_Column.setHeaderValue("Column 8");
qq_aList1Array_aCheckBox_Column.setVisible(true);
qq_aList1.addColumn(qq_aList1Array_aCheckBox_Column);
// aPushButton converted from qqds_PushButton
ArrayColumn qq_aList1Array_aPushButton_Column = new ArrayColumn("aPushButton", 7, 47, new ButtonCellRenderer(getqq_aList1Array_aPushButton()), new ButtonCellEditor(getqq_aList1Array_aPushButton()), true);
qq_aList1Array_aPushButton_Column.setHeaderValue("Column 9");
qq_aList1Array_aPushButton_Column.setVisible(true);
qq_aList1.addColumn(qq_aList1Array_aPushButton_Column);
// converted from qqds_PictureGraphic
ArrayColumn qq_aList1Array_aList1Array_PictureGraphic58_Column = new ArrayColumn("", 8, 16, getqq_aList1Array_aList1Array_PictureGraphic58(), null, false);
qq_aList1Array_aList1Array_PictureGraphic58_Column.setHeaderValue("Column 10");
qq_aList1Array_aList1Array_PictureGraphic58_Column.setVisible(true);
qq_aList1.addColumn(qq_aList1Array_aList1Array_PictureGraphic58_Column);
// === End column model ===
TableFactory.postModelArrayField(qq_aList1);
ColourChange.setBackground(qq_aList1, Constants.C_PALECYAN);
}
return qq_aList1;
}
public void setqq_aList1(ArrayField value) {
ArrayField oldValue = qq_aList1;
qq_aList1 = value;
this.qq_Listeners.firePropertyChange("qq_aList1", oldValue, value);
}
/**
* qq_aList_sp: transformed from: qqds_ArrayField
* TagId=13
* isInherited=FALSE
*/
public JScrollPane getqq_aList_sp() {
if (qq_aList_sp == null) {
qq_aList_sp = CompoundFieldFactory.newScrollPane();
qq_aList_sp.setName("aList");
qq_aList_sp.setViewportView(getqq_aList());
qq_aList_sp.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
qq_aList_sp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
qq_aList_sp.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));
qq_aList_sp.setBackground(null);
qq_aList_sp.getViewport().setBackground(null);
FrameColor.set(qq_aList_sp, Constants.C_INHERIT);
WidthPolicy.set(qq_aList_sp, Constants.SP_NATURAL);
HeightPolicy.set(qq_aList_sp, Constants.SP_NATURAL);
qq_aList_sp.setSize(new Dimension(758, 232));
qq_aList_sp.setMinimumSize(new Dimension(758, 232));
qq_aList_sp.setPreferredSize(new Dimension(758, 232));
qq_aList_sp.setLocation(9, 9);
}
return qq_aList_sp;
}
public void setqq_aList_sp(JScrollPane value) {
JScrollPane oldValue = qq_aList_sp;
qq_aList_sp = value;
this.qq_Listeners.firePropertyChange("qq_aList_sp", oldValue, value);
}
/**
* qq_aList: transformed from: qqds_ArrayField
* TagId=13
* isInherited=FALSE
*/
public ArrayField getqq_aList() {
if (qq_aList == null) {
qq_aList = TableFactory.newArrayField("aList", 69);
this.getBindingManager().bindComponent(qq_aList, "AList", MappedType.class,
new String[] { "",
"ADataField",
"ATextField",
"ARadioList",
"ADropList",
"AFillinField",
"ACheckBox",
"",
"" });
qq_aList.setVisibleRows(3);
((ArrayFieldModel)qq_aList.getModel()).setAllowsAppend(true);
// === Column model setup ===
// converted from qqds_TextGraphic
ArrayColumn qq_aListArray_aListArray_LabelLbl1_Column = new ArrayColumn("", 0, 31, new TextGraphicCellRenderer(getqq_aListArray_aListArray_LabelLbl1()), null, false);
qq_aListArray_aListArray_LabelLbl1_Column.setHeaderValue("Column 1");
qq_aListArray_aListArray_LabelLbl1_Column.setVisible(true);
qq_aList.addColumn(qq_aListArray_aListArray_LabelLbl1_Column);
// aDataField converted from qqds_DataField
ArrayColumn qq_aListArray_aDataField_Column = new ArrayColumn("aDataField", 1, 115, new FormattedCellRenderer(getqq_aListArray_aDataField()), new FormattedCellEditor(getqq_aListArray_aDataField()), true);
qq_aListArray_aDataField_Column.setHeaderValue("Column 2");
qq_aListArray_aDataField_Column.setVisible(true);
qq_aList.addColumn(qq_aListArray_aDataField_Column);
// aTextField converted from qqds_TextField
ArrayColumn qq_aListArray_aTextField_Column = new ArrayColumn("aTextField", 2, 168, new TextFieldCellRenderer(getqq_aListArray_aTextField_sp()), new TextFieldCellEditor(getqq_aListArray_aTextField_sp()), true);
qq_aListArray_aTextField_Column.setHeaderValue("Column 3");
qq_aListArray_aTextField_Column.setVisible(true);
qq_aList.addColumn(qq_aListArray_aTextField_Column);
// aRadioList converted from qqds_RadioList
ArrayColumn qq_aListArray_aRadioList_Column = new ArrayColumn("aRadioList", 3, 98, new RadioListCellRenderer(getqq_aListArray_aRadioList()), new RadioListCellEditor(getqq_aListArray_aRadioList()), true);
qq_aListArray_aRadioList_Column.setHeaderValue("aRadioList");
qq_aListArray_aRadioList_Column.setVisible(true);
qq_aList.addColumn(qq_aListArray_aRadioList_Column);
// aDropList converted from qqds_DropList
ArrayColumn qq_aListArray_aDropList_Column = new ArrayColumn("aDropList", 4, getqq_aListArray_aDropList().getMinimumSize().width, new ComboBoxCellRenderer(getqq_aListArray_aDropList()), DropFillinFactory.newDropListEditor(getqq_aListArray_aDropList()), true);
qq_aListArray_aDropList_Column.setHeaderValue("Column 6");
qq_aListArray_aDropList_Column.setVisible(true);
qq_aList.addColumn(qq_aListArray_aDropList_Column);
// aFillinField converted from qqds_FillInField
ArrayColumn qq_aListArray_aFillinField_Column = new ArrayColumn("aFillinField", 5, getqq_aListArray_aFillinField().getMinimumSize().width, new FillInFieldCellRenderer(getqq_aListArray_aFillinField()), new FillInFieldCellEditor(getqq_aListArray_aFillinField()), true);
qq_aListArray_aFillinField_Column.setHeaderValue("Column 7");
qq_aListArray_aFillinField_Column.setVisible(true);
qq_aList.addColumn(qq_aListArray_aFillinField_Column);
// aCheckBox converted from qqds_ToggleField
ArrayColumn qq_aListArray_aCheckBox_Column = new ArrayColumn("aCheckBox", 6, 50, new CheckBoxCellRenderer(getqq_aListArray_aCheckBox()), new CheckBoxCellEditor(getqq_aListArray_aCheckBox()), true);
qq_aListArray_aCheckBox_Column.setHeaderValue("Column 8");
qq_aListArray_aCheckBox_Column.setVisible(true);
qq_aList.addColumn(qq_aListArray_aCheckBox_Column);
// aPushButton converted from qqds_PushButton
ArrayColumn qq_aListArray_aPushButton_Column = new ArrayColumn("aPushButton", 7, 47, new ButtonCellRenderer(getqq_aListArray_aPushButton()), new ButtonCellEditor(getqq_aListArray_aPushButton()), true);
qq_aListArray_aPushButton_Column.setHeaderValue("Column 9");
qq_aListArray_aPushButton_Column.setVisible(true);
qq_aList.addColumn(qq_aListArray_aPushButton_Column);
// converted from qqds_PictureGraphic
ArrayColumn qq_aListArray_aListArray_PictureGraphic71_Column = new ArrayColumn("", 8, 16, getqq_aListArray_aListArray_PictureGraphic71(), null, false);
qq_aListArray_aListArray_PictureGraphic71_Column.setHeaderValue("Column 10");
qq_aListArray_aListArray_PictureGraphic71_Column.setVisible(true);
qq_aList.addColumn(qq_aListArray_aListArray_PictureGraphic71_Column);
// === End column model ===
TableFactory.postModelArrayField(qq_aList);
}
return qq_aList;
}
public void setqq_aList(ArrayField value) {
ArrayField oldValue = qq_aList;
qq_aList = value;
this.qq_Listeners.firePropertyChange("qq_aList", oldValue, value);
}
/**
* qq_Panel68: transformed from: qqds_Panel
* TagId=68
* isInherited=FALSE
*/
protected void setqq_Panel68Properties() {
FrameColor.set(qq_Panel68, Constants.C_INHERIT);
HeightPolicy.set(qq_Panel68, Constants.SP_TO_PARENT);
WidthPolicy.set(qq_Panel68, Constants.SP_TO_PARENT);
qq_Panel68.setLocation(2, 21);
}
public Panel getqq_Panel68() {
if (qq_Panel68 == null) {
qq_Panel68 = CompoundFieldFactory.newPanel("qq_Panel68");
setqq_Panel68Properties();
qq_Panel68.setMinimumSize(new Dimension(0, 0));
qq_Panel68.add( getqq_aList_sp() );
}
return qq_Panel68;
}
public void setqq_Panel68(Panel value) {
Panel oldValue = qq_Panel68;
qq_Panel68 = value;
this.qq_Listeners.firePropertyChange("qq_Panel68", oldValue, value);
}
/**
* qq_PictureGraphic66: transformed from: qqds_PictureGraphic
* TagId=66
* isInherited=FALSE
*/
public PictureGraphic getqq_PictureGraphic66() {
if (qq_PictureGraphic66 == null) {
qq_PictureGraphic66 = GraphicFactory.newPictureGraphic("", Constants.CG_CENTER);
qq_PictureGraphic66.setImageValue(new ImageData(new ImageIcon(ArrayTester.class.getResource("ArrayTester.qq_PictureGraphic66.png"))));
qq_PictureGraphic66.setWidthPolicy(Constants.SP_NATURAL);
qq_PictureGraphic66.setHeightPolicy(Constants.SP_NATURAL);
qq_PictureGraphic66.setImageSizePolicy(Constants.IS_NATURAL);
qq_PictureGraphic66.setOpaque( true );
qq_PictureGraphic66.setSize(new Dimension(261, 83));
qq_PictureGraphic66.setMinimumSize(new Dimension(261, 83));
qq_PictureGraphic66.setPreferredSize(new Dimension(261, 83));
qq_PictureGraphic66.setLocation(326, 72);
}
return qq_PictureGraphic66;
}
public void setqq_PictureGraphic66(PictureGraphic value) {
PictureGraphic oldValue = qq_PictureGraphic66;
qq_PictureGraphic66 = value;
this.qq_Listeners.firePropertyChange("qq_PictureGraphic66", oldValue, value);
}
/**
* qq_nothing: transformed from: qqds_DataField
* TagId=67
* isInherited=FALSE
*/
public DataField getqq_nothing() {
if (qq_nothing == null) {
// Mask type: MK_NONE
qq_nothing = DataFieldFactory.newDataField("nothing", 26, Constants.MK_NONE);
qq_nothing.setOriginalFormatText(null);
qq_nothing.setHorizontalAlignment(JTextField.LEFT);
getBindingManager().bindComponent(qq_nothing, "nothing");
WidthPolicy.set(qq_nothing, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_nothing, Constants.SP_NATURAL);
qq_nothing.setMinimumSize(new Dimension(167, 19));
qq_nothing.setSize(new Dimension(167, 19));
qq_nothing.setLocation(57, 55);
}
return qq_nothing;
}
public void setqq_nothing(DataField value) {
DataField oldValue = qq_nothing;
qq_nothing = value;
this.qq_Listeners.firePropertyChange("qq_nothing", oldValue, value);
}
/**
* qq_Panel65: transformed from: qqds_Panel
* TagId=65
* isInherited=FALSE
*/
protected void setqq_Panel65Properties() {
FrameColor.set(qq_Panel65, Constants.C_INHERIT);
HeightPolicy.set(qq_Panel65, Constants.SP_TO_PARENT);
WidthPolicy.set(qq_Panel65, Constants.SP_TO_PARENT);
qq_Panel65.setLocation(2, 21);
}
public Panel getqq_Panel65() {
if (qq_Panel65 == null) {
qq_Panel65 = CompoundFieldFactory.newPanel("qq_Panel65");
setqq_Panel65Properties();
qq_Panel65.setMinimumSize(new Dimension(0, 0));
qq_Panel65.add( getqq_nothing() );
qq_Panel65.add( getqq_PictureGraphic66() );
}
return qq_Panel65;
}
public void setqq_Panel65(Panel value) {
Panel oldValue = qq_Panel65;
qq_Panel65 = value;
this.qq_Listeners.firePropertyChange("qq_Panel65", oldValue, value);
}
/**
* qq_TabFolder64: transformed from: qqds_TabFolder
* TagId=64
* isInherited=FALSE
*/
public TabFolder getqq_TabFolder64() {
if (qq_TabFolder64 == null) {
qq_TabFolder64 = CompoundFieldFactory.newTabFolder("", JTabbedPane.SCROLL_TAB_LAYOUT);
WidthPolicy.set(qq_TabFolder64, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_TabFolder64, Constants.SP_EXPLICIT);
qq_TabFolder64.setSize(new Dimension(782, 266));
qq_TabFolder64.setMinimumSize(new Dimension(782, 266));
qq_TabFolder64.setPreferredSize(new Dimension(782, 266));
qq_TabFolder64.addTab("Tab 1", getqq_Panel68());
qq_TabFolder64.addTab("Tab 2", getqq_Panel65());
}
return qq_TabFolder64;
}
public void setqq_TabFolder64(TabFolder value) {
TabFolder oldValue = qq_TabFolder64;
qq_TabFolder64 = value;
this.qq_Listeners.firePropertyChange("qq_TabFolder64", oldValue, value);
}
/**
* qq_insertARow: transformed from: qqds_PushButton
* TagId=73
* isInherited=FALSE
*/
public JButton getqq_insertARow() {
if (qq_insertARow == null) {
qq_insertARow = PushButtonFactory.newInstance("insertARow", "Insert Row");
qq_insertARow.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_insertARow, Constants.SP_NATURAL);
HeightPolicy.set(qq_insertARow, Constants.SP_NATURAL);
qq_insertARow.setMinimumSize(new Dimension(67, 21));
}
return qq_insertARow;
}
public void setqq_insertARow(JButton value) {
JButton oldValue = qq_insertARow;
qq_insertARow = value;
this.qq_Listeners.firePropertyChange("qq_insertARow", oldValue, value);
}
/**
* qq_GridField12: transformed from: qqds_GridField
* TagId=12
* isInherited=FALSE
* In forte this was a 2x2 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);
}
public GridField getqq_GridField12() {
if (qq_GridField12 == null) {
qq_GridField12 = CompoundFieldFactory.newGridField("qq_GridField12", true);
setqq_GridField12Properties();
qq_GridField12.setMinimumSize(new Dimension(885, 543));
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_TabFolder64(), 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(4, 4, 4, 4); // Top, Left, Bottom, Right Margin
qq_GridField12.add( getqq_anImage(), 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(4, 4, 4, 4); // Top, Left, Bottom, Right Margin
qq_GridField12.add( getqq_aList1_sp(), 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(4, 4, 4, 4); // Top, Left, Bottom, Right Margin
qq_GridField12.add( getqq_insertARow(), 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_aList1Array_aList1Array_LabelLbl: transformed from: qqds_TextGraphic
* TagId=40
* isInherited=FALSE
*/
public TextGraphic getqq_aList1Array_aList1Array_LabelLbl() {
if (qq_aList1Array_aList1Array_LabelLbl == null) {
qq_aList1Array_aList1Array_LabelLbl = GraphicFactory.newTextGraphic("Label\n", "");
qq_aList1Array_aList1Array_LabelLbl.setName("");
qq_aList1Array_aList1Array_LabelLbl.setOpaque( false );
// OPTIONAL UIutils.reloadLabelText(qq_aList1Array_aList1Array_LabelLbl, mcat);
ArrayFieldCellHelper.setUpCellEditor(qq_aList1Array_aList1Array_LabelLbl, qq_aList1, 0, false);
WidthPolicy.set(qq_aList1Array_aList1Array_LabelLbl, Constants.SP_NATURAL);
HeightPolicy.set(qq_aList1Array_aList1Array_LabelLbl, Constants.SP_NATURAL);
qq_aList1Array_aList1Array_LabelLbl.setMinimumSize(new Dimension(31, 14));
qq_aList1Array_aList1Array_LabelLbl.setLocation(30, 40);
}
return qq_aList1Array_aList1Array_LabelLbl;
}
public void setqq_aList1Array_aList1Array_LabelLbl(TextGraphic value) {
TextGraphic oldValue = new TextGraphic(qq_aList1Array_aList1Array_LabelLbl.getText());
qq_aList1Array_aList1Array_LabelLbl.setText(value.getText());
this.qq_Listeners.firePropertyChange("qq_aList1Array_aList1Array_LabelLbl", oldValue, value);
}
/**
* qq_aList1Array_aDataField: transformed from: qqds_DataField
* TagId=42
* isInherited=FALSE
*/
public DataField getqq_aList1Array_aDataField() {
if (qq_aList1Array_aDataField == null) {
// Mask type: MK_NONE
qq_aList1Array_aDataField = DataFieldFactory.newDataField("aDataField", 17, Constants.MK_NONE);
qq_aList1Array_aDataField.setOriginalFormatText(null);
qq_aList1Array_aDataField.setHorizontalAlignment(JTextField.LEFT);
WidthPolicy.set(qq_aList1Array_aDataField, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_aList1Array_aDataField, Constants.SP_NATURAL);
qq_aList1Array_aDataField.setMinimumSize(new Dimension(115, 19));
qq_aList1Array_aDataField.setSize(new Dimension(115, 19));
qq_aList1Array_aDataField.setLocation(72, 36);
ArrayFieldCellHelper.setUpCellEditor(qq_aList1Array_aDataField, qq_aList1, 1, false);
}
return qq_aList1Array_aDataField;
}
public void setqq_aList1Array_aDataField(DataField value) {
DataField oldValue = qq_aList1Array_aDataField;
qq_aList1Array_aDataField = value;
this.qq_Listeners.firePropertyChange("qq_aList1Array_aDataField", oldValue, value);
}
/**
* qq_aList1Array_aTextField_sp: transformed from: qqds_TextField
* TagId=44
* isInherited=FALSE
*/
public JScrollPane getqq_aList1Array_aTextField_sp() {
if (qq_aList1Array_aTextField_sp == null) {
qq_aList1Array_aTextField_sp = CompoundFieldFactory.newScrollPane();
qq_aList1Array_aTextField_sp.setName("aTextField");
qq_aList1Array_aTextField_sp.setViewportView(getqq_aList1Array_aTextField());
qq_aList1Array_aTextField_sp.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
qq_aList1Array_aTextField_sp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
WidthPolicy.set(qq_aList1Array_aTextField_sp, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_aList1Array_aTextField_sp, Constants.SP_EXPLICIT);
qq_aList1Array_aTextField_sp.setSize(new Dimension(177, 69));
qq_aList1Array_aTextField_sp.setMinimumSize(new Dimension(177, 69));
qq_aList1Array_aTextField_sp.setPreferredSize(new Dimension(177, 69));
qq_aList1Array_aTextField_sp.setLocation(211, 36);
}
return qq_aList1Array_aTextField_sp;
}
public void setqq_aList1Array_aTextField_sp(JScrollPane value) {
JScrollPane oldValue = qq_aList1Array_aTextField_sp;
qq_aList1Array_aTextField_sp = value;
this.qq_Listeners.firePropertyChange("qq_aList1Array_aTextField_sp", oldValue, value);
}
/**
* qq_aList1Array_aTextField: transformed from: qqds_TextField
* TagId=44
* isInherited=FALSE
*/
public MultiLineTextField getqq_aList1Array_aTextField() {
if (qq_aList1Array_aTextField == null) {
qq_aList1Array_aTextField = TextEditFactory.newTextField("aTextField", 4, 21);
ExitOnTab.set(qq_aList1Array_aTextField, true);
ArrayFieldCellHelper.setUpCellEditor(qq_aList1Array_aTextField, qq_aList1, 2, false);
WidthPolicy.set(qq_aList1Array_aTextField, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_aList1Array_aTextField, Constants.SP_EXPLICIT);
qq_aList1Array_aTextField.setLocation(211, 36);
}
return qq_aList1Array_aTextField;
}
public void setqq_aList1Array_aTextField(MultiLineTextField value) {
MultiLineTextField oldValue = qq_aList1Array_aTextField;
qq_aList1Array_aTextField = value;
this.qq_Listeners.firePropertyChange("qq_aList1Array_aTextField", oldValue, value);
}
/**
* qq_aList1Array_aRadioList: transformed from: qqds_RadioList
* TagId=48
* isInherited=FALSE
*/
public RadioList getqq_aList1Array_aRadioList() {
if (qq_aList1Array_aRadioList == null) {
String[] names = {"One", "Two"};
qq_aList1Array_aRadioList = ListFieldFactory.newRadioList(Constants.FO_HORIZONTAL, "", names, 1, Constants.LP_PACKED);
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_aList1Array_aRadioList.setName("aRadioList");
qq_aList1Array_aRadioList.setModel(new RadioListModel(new SelectionInList(elements), qq_aList1Array_aRadioList) );
if (qq_aList1Array_aRadioList.getSelectedIndex() == -1)
qq_aList1Array_aRadioList.setSelectedIndex(0);
// OPTIONAL UIutils.reloadLabelText(qq_aList1Array_aRadioList, mcat);
ArrayFieldCellHelper.setUpCellEditor(qq_aList1Array_aRadioList, qq_aList1, 3, false);
qq_aList1Array_aRadioList.setLocation(414, 52);
}
return qq_aList1Array_aRadioList;
}
public void setqq_aList1Array_aRadioList(RadioList value) {
RadioList oldValue = qq_aList1Array_aRadioList;
qq_aList1Array_aRadioList = value;
this.qq_Listeners.firePropertyChange("qq_aList1Array_aRadioList", oldValue, value);
}
/**
* qq_aList1Array_aDropList: transformed from: qqds_DropList
* TagId=50
* isInherited=FALSE
*/
public DropList getqq_aList1Array_aDropList() {
if (qq_aList1Array_aDropList == 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_aList1Array_aDropList = DropFillinFactory.newDropList(elements);
qq_aList1Array_aDropList.setName("aDropList");
// OPTIONAL UIutils.reloadLabelText(qq_aList1Array_aDropList, mcat);
qq_aList1Array_aDropList.setMaximumRowCount(4);
ArrayFieldCellHelper.setUpCellEditor(qq_aList1Array_aDropList, qq_aList1, 4, false);
WidthPolicy.set(qq_aList1Array_aDropList, Constants.SP_NATURAL);
HeightPolicy.set(qq_aList1Array_aDropList, Constants.SP_NATURAL);
qq_aList1Array_aDropList.setMinimumSize(new Dimension(62, 21));
qq_aList1Array_aDropList.setLocation(612, 67);
}
return qq_aList1Array_aDropList;
}
public void setqq_aList1Array_aDropList(DropList value) {
DropList oldValue = qq_aList1Array_aDropList;
qq_aList1Array_aDropList = value;
this.qq_Listeners.firePropertyChange("qq_aList1Array_aDropList", oldValue, value);
}
/**
* qq_aList1Array_aFillinField: transformed from: qqds_FillInField
* TagId=52
* isInherited=FALSE
*/
public FillInField getqq_aList1Array_aFillinField() {
if (qq_aList1Array_aFillinField == 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_aList1Array_aFillinField = DropFillinFactory.newFillinField(elements);
qq_aList1Array_aFillinField.setName("aFillinField");
// OPTIONAL UIutils.reloadLabelText(qq_aList1Array_aFillinField, mcat);
qq_aList1Array_aFillinField.setMaximumRowCount(4);
qq_aList1Array_aFillinField.setVisibleColumns(8);
ArrayFieldCellHelper.setUpCellEditor(qq_aList1Array_aFillinField, qq_aList1, 5, false);
WidthPolicy.set(qq_aList1Array_aFillinField, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_aList1Array_aFillinField, Constants.SP_NATURAL);
qq_aList1Array_aFillinField.setMinimumSize(new Dimension(86, 21));
qq_aList1Array_aFillinField.setSize(new Dimension(86, 21));
qq_aList1Array_aFillinField.setLocation(688, 60);
}
return qq_aList1Array_aFillinField;
}
public void setqq_aList1Array_aFillinField(FillInField value) {
FillInField oldValue = qq_aList1Array_aFillinField;
qq_aList1Array_aFillinField = value;
this.qq_Listeners.firePropertyChange("qq_aList1Array_aFillinField", oldValue, value);
}
/**
* qq_aList1Array_aCheckBox: transformed from: qqds_ToggleField
* TagId=54
* isInherited=FALSE
*/
public JCheckBox getqq_aList1Array_aCheckBox() {
if (qq_aList1Array_aCheckBox == null) {
qq_aList1Array_aCheckBox = ToggleFieldFactory.newToggleField("Toggle", "aCheckBox");
// OPTIONAL UIutils.reloadLabelText(qq_aList1Array_aCheckBox, mcat);
ArrayFieldCellHelper.setUpCellEditor(qq_aList1Array_aCheckBox, qq_aList1, 6, false);
qq_aList1Array_aCheckBox.setLocation(794, 66);
}
return qq_aList1Array_aCheckBox;
}
public void setqq_aList1Array_aCheckBox(JCheckBox value) {
JCheckBox oldValue = qq_aList1Array_aCheckBox;
qq_aList1Array_aCheckBox = value;
this.qq_Listeners.firePropertyChange("qq_aList1Array_aCheckBox", oldValue, value);
}
/**
* qq_aList1Array_aPushButton: transformed from: qqds_PushButton
* TagId=56
* isInherited=FALSE
*/
public TableJButton getqq_aList1Array_aPushButton() {
if (qq_aList1Array_aPushButton == null) {
qq_aList1Array_aPushButton = PushButtonFactory.newTableInstance("aPushButton", "Button");
qq_aList1Array_aPushButton.setVerifyInputWhenFocusTarget(true);
ArrayFieldCellHelper.setUpCellEditor(qq_aList1Array_aPushButton, qq_aList1, 7, false);
WidthPolicy.set(qq_aList1Array_aPushButton, Constants.SP_NATURAL);
HeightPolicy.set(qq_aList1Array_aPushButton, Constants.SP_NATURAL);
qq_aList1Array_aPushButton.setMinimumSize(new Dimension(47, 21));
qq_aList1Array_aPushButton.setLocation(858, 69);
}
return qq_aList1Array_aPushButton;
}
public void setqq_aList1Array_aPushButton(TableJButton value) {
TableJButton oldValue = qq_aList1Array_aPushButton;
qq_aList1Array_aPushButton = value;
this.qq_Listeners.firePropertyChange("qq_aList1Array_aPushButton", oldValue, value);
}
/**
* qq_aList1Array_aList1Array_PictureGraphic58: transformed from: qqds_PictureGraphic
* TagId=58
* isInherited=FALSE
*/
public DefaultTableCellRenderer getqq_aList1Array_aList1Array_PictureGraphic58() {
if (qq_aList1Array_aList1Array_PictureGraphic58 == null) {
qq_aList1Array_aList1Array_PictureGraphic58 = new DefaultTableCellRenderer();
qq_aList1Array_aList1Array_PictureGraphic58.setIcon(new ImageIcon(ArrayTester.class.getResource("ArrayTester.qq_aList1Array_aList1Array_PictureGraphic58.png")));
qq_aList1Array_aList1Array_PictureGraphic58.setName("");
qq_aList1Array_aList1Array_PictureGraphic58.setOpaque( true );
ArrayFieldCellHelper.setUpCellEditor(qq_aList1Array_aList1Array_PictureGraphic58, qq_aList1, 8, false);
qq_aList1Array_aList1Array_PictureGraphic58.setSize(new Dimension(16, 16));
qq_aList1Array_aList1Array_PictureGraphic58.setMinimumSize(new Dimension(16, 16));
qq_aList1Array_aList1Array_PictureGraphic58.setPreferredSize(new Dimension(16, 16));
qq_aList1Array_aList1Array_PictureGraphic58.setLocation(923, 55);
}
return qq_aList1Array_aList1Array_PictureGraphic58;
}
public void setqq_aList1Array_aList1Array_PictureGraphic58(DefaultTableCellRenderer value) {
DefaultTableCellRenderer oldValue = qq_aList1Array_aList1Array_PictureGraphic58;
qq_aList1Array_aList1Array_PictureGraphic58 = value;
this.qq_Listeners.firePropertyChange("qq_aList1Array_aList1Array_PictureGraphic58", oldValue, value);
}
/**
* qq_aListArray_aListArray_LabelLbl1: transformed from: qqds_TextGraphic
* TagId=69
* isInherited=FALSE
*/
public TextGraphic getqq_aListArray_aListArray_LabelLbl1() {
if (qq_aListArray_aListArray_LabelLbl1 == null) {
qq_aListArray_aListArray_LabelLbl1 = GraphicFactory.newTextGraphic("Label\n", "");
qq_aListArray_aListArray_LabelLbl1.setName("");
qq_aListArray_aListArray_LabelLbl1.setOpaque( false );
// OPTIONAL UIutils.reloadLabelText(qq_aListArray_aListArray_LabelLbl1, mcat);
ArrayFieldCellHelper.setUpCellEditor(qq_aListArray_aListArray_LabelLbl1, qq_aList, 0, false);
WidthPolicy.set(qq_aListArray_aListArray_LabelLbl1, Constants.SP_NATURAL);
HeightPolicy.set(qq_aListArray_aListArray_LabelLbl1, Constants.SP_NATURAL);
qq_aListArray_aListArray_LabelLbl1.setMinimumSize(new Dimension(31, 14));
qq_aListArray_aListArray_LabelLbl1.setLocation(30, 40);
}
return qq_aListArray_aListArray_LabelLbl1;
}
public void setqq_aListArray_aListArray_LabelLbl1(TextGraphic value) {
TextGraphic oldValue = new TextGraphic(qq_aListArray_aListArray_LabelLbl1.getText());
qq_aListArray_aListArray_LabelLbl1.setText(value.getText());
this.qq_Listeners.firePropertyChange("qq_aListArray_aListArray_LabelLbl1", oldValue, value);
}
/**
* qq_aListArray_aDataField: transformed from: qqds_DataField
* TagId=16
* isInherited=FALSE
*/
public DataField getqq_aListArray_aDataField() {
if (qq_aListArray_aDataField == null) {
// Mask type: MK_NONE
qq_aListArray_aDataField = DataFieldFactory.newDataField("aDataField", 17, Constants.MK_NONE);
qq_aListArray_aDataField.setOriginalFormatText(null);
qq_aListArray_aDataField.setHorizontalAlignment(JTextField.LEFT);
WidthPolicy.set(qq_aListArray_aDataField, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_aListArray_aDataField, Constants.SP_NATURAL);
qq_aListArray_aDataField.setMinimumSize(new Dimension(115, 19));
qq_aListArray_aDataField.setSize(new Dimension(115, 19));
qq_aListArray_aDataField.setLocation(72, 36);
ArrayFieldCellHelper.setUpCellEditor(qq_aListArray_aDataField, qq_aList, 1, false);
}
return qq_aListArray_aDataField;
}
public void setqq_aListArray_aDataField(DataField value) {
DataField oldValue = qq_aListArray_aDataField;
qq_aListArray_aDataField = value;
this.qq_Listeners.firePropertyChange("qq_aListArray_aDataField", oldValue, value);
}
/**
* qq_aListArray_aTextField_sp: transformed from: qqds_TextField
* TagId=18
* isInherited=FALSE
*/
public JScrollPane getqq_aListArray_aTextField_sp() {
if (qq_aListArray_aTextField_sp == null) {
qq_aListArray_aTextField_sp = CompoundFieldFactory.newScrollPane();
qq_aListArray_aTextField_sp.setName("aTextField");
qq_aListArray_aTextField_sp.setViewportView(getqq_aListArray_aTextField());
qq_aListArray_aTextField_sp.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
qq_aListArray_aTextField_sp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
WidthPolicy.set(qq_aListArray_aTextField_sp, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_aListArray_aTextField_sp, Constants.SP_EXPLICIT);
qq_aListArray_aTextField_sp.setSize(new Dimension(177, 69));
qq_aListArray_aTextField_sp.setMinimumSize(new Dimension(177, 69));
qq_aListArray_aTextField_sp.setPreferredSize(new Dimension(177, 69));
qq_aListArray_aTextField_sp.setLocation(211, 36);
}
return qq_aListArray_aTextField_sp;
}
public void setqq_aListArray_aTextField_sp(JScrollPane value) {
JScrollPane oldValue = qq_aListArray_aTextField_sp;
qq_aListArray_aTextField_sp = value;
this.qq_Listeners.firePropertyChange("qq_aListArray_aTextField_sp", oldValue, value);
}
/**
* qq_aListArray_aTextField: transformed from: qqds_TextField
* TagId=18
* isInherited=FALSE
*/
public MultiLineTextField getqq_aListArray_aTextField() {
if (qq_aListArray_aTextField == null) {
qq_aListArray_aTextField = TextEditFactory.newTextField("aTextField", 4, 21);
ExitOnTab.set(qq_aListArray_aTextField, true);
ArrayFieldCellHelper.setUpCellEditor(qq_aListArray_aTextField, qq_aList, 2, false);
WidthPolicy.set(qq_aListArray_aTextField, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_aListArray_aTextField, Constants.SP_EXPLICIT);
qq_aListArray_aTextField.setLocation(211, 36);
}
return qq_aListArray_aTextField;
}
public void setqq_aListArray_aTextField(MultiLineTextField value) {
MultiLineTextField oldValue = qq_aListArray_aTextField;
qq_aListArray_aTextField = value;
this.qq_Listeners.firePropertyChange("qq_aListArray_aTextField", oldValue, value);
}
/**
* qq_aListArray_aRadioList: transformed from: qqds_RadioList
* TagId=22
* isInherited=FALSE
*/
public RadioList getqq_aListArray_aRadioList() {
if (qq_aListArray_aRadioList == null) {
String[] names = {"One", "Two"};
qq_aListArray_aRadioList = ListFieldFactory.newRadioList(Constants.FO_HORIZONTAL, "", names, 1, Constants.LP_PACKED);
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_aListArray_aRadioList.setName("aRadioList");
qq_aListArray_aRadioList.setModel(new RadioListModel(new SelectionInList(elements), qq_aListArray_aRadioList) );
if (qq_aListArray_aRadioList.getSelectedIndex() == -1)
qq_aListArray_aRadioList.setSelectedIndex(0);
// OPTIONAL UIutils.reloadLabelText(qq_aListArray_aRadioList, mcat);
ArrayFieldCellHelper.setUpCellEditor(qq_aListArray_aRadioList, qq_aList, 3, false);
qq_aListArray_aRadioList.setLocation(414, 52);
}
return qq_aListArray_aRadioList;
}
public void setqq_aListArray_aRadioList(RadioList value) {
RadioList oldValue = qq_aListArray_aRadioList;
qq_aListArray_aRadioList = value;
this.qq_Listeners.firePropertyChange("qq_aListArray_aRadioList", oldValue, value);
}
/**
* qq_aListArray_aDropList: transformed from: qqds_DropList
* TagId=24
* isInherited=FALSE
*/
public DropList getqq_aListArray_aDropList() {
if (qq_aListArray_aDropList == null) {
ListElement[] elements = new ListElement[4];
elements[0] = new ListElement( 1, "", 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_aListArray_aDropList = DropFillinFactory.newDropList(elements);
qq_aListArray_aDropList.setName("aDropList");
// OPTIONAL UIutils.reloadLabelText(qq_aListArray_aDropList, mcat);
qq_aListArray_aDropList.setMaximumRowCount(4);
ArrayFieldCellHelper.setUpCellEditor(qq_aListArray_aDropList, qq_aList, 4, false);
WidthPolicy.set(qq_aListArray_aDropList, Constants.SP_NATURAL);
HeightPolicy.set(qq_aListArray_aDropList, Constants.SP_NATURAL);
qq_aListArray_aDropList.setMinimumSize(new Dimension(62, 21));
qq_aListArray_aDropList.setLocation(612, 67);
}
return qq_aListArray_aDropList;
}
public void setqq_aListArray_aDropList(DropList value) {
DropList oldValue = qq_aListArray_aDropList;
qq_aListArray_aDropList = value;
this.qq_Listeners.firePropertyChange("qq_aListArray_aDropList", oldValue, value);
}
/**
* qq_aListArray_aFillinField: transformed from: qqds_FillInField
* TagId=26
* isInherited=FALSE
*/
public FillInField getqq_aListArray_aFillinField() {
if (qq_aListArray_aFillinField == null) {
ListElement[] elements = new ListElement[4];
elements[0] = new ListElement( 1, "", 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_aListArray_aFillinField = DropFillinFactory.newFillinField(elements);
qq_aListArray_aFillinField.setName("aFillinField");
// OPTIONAL UIutils.reloadLabelText(qq_aListArray_aFillinField, mcat);
qq_aListArray_aFillinField.setMaximumRowCount(4);
qq_aListArray_aFillinField.setVisibleColumns(8);
ArrayFieldCellHelper.setUpCellEditor(qq_aListArray_aFillinField, qq_aList, 5, false);
WidthPolicy.set(qq_aListArray_aFillinField, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_aListArray_aFillinField, Constants.SP_NATURAL);
qq_aListArray_aFillinField.setMinimumSize(new Dimension(86, 21));
qq_aListArray_aFillinField.setSize(new Dimension(86, 21));
qq_aListArray_aFillinField.setLocation(688, 60);
}
return qq_aListArray_aFillinField;
}
public void setqq_aListArray_aFillinField(FillInField value) {
FillInField oldValue = qq_aListArray_aFillinField;
qq_aListArray_aFillinField = value;
this.qq_Listeners.firePropertyChange("qq_aListArray_aFillinField", oldValue, value);
}
/**
* qq_aListArray_aCheckBox: transformed from: qqds_ToggleField
* TagId=28
* isInherited=FALSE
*/
public JCheckBox getqq_aListArray_aCheckBox() {
if (qq_aListArray_aCheckBox == null) {
qq_aListArray_aCheckBox = ToggleFieldFactory.newToggleField("Toggle", "aCheckBox");
// OPTIONAL UIutils.reloadLabelText(qq_aListArray_aCheckBox, mcat);
ArrayFieldCellHelper.setUpCellEditor(qq_aListArray_aCheckBox, qq_aList, 6, false);
qq_aListArray_aCheckBox.setLocation(794, 66);
}
return qq_aListArray_aCheckBox;
}
public void setqq_aListArray_aCheckBox(JCheckBox value) {
JCheckBox oldValue = qq_aListArray_aCheckBox;
qq_aListArray_aCheckBox = value;
this.qq_Listeners.firePropertyChange("qq_aListArray_aCheckBox", oldValue, value);
}
/**
* qq_aListArray_aPushButton: transformed from: qqds_PushButton
* TagId=30
* isInherited=FALSE
*/
public TableJButton getqq_aListArray_aPushButton() {
if (qq_aListArray_aPushButton == null) {
qq_aListArray_aPushButton = PushButtonFactory.newTableInstance("aPushButton", "Button");
qq_aListArray_aPushButton.setVerifyInputWhenFocusTarget(true);
ArrayFieldCellHelper.setUpCellEditor(qq_aListArray_aPushButton, qq_aList, 7, false);
WidthPolicy.set(qq_aListArray_aPushButton, Constants.SP_NATURAL);
HeightPolicy.set(qq_aListArray_aPushButton, Constants.SP_NATURAL);
qq_aListArray_aPushButton.setMinimumSize(new Dimension(47, 21));
qq_aListArray_aPushButton.setLocation(858, 69);
}
return qq_aListArray_aPushButton;
}
public void setqq_aListArray_aPushButton(TableJButton value) {
TableJButton oldValue = qq_aListArray_aPushButton;
qq_aListArray_aPushButton = value;
this.qq_Listeners.firePropertyChange("qq_aListArray_aPushButton", oldValue, value);
}
/**
* qq_aListArray_aListArray_PictureGraphic71: transformed from: qqds_PictureGraphic
* TagId=71
* isInherited=FALSE
*/
public DefaultTableCellRenderer getqq_aListArray_aListArray_PictureGraphic71() {
if (qq_aListArray_aListArray_PictureGraphic71 == null) {
qq_aListArray_aListArray_PictureGraphic71 = new DefaultTableCellRenderer();
qq_aListArray_aListArray_PictureGraphic71.setIcon(new ImageIcon(ArrayTester.class.getResource("ArrayTester.qq_aListArray_aListArray_PictureGraphic71.png")));
qq_aListArray_aListArray_PictureGraphic71.setName("");
qq_aListArray_aListArray_PictureGraphic71.setOpaque( true );
ArrayFieldCellHelper.setUpCellEditor(qq_aListArray_aListArray_PictureGraphic71, qq_aList, 8, false);
qq_aListArray_aListArray_PictureGraphic71.setSize(new Dimension(16, 16));
qq_aListArray_aListArray_PictureGraphic71.setMinimumSize(new Dimension(16, 16));
qq_aListArray_aListArray_PictureGraphic71.setPreferredSize(new Dimension(16, 16));
qq_aListArray_aListArray_PictureGraphic71.setLocation(923, 55);
}
return qq_aListArray_aListArray_PictureGraphic71;
}
public void setqq_aListArray_aListArray_PictureGraphic71(DefaultTableCellRenderer value) {
DefaultTableCellRenderer oldValue = qq_aListArray_aListArray_PictureGraphic71;
qq_aListArray_aListArray_PictureGraphic71 = value;
this.qq_Listeners.firePropertyChange("qq_aListArray_aListArray_PictureGraphic71", oldValue, value);
}
/**
* Initialise the window and all its children.
*/
protected void initialize() {
if (this.Form == null) {
this.setName( "ArrayTester" );
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_anImage(), Constants.FS_INVISIBLE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_aList1(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aList1Array_aList1Array_LabelLbl(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_aList1Array_aDataField(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aList1Array_aTextField(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aList1Array_aRadioList(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aList1Array_aDropList(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aList1Array_aFillinField(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aList1Array_aCheckBox(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aList1Array_aPushButton(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_aList1Array_aList1Array_PictureGraphic58(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_TabFolder64(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_Panel65(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_PictureGraphic66(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_nothing(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_Panel68(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aList(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aListArray_aListArray_LabelLbl1(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_aListArray_aDataField(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aListArray_aTextField(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aListArray_aRadioList(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aListArray_aDropList(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aListArray_aFillinField(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aListArray_aCheckBox(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_aListArray_aPushButton(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_aListArray_aListArray_PictureGraphic71(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_insertARow(), 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 ) {
FrameworkUtils.setCmdLineArgs(args);
AppletConnectionInfo client = null;
try {
// Install our own focus manager. MUST be done prior to setting the
// UIManager, otherwise you'll run into issues like things have the wrong focus.
KeyboardFocusManager.setCurrentKeyboardFocusManager(new ForteKeyboardFocusManager());
UIManager.setLookAndFeel(new Win32LookAndFeel());
client = UserWindow.postAPPLETStarted();
ArrayTester arrayTester_start = new ArrayTester();
arrayTester_start.display();
UserWindow.postAPPLETStopped(client);
System.exit(0);
} catch (Throwable e) {
ErrorMgr.showErrors(null, "Unhandled exception", e);
UserWindow.postAPPLETStopped(client);
System.exit(0);
}
}
} // end class ArrayTester
// c Pass 2 Conversion Time: 936 milliseconds