package GridFieldTester;
import DisplayProject.Constants;
import DisplayProject.CursorMgr;
import DisplayProject.DataField;
import DisplayProject.GridField;
import DisplayProject.UDSWindow;
import DisplayProject.UIutils;
import DisplayProject.WindowManager;
import DisplayProject.WindowUsageMap;
import DisplayProject.actions.ExitOnTab;
import DisplayProject.actions.HeightPolicy;
import DisplayProject.actions.UserWindow;
import DisplayProject.actions.WidthPolicy;
import DisplayProject.binding.BindingManager;
import DisplayProject.binding.beans.Observable;
import DisplayProject.controls.MultiLineTextField;
import DisplayProject.controls.TextGraphic;
import DisplayProject.events.ClientEventManager;
import DisplayProject.factory.CompoundFieldFactory;
import DisplayProject.factory.DataFieldFactory;
import DisplayProject.factory.GraphicFactory;
import DisplayProject.factory.PushButtonFactory;
import DisplayProject.factory.TextEditFactory;
import DisplayProject.plaf.Win32LookAndFeel;
import Framework.EventHandle;
import Framework.EventManager;
import Framework.EventRegistration;
import Framework.File;
import Framework.ForteKeyboardFocusManager;
import Framework.RuntimeProperties;
import Framework.TextData;
import GridFieldTester.SDIWindow;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import java.awt.KeyboardFocusManager;
import java.io.Serializable;
import java.lang.String;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.ToolTipManager;
import javax.swing.UIManager;
/**
* DocumentWin<p>
* <p>
* @author Generated from Forte
* @since 19-Nov-2008
*/
@RuntimeProperties(isDistributed=false, isAnchored=false, isShared=false, isTransactional=false)
@UDSWindow()
@SuppressWarnings("serial")
public class DocumentWin
extends SDIWindow
implements Serializable, Observable
{
// ----------
// Attributes
// ----------
protected BindingManager bindingManager = null;
private String childEdit;
private String editField;
// ------------
// Constructors
// ------------
public DocumentWin() {
// Explicitly call the superclass constructor to prevent the implicit call
super();
this.initialize();
}
// ----------------------
// Accessors and Mutators
// ----------------------
protected BindingManager getBindingManager() {
if (this.bindingManager == null) {
this.bindingManager = new BindingManager(this);
}
return bindingManager;
}
public void setChildEdit(String childEdit) {
String oldValue = this.childEdit;
this.childEdit = childEdit;
this.qq_Listeners.firePropertyChange("childEdit", oldValue, this.childEdit);
}
public String getChildEdit() {
return this.childEdit;
}
public void setEditField(String editField) {
String oldValue = this.editField;
this.editField = editField;
this.qq_Listeners.firePropertyChange("editField", oldValue, this.editField);
}
public String getEditField() {
return this.editField;
}
// -------
// Methods
// -------
/**
* display<p>
* <p>
*/
public void display() {
UserWindow.open(this);
// ----------
// Event Loop
// ----------
EventManager.startEventLoop();
try {
EventRegistration TaskHandle_Shutdown_langThreadcurrentThread = ClientEventManager.register( Thread.currentThread(), "Shutdown" );
File f = new File();
f.setLocalName(new TextData("c:\\DocumentWin.txt"));
f.open(Framework.Constants.SP_AM_WRITE, false);
UIutils.traceWidget(this);
f.close();
while (true) {
UIutils.processGUIActions();
EventHandle qq_currentEvent = EventManager.waitForEvent();
if (qq_currentEvent == null)
break;
// -------------
// task.Shutdown
// -------------
if (qq_currentEvent.isEvent(TaskHandle_Shutdown_langThreadcurrentThread)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
break;
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
}
EventManager.deregister( TaskHandle_Shutdown_langThreadcurrentThread );
}
//catch (Exception qq_error) {
//Logger.getLogger("task.part.Event").error("Event loop terminated by unhandled exception: " + qq_error.getMessage(), qq_error );
//throw qq_error;
//}
finally {
EventManager.endEventLoop();
UserWindow.close(this);
}
}
// ------------------
// Window Definitions
// ------------------
// <editor-fold defaultstate="collapsed" desc="Window Definitions">
private int qq_defaultSet = 1;
private int qq_msgNumber = 0;
private int qq_msgSet = 0;
public DataField qq_childEdit;
public DataField qq_s1;
public DataField qq_s2;
public GridField qq_gfButtonSet;
public JButton qq_Button1;
public JButton qq_Button2;
public JButton qq_Button3;
public JButton qq_Button4;
public JScrollPane qq_editField_sp;
public MultiLineTextField qq_editField;
public TextGraphic qq_ChildLbl;
public TextGraphic qq_ParentLbl;
/**
* qq_Button1: transformed from: qqds_PushButton
* TagId=15
* isInherited=FALSE
*/
public JButton getqq_Button1() {
if (qq_Button1 == null) {
qq_Button1 = PushButtonFactory.newInstance("Button1", "b1");
qq_Button1.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_Button1, Constants.SP_NATURAL);
HeightPolicy.set(qq_Button1, Constants.SP_NATURAL);
qq_Button1.setMinimumSize(new Dimension(27, 23));
}
return qq_Button1;
}
public void setqq_Button1(JButton value) {
JButton oldValue = qq_Button1;
qq_Button1 = value;
this.qq_Listeners.firePropertyChange("qq_Button1", oldValue, value);
}
/**
* qq_Button4: transformed from: qqds_PushButton
* TagId=18
* isInherited=FALSE
*/
public JButton getqq_Button4() {
if (qq_Button4 == null) {
qq_Button4 = PushButtonFactory.newInstance("Button4", "b4");
qq_Button4.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_Button4, Constants.SP_NATURAL);
HeightPolicy.set(qq_Button4, Constants.SP_NATURAL);
qq_Button4.setMinimumSize(new Dimension(27, 23));
}
return qq_Button4;
}
public void setqq_Button4(JButton value) {
JButton oldValue = qq_Button4;
qq_Button4 = value;
this.qq_Listeners.firePropertyChange("qq_Button4", oldValue, value);
}
/**
* qq_Button3: transformed from: qqds_PushButton
* TagId=17
* isInherited=FALSE
*/
public JButton getqq_Button3() {
if (qq_Button3 == null) {
qq_Button3 = PushButtonFactory.newInstance("Button3", "b3");
qq_Button3.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_Button3, Constants.SP_NATURAL);
HeightPolicy.set(qq_Button3, Constants.SP_NATURAL);
qq_Button3.setMinimumSize(new Dimension(27, 23));
}
return qq_Button3;
}
public void setqq_Button3(JButton value) {
JButton oldValue = qq_Button3;
qq_Button3 = value;
this.qq_Listeners.firePropertyChange("qq_Button3", oldValue, value);
}
/**
* qq_Button2: transformed from: qqds_PushButton
* TagId=16
* isInherited=FALSE
*/
public JButton getqq_Button2() {
if (qq_Button2 == null) {
qq_Button2 = PushButtonFactory.newInstance("Button2", "b2");
qq_Button2.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_Button2, Constants.SP_NATURAL);
HeightPolicy.set(qq_Button2, Constants.SP_NATURAL);
qq_Button2.setMinimumSize(new Dimension(27, 23));
}
return qq_Button2;
}
public void setqq_Button2(JButton value) {
JButton oldValue = qq_Button2;
qq_Button2 = value;
this.qq_Listeners.firePropertyChange("qq_Button2", oldValue, value);
}
/**
* qq_gfButtonSet: transformed from: qqds_GridField
* TagId=14
* isInherited=FALSE
* In forte this was a 4x1 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_gfButtonSetProperties() {
qq_gfButtonSet.setCollapsed(true);
qq_gfButtonSet.setHeightPolicy(Constants.SP_NATURAL);
qq_gfButtonSet.setWidthPolicy(Constants.SP_NATURAL);
qq_gfButtonSet.setBackground(null);
}
public GridField getqq_gfButtonSet() {
if (qq_gfButtonSet == null) {
qq_gfButtonSet = CompoundFieldFactory.newGridField("gfButtonSet", false);
setqq_gfButtonSetProperties();
qq_gfButtonSet.setMinimumSize(new Dimension(119, 26));
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_gfButtonSet.add( getqq_Button1(), 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_gfButtonSet.add( getqq_Button2(), 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(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_gfButtonSet.add( getqq_Button3(), 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(0, 4, 0, 0); // Top, Left, Bottom, Right Margin
qq_gfButtonSet.add( getqq_Button4(), qq_gbc3 );
}
return qq_gfButtonSet;
}
public void setqq_gfButtonSet(GridField value) {
GridField oldValue = qq_gfButtonSet;
qq_gfButtonSet = value;
this.qq_Listeners.firePropertyChange("qq_gfButtonSet", oldValue, value);
}
/**
* qq_gfButtons: transformed from: qqds_GridField
* TagId=13
* isInherited=TRUE
* In forte this was a 1x1 grid field.
* The cell margins are all 50 mils
* The width policy is set to Parent, and the height policy is set to Natural.
*/
protected void setqq_gfButtonsProperties() {
super.setqq_gfButtonsProperties();
qq_gfButtons.setHeightPolicy(Constants.SP_NATURAL);
qq_gfButtons.setWidthPolicy(Constants.SP_TO_PARENT);
qq_gfButtons.setBackground(null);
}
public GridField getqq_gfButtons() {
if (qq_gfButtons == null) {
qq_gfButtons = CompoundFieldFactory.newGridField("gfButtons", false);
setqq_gfButtonsProperties();
qq_gfButtons.setMinimumSize(new Dimension(0, 39));
GridBagConstraints qq_gbc = new GridBagConstraints();
qq_gbc.gridx = 0; // Column 1
qq_gbc.gridy = 0; // Row 1
qq_gbc.weightx = 0;
qq_gbc.weighty = 0;
qq_gbc.anchor = GridBagConstraints.WEST; // Gravity - original: CG_MIDDLELEFT
qq_gbc.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_gfButtons.add( getqq_gfButtonSet(), qq_gbc );
}
return qq_gfButtons;
}
public void setqq_gfButtons(GridField value) {
GridField oldValue = qq_gfButtons;
qq_gfButtons = value;
this.qq_Listeners.firePropertyChange("qq_gfButtons", oldValue, value);
}
/**
* qq_s2: transformed from: qqds_DataField
* TagId=24
* isInherited=FALSE
*/
public DataField getqq_s2() {
if (qq_s2 == null) {
// Mask type: MK_NONE
qq_s2 = DataFieldFactory.newDataField("s2", 61, Constants.MK_NONE);
qq_s2.setOriginalFormatText(null);
qq_s2.setOpaque(false);
qq_s2.setHorizontalAlignment(JTextField.LEFT);
getBindingManager().bindComponent(qq_s2, "s2");
WidthPolicy.set(qq_s2, Constants.SP_TO_PARENT);
HeightPolicy.set(qq_s2, Constants.SP_NATURAL);
int width = UIutils.colsToPixels(0, qq_s2);
qq_s2.setMinimumSize(new Dimension(width, 19));
}
return qq_s2;
}
public void setqq_s2(DataField value) {
DataField oldValue = qq_s2;
qq_s2 = value;
this.qq_Listeners.firePropertyChange("qq_s2", oldValue, value);
}
/**
* qq_s1: transformed from: qqds_DataField
* TagId=23
* isInherited=FALSE
*/
public DataField getqq_s1() {
if (qq_s1 == null) {
// Mask type: MK_NONE
qq_s1 = DataFieldFactory.newDataField("s1", 9, Constants.MK_NONE);
qq_s1.setOriginalFormatText(null);
qq_s1.setOpaque(false);
qq_s1.setHorizontalAlignment(JTextField.LEFT);
getBindingManager().bindComponent(qq_s1, "s1");
WidthPolicy.set(qq_s1, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_s1, Constants.SP_NATURAL);
qq_s1.setMinimumSize(new Dimension(72, 19));
qq_s1.setSize(new Dimension(72, 19));
}
return qq_s1;
}
public void setqq_s1(DataField value) {
DataField oldValue = qq_s1;
qq_s1 = value;
this.qq_Listeners.firePropertyChange("qq_s1", oldValue, value);
}
/**
* qq_gfStatus: transformed from: qqds_GridField
* TagId=22
* isInherited=TRUE
* In forte this was a 2x1 grid field.
* There are no cell margins set
* The width policy is set to Parent, and the height policy is set to Natural.
*/
protected void setqq_gfStatusProperties() {
super.setqq_gfStatusProperties();
qq_gfStatus.setHeightPolicy(Constants.SP_NATURAL);
qq_gfStatus.setWidthPolicy(Constants.SP_TO_PARENT);
qq_gfStatus.setBackground(null);
}
public GridField getqq_gfStatus() {
if (qq_gfStatus == null) {
qq_gfStatus = CompoundFieldFactory.newGridField("gfStatus", false);
setqq_gfStatusProperties();
qq_gfStatus.setMinimumSize(new Dimension(0, 23));
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_gfStatus.add( getqq_s1(), qq_gbc );
GridBagConstraints qq_gbc1 = new GridBagConstraints();
qq_gbc1.gridx = 1; // Column 2
qq_gbc1.gridy = 0; // Row 1
qq_gbc1.weightx = 1;
qq_gbc1.weighty = 0;
qq_gbc1.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc1.fill = GridBagConstraints.HORIZONTAL; // Size to parent - original: W = SP_TO_PARENT
qq_gbc1.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_gfStatus.add( getqq_s2(), qq_gbc1 );
}
return qq_gfStatus;
}
public void setqq_gfStatus(GridField value) {
GridField oldValue = qq_gfStatus;
qq_gfStatus = value;
this.qq_Listeners.firePropertyChange("qq_gfStatus", oldValue, value);
}
/**
* qq_ChildLbl: transformed from: qqds_TextGraphic
* TagId=65548
* isInherited=FALSE
*/
public TextGraphic getqq_ChildLbl() {
if (qq_ChildLbl == null) {
qq_ChildLbl = GraphicFactory.newTextGraphic("Child:\n", "");
// OPTIONAL UIutils.reloadLabelText(qq_ChildLbl, mcat);
WidthPolicy.set(qq_ChildLbl, Constants.SP_NATURAL);
HeightPolicy.set(qq_ChildLbl, Constants.SP_NATURAL);
qq_ChildLbl.setMinimumSize(new Dimension(33, 16));
}
return qq_ChildLbl;
}
public void setqq_ChildLbl(TextGraphic value) {
TextGraphic oldValue = qq_ChildLbl;
qq_ChildLbl = value;
this.qq_Listeners.firePropertyChange("qq_ChildLbl", oldValue, value);
}
/**
* qq_childEdit: transformed from: qqds_DataField
* TagId=65549
* isInherited=FALSE
*/
public DataField getqq_childEdit() {
if (qq_childEdit == null) {
// Mask type: MK_NONE
qq_childEdit = DataFieldFactory.newDataField("childEdit", 63, Constants.MK_NONE);
qq_childEdit.setOriginalFormatText(null);
qq_childEdit.setHorizontalAlignment(JTextField.LEFT);
getBindingManager().bindComponent(qq_childEdit, "childEdit");
WidthPolicy.set(qq_childEdit, Constants.SP_TO_PARENT);
HeightPolicy.set(qq_childEdit, Constants.SP_NATURAL);
int width = UIutils.colsToPixels(0, qq_childEdit);
qq_childEdit.setMinimumSize(new Dimension(width, 19));
}
return qq_childEdit;
}
public void setqq_childEdit(DataField value) {
DataField oldValue = qq_childEdit;
qq_childEdit = value;
this.qq_Listeners.firePropertyChange("qq_childEdit", oldValue, value);
}
/**
* qq_ParentLbl: transformed from: qqds_TextGraphic
* TagId=65550
* isInherited=FALSE
*/
public TextGraphic getqq_ParentLbl() {
if (qq_ParentLbl == null) {
qq_ParentLbl = GraphicFactory.newTextGraphic("Parent:\n", "");
// OPTIONAL UIutils.reloadLabelText(qq_ParentLbl, mcat);
WidthPolicy.set(qq_ParentLbl, Constants.SP_NATURAL);
HeightPolicy.set(qq_ParentLbl, Constants.SP_NATURAL);
qq_ParentLbl.setMinimumSize(new Dimension(42, 16));
}
return qq_ParentLbl;
}
public void setqq_ParentLbl(TextGraphic value) {
TextGraphic oldValue = qq_ParentLbl;
qq_ParentLbl = value;
this.qq_Listeners.firePropertyChange("qq_ParentLbl", oldValue, value);
}
/**
* qq_editField_sp: transformed from: qqds_TextField
* TagId=65551
* isInherited=FALSE
*/
public JScrollPane getqq_editField_sp() {
if (qq_editField_sp == null) {
qq_editField_sp = CompoundFieldFactory.newScrollPane();
qq_editField_sp.setName("editField");
qq_editField_sp.setViewportView(getqq_editField());
qq_editField_sp.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
qq_editField_sp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
WidthPolicy.set(qq_editField_sp, Constants.SP_TO_PARENT);
HeightPolicy.set(qq_editField_sp, Constants.SP_TO_PARENT);
qq_editField_sp.setSize(new Dimension(422, 275));
qq_editField_sp.setMinimumSize(new Dimension(422, 275));
qq_editField_sp.setPreferredSize(new Dimension(422, 275));
}
return qq_editField_sp;
}
public void setqq_editField_sp(JScrollPane value) {
JScrollPane oldValue = qq_editField_sp;
qq_editField_sp = value;
this.qq_Listeners.firePropertyChange("qq_editField_sp", oldValue, value);
}
/**
* qq_editField: transformed from: qqds_TextField
* TagId=65551
* isInherited=FALSE
*/
public MultiLineTextField getqq_editField() {
if (qq_editField == null) {
qq_editField = TextEditFactory.newTextField("editField", 19, 58);
getBindingManager().bindComponent(qq_editField, "editField");
ExitOnTab.set(qq_editField, true);
WidthPolicy.set(qq_editField, Constants.SP_TO_PARENT);
HeightPolicy.set(qq_editField, Constants.SP_TO_PARENT);
}
return qq_editField;
}
public void setqq_editField(MultiLineTextField value) {
MultiLineTextField oldValue = qq_editField;
qq_editField = value;
this.qq_Listeners.firePropertyChange("qq_editField", oldValue, value);
}
/**
* qq_gfInner: transformed from: qqds_GridField
* TagId=33
* isInherited=TRUE
* In forte this was a 2x2 grid field.
* The cell margins are all 50 mils
* The width policy is set to Parent, and the height policy is set to Parent.
*/
protected void setqq_gfInnerProperties() {
super.setqq_gfInnerProperties();
qq_gfInner.setCellTopMargin(25);
qq_gfInner.setCellBottomMargin(25);
qq_gfInner.setCellLeftMargin(25);
qq_gfInner.setCellRightMargin(25);
qq_gfInner.setHeightPolicy(Constants.SP_TO_PARENT);
qq_gfInner.setWidthPolicy(Constants.SP_TO_PARENT);
qq_gfInner.setBackground(null);
}
public GridField getqq_gfInner() {
if (qq_gfInner == null) {
qq_gfInner = CompoundFieldFactory.newGridField("gfInner", false);
setqq_gfInnerProperties();
qq_gfInner.setMinimumSize(new Dimension(0, 0));
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_gfInner.add( getqq_ChildLbl(), qq_gbc );
GridBagConstraints qq_gbc1 = new GridBagConstraints();
qq_gbc1.gridx = 1; // Column 2
qq_gbc1.gridy = 0; // Row 1
qq_gbc1.weightx = 1;
qq_gbc1.weighty = 0;
qq_gbc1.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc1.fill = GridBagConstraints.HORIZONTAL; // Size to parent - original: W = SP_TO_PARENT
qq_gbc1.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_gfInner.add( getqq_childEdit(), 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 = 1;
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_gfInner.add( getqq_ParentLbl(), qq_gbc2 );
GridBagConstraints qq_gbc3 = new GridBagConstraints();
qq_gbc3.gridx = 1; // Column 2
qq_gbc3.gridy = 1; // Row 2
qq_gbc3.weightx = 1;
qq_gbc3.weighty = 1;
qq_gbc3.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc3.fill = GridBagConstraints.BOTH; // Size to parent - original: H & W = SP_TO_PARENT
qq_gbc3.insets = new Insets(2, 2, 2, 2); // Top, Left, Bottom, Right Margin
qq_gfInner.add( getqq_editField_sp(), qq_gbc3 );
}
return qq_gfInner;
}
public void setqq_gfInner(GridField value) {
GridField oldValue = qq_gfInner;
qq_gfInner = value;
this.qq_Listeners.firePropertyChange("qq_gfInner", oldValue, value);
}
/**
* qq_gfOuter: transformed from: qqds_GridField
* TagId=12
* isInherited=TRUE
* In forte this was a 1x3 grid field.
* There are no cell margins set
* The width policy is set to Parent, and the height policy is set to Parent.
*/
protected void setqq_gfOuterProperties() {
super.setqq_gfOuterProperties();
qq_gfOuter.setHeightPolicy(Constants.SP_TO_PARENT);
qq_gfOuter.setWidthPolicy(Constants.SP_TO_PARENT);
qq_gfOuter.setBackground(null);
}
public GridField getqq_gfOuter() {
if (qq_gfOuter == null) {
qq_gfOuter = CompoundFieldFactory.newGridField("gfOuter", false);
setqq_gfOuterProperties();
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.HORIZONTAL; // Size to parent - original: W = SP_TO_PARENT
qq_gbc.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_gfOuter.add( getqq_gfButtons(), 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 = 10;
qq_gbc1.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc1.fill = GridBagConstraints.BOTH; // Size to parent - original: H & W = SP_TO_PARENT
qq_gbc1.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_gfOuter.add( getqq_gfInner(), 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.HORIZONTAL; // Size to parent - original: W = SP_TO_PARENT
qq_gbc2.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_gfOuter.add( getqq_gfStatus(), qq_gbc2 );
}
return qq_gfOuter;
}
public void setqq_gfOuter(GridField value) {
GridField oldValue = qq_gfOuter;
qq_gfOuter = value;
this.qq_Listeners.firePropertyChange("qq_gfOuter", oldValue, value);
}
/**
* Form: transformed from: qqds_Panel
* TagId=1
* isInherited=FALSE
*/
protected void setFormProperties() {
super.setFormProperties();
}
public JPanel getForm() {
if (Form == null) {
Form = CompoundFieldFactory.newForm();
this.setFormProperties();
Form.add( getqq_gfOuter() );
}
return Form;
}
public void setForm(JPanel value) {
JPanel oldValue = Form;
Form = value;
this.qq_Listeners.firePropertyChange("Form", oldValue, value);
}
/**
* Gets the default message set number for the window and its widgets.
*/
public int getSetNum() {
return this.qq_defaultSet;
}
/**
* Sets the default message set number for the window and its widgets.
*/
public void setSetNum(int value) {
this.qq_defaultSet = value;
}
/**
* Gets the message set number for the message number of the window's title.
*/
public int getTitleSetNum() {
return this.qq_msgSet;
}
/**
* Sets the message set number for the message number of the window's title.
*/
public void setTitleSetNum(int value) {
this.qq_msgSet = value;
}
/**
* Gets the message number for the message number of the window's title.
*/
public int getTitleMsgNum() {
return this.qq_msgNumber;
}
/**
* Sets the message number for the message number of the window's title.
*/
public void setTitleMsgNum(int value) {
this.qq_msgNumber = value;
}
/**
* Initialise the window and all its children.
*/
protected void initialize() {
if (this.Form == null) {
this.setName( "DocumentWin" );
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
//-----------------
public void qq_setupWindowUsage() {
this.usage = new WindowUsageMap();
this.usage.add(getqq_gfOuter(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_gfButtons(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_gfButtonSet(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_Button1(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_Button4(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_Button3(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_Button2(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_gfStatus(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_s2(), Constants.FS_VIEWONLY, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_s1(), Constants.FS_VIEWONLY, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_gfInner(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_ChildLbl(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_childEdit(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_ParentLbl(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_editField(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
}
// </editor-fold>
// -----------
// Main method
// -----------
public static void main(String []args) {
KeyboardFocusManager.setCurrentKeyboardFocusManager(new ForteKeyboardFocusManager());
try {
UIManager.setLookAndFeel(new Win32LookAndFeel());
}
catch (Exception e) {}
ToolTipManager.sharedInstance().setDismissDelay(Integer.MAX_VALUE);
DocumentWin myClass = new DocumentWin();
myClass.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
myClass.setVisible(true);
UIutils.processGUIActions();
}
} // end class DocumentWin
// c Pass 2 Conversion Time: 265 milliseconds