package ArrayWithGraphics;
import ArrayWithGraphics.Array_Of_Thing;
import ArrayWithGraphics.PersonDN;
import ArrayWithGraphics.Thing;
import DisplayProject.ArrayColumn;
import DisplayProject.Array_Of_OutlineColumnDesc;
import DisplayProject.BodyGrid;
import DisplayProject.CloseHideAdaptor;
import DisplayProject.Constants;
import DisplayProject.CursorMgr;
import DisplayProject.DataField;
import DisplayProject.GridField;
import DisplayProject.OutlineColumnDesc;
import DisplayProject.PaletteList;
import DisplayProject.PictureField;
import DisplayProject.TableJButton;
import DisplayProject.UDSWindow;
import DisplayProject.UIutils;
import DisplayProject.WindowManager;
import DisplayProject.WindowUsageMap;
import DisplayProject.actions.AppletConnectionInfo;
import DisplayProject.actions.FrameColor;
import DisplayProject.actions.HeightPolicy;
import DisplayProject.actions.ImageValue;
import DisplayProject.actions.TreeRootVisible;
import DisplayProject.actions.UserWindow;
import DisplayProject.actions.WidthPolicy;
import DisplayProject.binding.BindingManager;
import DisplayProject.binding.beans.ExtendedPropertyChangeSupport;
import DisplayProject.binding.beans.Observable;
import DisplayProject.controls.ArrayField;
import DisplayProject.controls.OutlineField;
import DisplayProject.controls.PictureGraphic;
import DisplayProject.events.ClientEventManager;
import DisplayProject.factory.CompoundFieldFactory;
import DisplayProject.factory.DataFieldFactory;
import DisplayProject.factory.GraphicFactory;
import DisplayProject.factory.PaletteListFactory;
import DisplayProject.factory.PictureFieldFactory;
import DisplayProject.factory.PushButtonFactory;
import DisplayProject.factory.TableFactory;
import DisplayProject.plaf.Win32LookAndFeel;
import DisplayProject.table.ArrayFieldCellHelper;
import DisplayProject.table.ButtonCellEditor;
import DisplayProject.table.ButtonCellRenderer;
import DisplayProject.table.FormattedCellEditor;
import DisplayProject.table.FormattedCellRenderer;
import DisplayProject.table.OutlineFieldTableCellEditor;
import DisplayProject.table.OutlineFieldTableCellRenderer;
import DisplayProject.table.PictureFieldTableCellEditor;
import DisplayProject.table.PictureFieldTableCellRenderer;
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.ListElement;
import Framework.RuntimeProperties;
import Framework.UsageException;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import java.awt.KeyboardFocusManager;
import java.awt.Window;
import java.awt.event.ComponentListener;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.Serializable;
import java.lang.String;
import java.net.MalformedURLException;
import java.net.URL;
import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.UIManager;
import javax.swing.table.DefaultTableCellRenderer;
import org.apache.log4j.Logger;
/**
* Main<p>
* <p>
* @author Generated from Forte
* @since 19-Nov-2008
*/
@RuntimeProperties(isDistributed=false, isAnchored=false, isShared=false, isTransactional=false)
@UDSWindow()
@SuppressWarnings("serial")
public class Main
extends JFrame
implements Serializable, Observable
{
// ----------
// Attributes
// ----------
protected File DefaultHelpFile;
protected BindingManager bindingManager = null;
public PropertyChangeSupport qq_Listeners = new ExtendedPropertyChangeSupport(this, true);
private Array_Of_Thing<Thing> things;
private ImageData picField;
private int picPalette;
// ------------
// Constructors
// ------------
public Main() {
// Explicitly call the superclass constructor to prevent the implicit call
super();
this.initialize();
ImageData i = ImageValue.get(this.getqq_sourceImage());
this.setThings(new Array_Of_Thing<Thing>());
PersonDN p = new PersonDN();
this.getThings().set(0, new Thing(i, "Bob"));
p.setName("Bob");
p.setAge(22);
p.setParent(this.getThings().get(0).getPerson());
p = new PersonDN();
p.setName("Bob");
p.setAge(22);
p.setParent(this.getThings().get(0).getPerson());
this.getThings().set(1, new Thing(i, "Mary"));
p = new PersonDN();
p.setName("Mary");
p.setAge(34);
p.setParent(this.getThings().get(1).getPerson());
p = new PersonDN();
p.setName("Mary");
p.setAge(34);
p.setParent(this.getThings().get(1).getPerson());
this.getThings().set(2, new Thing(i, "Jim"));
p = new PersonDN();
p.setName("Jim");
p.setAge(86);
p.setParent(this.getThings().get(2).getPerson());
p = new PersonDN();
p.setName("Jim");
p.setAge(86);
p.setParent(this.getThings().get(2).getPerson());
this.getThings().set(3, new Thing(i, "Sue"));
p = new PersonDN();
p.setName("Sue");
p.setAge(56);
p.setParent(this.getThings().get(3).getPerson());
p = new PersonDN();
p.setName("Sue");
p.setAge(56);
p.setParent(this.getThings().get(3).getPerson());
// TODO [1115,Critical]: The use of BodyGrid on an array field is unsupported in Java
BodyGrid.get(this.getqq_things()).setColumnJustifyWeight(2, (byte)2);
// TODO [1115,Critical]: The use of BodyGrid on an array field is unsupported in Java
BodyGrid.get(this.getqq_things()).setColumnJustifyWeight(5, (byte)10);
}
// ----------------------
// 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 setThings(Array_Of_Thing<Thing> things) {
Array_Of_Thing<Thing> oldValue = this.things;
this.things = things;
this.qq_Listeners.firePropertyChange("things", oldValue, this.things);
}
public Array_Of_Thing<Thing> getThings() {
return this.things;
}
public void setPicField(ImageData picField) {
ImageData oldValue = this.picField;
this.picField = picField;
this.qq_Listeners.firePropertyChange("picField", oldValue, this.picField);
}
public ImageData getPicField() {
return this.picField;
}
public void setPicPalette(int picPalette) {
int oldValue = this.picPalette;
this.picPalette = picPalette;
this.qq_Listeners.firePropertyChange("picPalette", oldValue, this.picPalette);
}
public int getPicPalette() {
return this.picPalette;
}
// -------
// 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);
this.setPicField(ImageValue.get(this.getqq_sourceImage()));
// ----------
// Event Loop
// ----------
EventManager.startEventLoop();
try {
EventRegistration TaskHandle_Shutdown_langThreadcurrentThread = ClientEventManager.register( Thread.currentThread(), "Shutdown" );
EventRegistration PictureButton_Click_getqq_thingsArray_pb = ClientEventManager.register( this.getqq_thingsArray_pb(), "Click" );
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();
}
}
// --------------------
// <things[*].pb>.click
// --------------------
else if (qq_currentEvent.isEvent(PictureButton_Click_getqq_thingsArray_pb)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Logger.getLogger("task.part.logmgr").info("Click");
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
}
EventManager.deregister( TaskHandle_Shutdown_langThreadcurrentThread );
EventManager.deregister( PictureButton_Click_getqq_thingsArray_pb );
}
//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_things;
public DataField qq_thingsArray_name;
public DefaultTableCellRenderer qq_thingsArray_pg;
public GridField qq_GridField34;
public GridField qq_GridField35;
public GridField qq_GridField36;
public JButton qq_picButton;
public JPanel Form;
public JScrollPane qq_things_sp;
public OutlineColumnDesc qq_thingsArray_Person_Age;
public OutlineColumnDesc qq_thingsArray_Person_Name;
public OutlineField qq_thingsArray_Person;
public PaletteList qq_picPalette;
public PictureField qq_picField;
public PictureField qq_thingsArray_Img;
public PictureGraphic qq_sourceImage;
public TableJButton qq_thingsArray_pb;
/**
* qq_things_sp: transformed from: qqds_ArrayField
* TagId=12
* isInherited=FALSE
*/
public JScrollPane getqq_things_sp() {
if (qq_things_sp == null) {
qq_things_sp = CompoundFieldFactory.newScrollPane();
qq_things_sp.setName("things");
qq_things_sp.setViewportView(getqq_things());
qq_things_sp.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
qq_things_sp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
qq_things_sp.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));
qq_things_sp.setBackground(null);
qq_things_sp.getViewport().setBackground(null);
FrameColor.set(qq_things_sp, Constants.C_INHERIT);
WidthPolicy.set(qq_things_sp, Constants.SP_TO_PARENT);
HeightPolicy.set(qq_things_sp, Constants.SP_NATURAL);
// OPTIONAL qq_things_sp.setSize(new Dimension(599, 206));
qq_things_sp.setMinimumSize(new Dimension(599, 206));
qq_things_sp.setPreferredSize(new Dimension(599, 206));
}
return qq_things_sp;
}
public void setqq_things_sp(JScrollPane value) {
JScrollPane oldValue = qq_things_sp;
qq_things_sp = value;
this.qq_Listeners.firePropertyChange("qq_things_sp", oldValue, value);
}
/**
* qq_things: transformed from: qqds_ArrayField
* TagId=12
* isInherited=FALSE
*/
public ArrayField getqq_things() {
if (qq_things == null) {
qq_things = TableFactory.newArrayField("things", 60);
this.getBindingManager().bindComponent(qq_things, "things", Thing.class,
new String[] { "",
"name",
"",
"img",
"person" });
qq_things.setVisibleRows(3);
// === Column model setup ===
// pb converted from qqds_PictureButton
ArrayColumn qq_thingsArray_pb_Column = new ArrayColumn("pb", 0, 40, new ButtonCellRenderer(getqq_thingsArray_pb()), new ButtonCellEditor(getqq_thingsArray_pb()), true);
qq_thingsArray_pb_Column.setHeaderValue("pb");
qq_thingsArray_pb_Column.setVisible(true);
qq_things.addColumn(qq_thingsArray_pb_Column);
// name converted from qqds_DataField
ArrayColumn qq_thingsArray_name_Column = new ArrayColumn("name", 1, 148, new FormattedCellRenderer(getqq_thingsArray_name()), new FormattedCellEditor(getqq_thingsArray_name()), true);
qq_thingsArray_name_Column.setHeaderValue("name");
qq_thingsArray_name_Column.setVisible(true);
qq_things.addColumn(qq_thingsArray_name_Column);
// pg converted from qqds_PictureGraphic
ArrayColumn qq_thingsArray_pg_Column = new ArrayColumn("pg", 2, 31, getqq_thingsArray_pg(), null, false);
qq_thingsArray_pg_Column.setHeaderValue("pg");
qq_thingsArray_pg_Column.setVisible(true);
qq_things.addColumn(qq_thingsArray_pg_Column);
// Img converted from qqds_PictureField
ArrayColumn qq_thingsArray_Img_Column = new ArrayColumn("Img", 3, 62, new PictureFieldTableCellRenderer(getqq_thingsArray_Img()), new PictureFieldTableCellEditor(getqq_thingsArray_Img()));
qq_thingsArray_Img_Column.setHeaderValue("Img");
qq_thingsArray_Img_Column.setVisible(true);
qq_things.addColumn(qq_thingsArray_Img_Column);
// Person converted from qqds_OutlineField
ArrayColumn qq_thingsArray_Person_Column = new ArrayColumn("Person", 4, 297, new OutlineFieldTableCellRenderer(getqq_thingsArray_Person()), new OutlineFieldTableCellEditor(getqq_thingsArray_Person()), true);
qq_thingsArray_Person_Column.setHeaderValue("Person");
qq_thingsArray_Person_Column.setVisible(true);
qq_things.addColumn(qq_thingsArray_Person_Column);
// === End column model ===
TableFactory.postModelArrayField(qq_things);
}
return qq_things;
}
public void setqq_things(ArrayField value) {
ArrayField oldValue = qq_things;
qq_things = value;
this.qq_Listeners.firePropertyChange("qq_things", oldValue, value);
}
/**
* qq_sourceImage: transformed from: qqds_PictureGraphic
* TagId=25
* isInherited=FALSE
*/
public PictureGraphic getqq_sourceImage() {
if (qq_sourceImage == null) {
qq_sourceImage = GraphicFactory.newPictureGraphic("", Constants.CG_CENTER);
qq_sourceImage.setImageValue(new ImageData(new ImageIcon(Main.class.getResource("main.qq_sourceImage.png"))));
qq_sourceImage.setWidthPolicy(Constants.SP_NATURAL);
qq_sourceImage.setHeightPolicy(Constants.SP_NATURAL);
qq_sourceImage.setImageSizePolicy(Constants.IS_NATURAL);
qq_sourceImage.setOpaque( true );
qq_sourceImage.setSize(new Dimension(31, 12));
qq_sourceImage.setMinimumSize(new Dimension(31, 12));
qq_sourceImage.setPreferredSize(new Dimension(31, 12));
}
return qq_sourceImage;
}
public void setqq_sourceImage(PictureGraphic value) {
PictureGraphic oldValue = qq_sourceImage;
qq_sourceImage = value;
this.qq_Listeners.firePropertyChange("qq_sourceImage", oldValue, value);
}
/**
* qq_picField: transformed from: qqds_PictureField
* TagId=29
* isInherited=FALSE
*/
public PictureField getqq_picField() {
if (qq_picField == null) {
qq_picField = PictureFieldFactory.newInstance("picField", Constants.IS_FIELD, Constants.CG_CENTER);
getBindingManager().bindComponent(qq_picField, "picField");
WidthPolicy.set(qq_picField, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_picField, Constants.SP_EXPLICIT);
qq_picField.setSize(new Dimension(48, 38));
qq_picField.setMinimumSize(new Dimension(48, 38));
qq_picField.setPreferredSize(new Dimension(48, 38));
}
return qq_picField;
}
public void setqq_picField(PictureField value) {
PictureField oldValue = qq_picField;
qq_picField = value;
this.qq_Listeners.firePropertyChange("qq_picField", oldValue, value);
}
/**
* qq_picButton: transformed from: qqds_PictureButton
* TagId=28
* isInherited=FALSE
*/
public JButton getqq_picButton() {
if (qq_picButton == null) {
qq_picButton = PushButtonFactory.newInstance("picButton");
qq_picButton.setIcon(new ImageIcon(Main.class.getResource("main.qq_picButton.png")));
qq_picButton.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_picButton, Constants.SP_NATURAL);
HeightPolicy.set(qq_picButton, Constants.SP_NATURAL);
qq_picButton.setSize(new Dimension(40, 21));
qq_picButton.setMinimumSize(new Dimension(40, 21));
qq_picButton.setPreferredSize(new Dimension(40, 21));
}
return qq_picButton;
}
public void setqq_picButton(JButton value) {
JButton oldValue = qq_picButton;
qq_picButton = value;
this.qq_Listeners.firePropertyChange("qq_picButton", oldValue, value);
}
/**
* qq_GridField36: transformed from: qqds_GridField
* TagId=36
* isInherited=FALSE
* In forte this was a 3x1 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_GridField36Properties() {
qq_GridField36.setCollapsed(true);
qq_GridField36.setHeightPolicy(Constants.SP_NATURAL);
qq_GridField36.setWidthPolicy(Constants.SP_NATURAL);
qq_GridField36.setBackground(null);
}
public GridField getqq_GridField36() {
if (qq_GridField36 == null) {
qq_GridField36 = CompoundFieldFactory.newGridField("qq_GridField36", true);
setqq_GridField36Properties();
qq_GridField36.setMinimumSize(new Dimension(120, 38));
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_GridField36.add( getqq_picButton(), 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_GridField36.add( getqq_sourceImage(), 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_GridField36.add( getqq_picField(), qq_gbc2 );
}
return qq_GridField36;
}
public void setqq_GridField36(GridField value) {
GridField oldValue = qq_GridField36;
qq_GridField36 = value;
this.qq_Listeners.firePropertyChange("qq_GridField36", oldValue, value);
}
/**
* qq_picPalette: transformed from: qqds_PaletteList
* TagId=30
* isInherited=FALSE
*/
public PaletteList getqq_picPalette() {
if (qq_picPalette == null) {
qq_picPalette = PaletteListFactory.newPaletteList();
qq_picPalette.setOrientation( Constants.FO_VERTICAL );
qq_picPalette.setWrapSize( 2 );
Array_Of_ListElement<ListElement> aole = new Array_Of_ListElement<ListElement>();
aole.add(new ListElement(new ImageData(new ImageIcon(Main.class.getResource("main.qq_picPalette_1.png"))),
1, "Item 1\n", ListElement.qq_Resolver.cIMAGEVALUE_INTEGERVALUE_TEXTVALUE));
aole.add(new ListElement(new ImageData(new ImageIcon(Main.class.getResource("main.qq_picPalette_2.png"))),
2, "Item 2\n", ListElement.qq_Resolver.cIMAGEVALUE_INTEGERVALUE_TEXTVALUE));
aole.add(new ListElement(new ImageData(new ImageIcon(Main.class.getResource("main.qq_picPalette_3.png"))),
3, "Item 3\n", ListElement.qq_Resolver.cIMAGEVALUE_INTEGERVALUE_TEXTVALUE));
aole.add(new ListElement(new ImageData(new ImageIcon(Main.class.getResource("main.qq_picPalette_4.png"))),
4, "Item 4\n", ListElement.qq_Resolver.cIMAGEVALUE_INTEGERVALUE_TEXTVALUE));
getBindingManager().bindComponent(qq_picPalette, "picPalette", aole);
WidthPolicy.set(qq_picPalette, Constants.SP_NATURAL);
HeightPolicy.set(qq_picPalette, Constants.SP_NATURAL);
qq_picPalette.setSize(new Dimension(76, 38));
qq_picPalette.setMinimumSize(new Dimension(76, 38));
qq_picPalette.setPreferredSize(new Dimension(76, 38));
}
return qq_picPalette;
}
public void setqq_picPalette(PaletteList value) {
PaletteList oldValue = qq_picPalette;
qq_picPalette = value;
this.qq_Listeners.firePropertyChange("qq_picPalette", oldValue, value);
}
/**
* qq_GridField35: transformed from: qqds_GridField
* TagId=35
* isInherited=FALSE
* In forte this was a 1x2 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_GridField35Properties() {
qq_GridField35.setCollapsed(true);
qq_GridField35.setHeightPolicy(Constants.SP_NATURAL);
qq_GridField35.setWidthPolicy(Constants.SP_NATURAL);
qq_GridField35.setBackground(null);
}
public GridField getqq_GridField35() {
if (qq_GridField35 == null) {
qq_GridField35 = CompoundFieldFactory.newGridField("qq_GridField35", true);
setqq_GridField35Properties();
qq_GridField35.setMinimumSize(new Dimension(120, 76));
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_GridField35.add( getqq_GridField36(), qq_gbc );
GridBagConstraints qq_gbc1 = new GridBagConstraints();
qq_gbc1.gridx = 0; // Column 1
qq_gbc1.gridy = 1; // Row 2
qq_gbc1.weightx = 0;
qq_gbc1.weighty = 0;
qq_gbc1.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc1.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc1.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_GridField35.add( getqq_picPalette(), qq_gbc1 );
}
return qq_GridField35;
}
public void setqq_GridField35(GridField value) {
GridField oldValue = qq_GridField35;
qq_GridField35 = value;
this.qq_Listeners.firePropertyChange("qq_GridField35", oldValue, value);
}
/**
* qq_GridField34: transformed from: qqds_GridField
* TagId=34
* isInherited=FALSE
* In forte this was a 1x2 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_GridField34Properties() {
qq_GridField34.setCollapsed(true);
qq_GridField34.setHeightPolicy(Constants.SP_TO_PARENT);
qq_GridField34.setWidthPolicy(Constants.SP_TO_PARENT);
qq_GridField34.setBackground(null);
}
public GridField getqq_GridField34() {
if (qq_GridField34 == null) {
qq_GridField34 = CompoundFieldFactory.newGridField("qq_GridField34", true);
setqq_GridField34Properties();
qq_GridField34.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.HORIZONTAL; // Size to parent - original: W = SP_TO_PARENT
qq_gbc.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_GridField34.add( getqq_things_sp(), qq_gbc );
GridBagConstraints qq_gbc1 = new GridBagConstraints();
qq_gbc1.gridx = 0; // Column 1
qq_gbc1.gridy = 1; // Row 2
qq_gbc1.weightx = 0;
qq_gbc1.weighty = 0;
qq_gbc1.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc1.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc1.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_GridField34.add( getqq_GridField35(), qq_gbc1 );
}
return qq_GridField34;
}
public void setqq_GridField34(GridField value) {
GridField oldValue = qq_GridField34;
qq_GridField34 = value;
this.qq_Listeners.firePropertyChange("qq_GridField34", 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_GridField34() );
}
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_thingsArray_pb: transformed from: qqds_PictureButton
* TagId=23
* isInherited=FALSE
*/
public TableJButton getqq_thingsArray_pb() {
if (qq_thingsArray_pb == null) {
qq_thingsArray_pb = PushButtonFactory.newTableInstance("pb", new ImageIcon(Main.class.getResource("main.qq_thingsArray_pb.png")));
qq_thingsArray_pb.setVerifyInputWhenFocusTarget(true);
ArrayFieldCellHelper.setUpCellEditor(qq_thingsArray_pb, qq_things, 0, false);
WidthPolicy.set(qq_thingsArray_pb, Constants.SP_NATURAL);
HeightPolicy.set(qq_thingsArray_pb, Constants.SP_NATURAL);
qq_thingsArray_pb.setSize(new Dimension(40, 21));
qq_thingsArray_pb.setMinimumSize(new Dimension(40, 21));
qq_thingsArray_pb.setPreferredSize(new Dimension(40, 21));
qq_thingsArray_pb.setLocation(9, 12);
}
return qq_thingsArray_pb;
}
public void setqq_thingsArray_pb(TableJButton value) {
TableJButton oldValue = qq_thingsArray_pb;
qq_thingsArray_pb = value;
this.qq_Listeners.firePropertyChange("qq_thingsArray_pb", oldValue, value);
}
/**
* qq_thingsArray_name: transformed from: qqds_DataField
* TagId=15
* isInherited=FALSE
*/
public DataField getqq_thingsArray_name() {
if (qq_thingsArray_name == null) {
// Mask type: MK_NONE
qq_thingsArray_name = DataFieldFactory.newDataField("name", 23, Constants.MK_NONE);
qq_thingsArray_name.setOriginalFormatText(null);
qq_thingsArray_name.setHorizontalAlignment(JTextField.LEFT);
WidthPolicy.set(qq_thingsArray_name, Constants.SP_TO_PARENT);
HeightPolicy.set(qq_thingsArray_name, Constants.SP_NATURAL);
int width = UIutils.colsToPixels(23, qq_thingsArray_name);
qq_thingsArray_name.setMinimumSize(new Dimension(width, 19));
qq_thingsArray_name.setLocation(55, 12);
ArrayFieldCellHelper.setUpCellEditor(qq_thingsArray_name, qq_things, 1, false);
}
return qq_thingsArray_name;
}
public void setqq_thingsArray_name(DataField value) {
DataField oldValue = qq_thingsArray_name;
qq_thingsArray_name = value;
this.qq_Listeners.firePropertyChange("qq_thingsArray_name", oldValue, value);
}
/**
* qq_thingsArray_pg: transformed from: qqds_PictureGraphic
* TagId=21
* isInherited=FALSE
*/
public DefaultTableCellRenderer getqq_thingsArray_pg() {
if (qq_thingsArray_pg == null) {
qq_thingsArray_pg = new DefaultTableCellRenderer();
qq_thingsArray_pg.setIcon(new ImageIcon(Main.class.getResource("main.qq_thingsArray_pg.png")));
qq_thingsArray_pg.setName("pg");
qq_thingsArray_pg.setOpaque( true );
ArrayFieldCellHelper.setUpCellEditor(qq_thingsArray_pg, qq_things, 2, false);
qq_thingsArray_pg.setSize(new Dimension(31, 12));
qq_thingsArray_pg.setMinimumSize(new Dimension(31, 12));
qq_thingsArray_pg.setPreferredSize(new Dimension(31, 12));
qq_thingsArray_pg.setLocation(211, 12);
}
return qq_thingsArray_pg;
}
public void setqq_thingsArray_pg(DefaultTableCellRenderer value) {
DefaultTableCellRenderer oldValue = qq_thingsArray_pg;
qq_thingsArray_pg = value;
this.qq_Listeners.firePropertyChange("qq_thingsArray_pg", oldValue, value);
}
/**
* qq_thingsArray_Img: transformed from: qqds_PictureField
* TagId=26
* isInherited=FALSE
*/
public PictureField getqq_thingsArray_Img() {
if (qq_thingsArray_Img == null) {
qq_thingsArray_Img = PictureFieldFactory.newInstance("Img", Constants.IS_FIELDHEIGHT, Constants.CG_CENTER);
WidthPolicy.set(qq_thingsArray_Img, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_thingsArray_Img, Constants.SP_EXPLICIT);
qq_thingsArray_Img.setSize(new Dimension(62, 60));
qq_thingsArray_Img.setMinimumSize(new Dimension(62, 60));
qq_thingsArray_Img.setPreferredSize(new Dimension(62, 60));
qq_thingsArray_Img.setLocation(247, 12);
}
return qq_thingsArray_Img;
}
public void setqq_thingsArray_Img(PictureField value) {
PictureField oldValue = qq_thingsArray_Img;
qq_thingsArray_Img = value;
this.qq_Listeners.firePropertyChange("qq_thingsArray_Img", oldValue, value);
}
/**
* qq_thingsArray_Person: transformed from: qqds_OutlineField
* TagId=32
* isInherited=FALSE
*/
public OutlineField getqq_thingsArray_Person() {
if (qq_thingsArray_Person == null) {
Array_Of_OutlineColumnDesc<OutlineColumnDesc> columns = new Array_Of_OutlineColumnDesc<OutlineColumnDesc>();
columns.add(getqq_thingsArray_Person_Name());
columns.add(getqq_thingsArray_Person_Age());
qq_thingsArray_Person = TableFactory.newOutlineField("Person", columns);
qq_thingsArray_Person.setShowHeader(false);
qq_thingsArray_Person.setControlsDisplayed(true);
qq_thingsArray_Person.setVertScrollBar(true);
qq_thingsArray_Person.setHorzScrollBar(true);
TreeRootVisible.set(qq_thingsArray_Person, false);
qq_thingsArray_Person.setTitleSetNum(0);
qq_thingsArray_Person.setLocation(311, 12);
ArrayFieldCellHelper.setUpCellEditor(qq_thingsArray_Person, qq_things, 4, false);
WidthPolicy.set(qq_thingsArray_Person, Constants.SP_TO_PARENT);
HeightPolicy.set(qq_thingsArray_Person, Constants.SP_EXPLICIT);
qq_thingsArray_Person.setSize(new Dimension(307, 50));
qq_thingsArray_Person.setMinimumSize(new Dimension(307, 50));
qq_thingsArray_Person.setPreferredSize(new Dimension(307, 50));
qq_thingsArray_Person.setLocation(311, 12);
}
return qq_thingsArray_Person;
}
public void setqq_thingsArray_Person(OutlineField value) {
OutlineField oldValue = qq_thingsArray_Person;
qq_thingsArray_Person = value;
this.qq_Listeners.firePropertyChange("qq_thingsArray_Person", oldValue, value);
}
public OutlineColumnDesc getqq_thingsArray_Person_Name() {
if (qq_thingsArray_Person_Name == null) {
qq_thingsArray_Person_Name = new OutlineColumnDesc(Constants.TA_LEFT, false, false, 1, "name", Constants.FP_DEFAULT, Constants.FS_VISIBLE, "Name", 0);
}
return qq_thingsArray_Person_Name;
}
public OutlineColumnDesc getqq_thingsArray_Person_Age() {
if (qq_thingsArray_Person_Age == null) {
qq_thingsArray_Person_Age = new OutlineColumnDesc(Constants.TA_RIGHT, false, false, 1, "age", Constants.FP_DEFAULT, Constants.FS_VISIBLE, "Age", 0);
}
return qq_thingsArray_Person_Age;
}
/**
* Initialise the window and all its children.
*/
protected void initialize() {
if (this.Form == null) {
this.setName( "main" );
this.setTitle( "" );
this.setSystemClosePolicy(Constants.SC_ENABLEDSHUTDOWN);
if (this.getContentPane() != this.getForm()) {
this.setContentPane(getForm());
}
this.qq_setupWindowUsage();
this.setResizable( true );
this.setAlwaysOnTop(false);
UserWindow.setIconizeEnabled(this, true);
UserWindow.setMaximizeEnabled(this, false);
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_GridField34(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_things(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_thingsArray_pb(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_thingsArray_name(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_thingsArray_pg(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_thingsArray_Img(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_thingsArray_Person(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_GridField35(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_GridField36(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_sourceImage(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_picField(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_picButton(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_picPalette(), 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 ) {
FrameworkUtils.setCmdLineArgs(args);
AppletConnectionInfo client = null;
try {
// Install our own focus manager. MUST be done prior to setting the
// UIManager, otherwise you'll run into issues like things have the wrong focus.
KeyboardFocusManager.setCurrentKeyboardFocusManager(new ForteKeyboardFocusManager());
UIManager.setLookAndFeel(new Win32LookAndFeel());
client = UserWindow.postAPPLETStarted();
Main main_start = new Main();
main_start.display();
UserWindow.postAPPLETStopped(client);
System.exit(0);
} catch (Throwable e) {
ErrorMgr.showErrors(null, "Unhandled exception", e);
UserWindow.postAPPLETStopped(client);
System.exit(0);
}
}
} // end class main
// c Pass 2 Conversion Time: 858 milliseconds