package EventsAndGlassPane;
import DisplayProject.Array_Of_OutlineColumnDesc;
import DisplayProject.CloseHideAdaptor;
import DisplayProject.Constants;
import DisplayProject.CursorMgr;
import DisplayProject.DataField;
import DisplayProject.DisplayNode;
import DisplayProject.DropListModel;
import DisplayProject.GridField;
import DisplayProject.OutlineColumnDesc;
import DisplayProject.UDSWindow;
import DisplayProject.UIutils;
import DisplayProject.WindowManager;
import DisplayProject.WindowUsageMap;
import DisplayProject.actions.ColourChange;
import DisplayProject.actions.ExitOnTab;
import DisplayProject.actions.HeightPolicy;
import DisplayProject.actions.Name;
import DisplayProject.actions.RootNode;
import DisplayProject.actions.StatusText;
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.DropList;
import DisplayProject.controls.ListView;
import DisplayProject.controls.MultiLineTextField;
import DisplayProject.controls.OutlineField;
import DisplayProject.controls.TreeViewWidget;
import DisplayProject.events.ClientEventManager;
import DisplayProject.factory.CompoundFieldFactory;
import DisplayProject.factory.DataFieldFactory;
import DisplayProject.factory.DropFillinFactory;
import DisplayProject.factory.PushButtonFactory;
import DisplayProject.factory.TableFactory;
import DisplayProject.factory.TextEditFactory;
import DisplayProject.factory.TreeFieldFactory;
import DisplayProject.plaf.Win32LookAndFeel;
import EventsAndGlassPane.Array_Of_ClassNode;
import EventsAndGlassPane.ClassNode;
import Framework.Array_Of_ListElement;
import Framework.ErrorMgr;
import Framework.EventHandle;
import Framework.EventManager;
import Framework.EventRegistration;
import Framework.EventRegistrationCallback;
import Framework.File;
import Framework.ForteKeyboardFocusManager;
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.Font;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import java.awt.KeyboardFocusManager;
import java.awt.Window;
import java.awt.event.ComponentListener;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.Serializable;
import java.lang.String;
import java.net.MalformedURLException;
import java.net.URL;
import javax.help.CSH;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.ToolTipManager;
import javax.swing.UIManager;
import org.apache.log4j.Logger;
/**
* Top<p>
* <p>
* @author Generated from Forte
* @since 19-Nov-2008
*/
@RuntimeProperties(isDistributed=false, isAnchored=false, isShared=false, isTransactional=false)
@UDSWindow()
@SuppressWarnings("serial")
public class Top
extends JFrame
implements Serializable, Observable
{
// ----------
// Attributes
// ----------
protected File DefaultHelpFile;
protected BindingManager bindingManager = null;
public PropertyChangeSupport qq_Listeners = new ExtendedPropertyChangeSupport(this, true);
private ClassNode rightTree;
private TextData df;
private TextData tf;
private ClassNode lv;
private int rightFilter;
private String statusLine;
private DisplayNode tree;
// ------------
// Constructors
// ------------
public Top() {
// Explicitly call the superclass constructor to prevent the implicit call
super();
this.initialize();
}
// ----------------------
// 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 setRightTree(ClassNode rightTree) {
ClassNode oldValue = this.rightTree;
this.rightTree = rightTree;
RootNode.set(this.getqq_rightTree(), rightTree);
this.qq_Listeners.firePropertyChange("rightTree", oldValue, this.rightTree);
}
public ClassNode getRightTree() {
return this.rightTree;
}
public void setDf(TextData df) {
TextData oldValue = this.df;
this.df = df;
this.qq_Listeners.firePropertyChange("df", oldValue, this.df);
}
public TextData getDf() {
return this.df;
}
public void setTf(TextData tf) {
TextData oldValue = this.tf;
this.tf = tf;
this.qq_Listeners.firePropertyChange("tf", oldValue, this.tf);
}
public TextData getTf() {
return this.tf;
}
public void setLv(ClassNode lv) {
ClassNode oldValue = this.getLv();
this.getqq_lv().setRootNode(lv);
this.qq_Listeners.firePropertyChange("lv", oldValue, lv);
}
public ClassNode getLv() {
return (ClassNode)this.getqq_lv().getRootNode();
}
public void setRightFilter(int rightFilter) {
int oldValue = this.rightFilter;
this.rightFilter = rightFilter;
this.qq_Listeners.firePropertyChange("rightFilter", oldValue, this.rightFilter);
}
public int getRightFilter() {
return this.rightFilter;
}
public void setStatusLine(String statusLine) {
String oldValue = this.statusLine;
this.statusLine = statusLine;
this.qq_Listeners.firePropertyChange("statusLine", oldValue, this.statusLine);
}
public String getStatusLine() {
return this.statusLine;
}
public void setTree(DisplayNode tree) {
DisplayNode oldValue = this.tree;
this.tree = tree;
RootNode.set(this.getqq_tree(), tree);
this.qq_Listeners.firePropertyChange("tree", oldValue, this.tree);
}
public DisplayNode getTree() {
return this.tree;
}
// -------
// 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);
}
/**
* buttonEvents (Translation of Forte Event Handler)<p>
* <p>
* @return EventRegistration
*/
public EventRegistration buttonEvents() {
EventRegistration qq_resultRegistration = new EventRegistration();
// ------------------------
// <menuworkshop_Btn>.Click
// ------------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_menuworkshop_Btn(), "Click",
new EventRegistrationCallback("PictureButton_Click_getqq_menuworkshop_Btn") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Task.delay(300);
Logger.getLogger("task.part.logmgr").info(new TextData().replaceParameters("Button click for <menuworkshop_Btn>"));
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ----------------------------
// <newClassConstant_btn>.Click
// ----------------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_newClassConstant_btn(), "Click",
new EventRegistrationCallback("PictureButton_Click_getqq_newClassConstant_btn") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Task.delay(300);
Logger.getLogger("task.part.logmgr").info(new TextData().replaceParameters("Button click for <newClassConstant_btn>"));
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// --------------------
// <newEvent_btn>.Click
// --------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_newEvent_btn(), "Click",
new EventRegistrationCallback("PictureButton_Click_getqq_newEvent_btn") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Task.delay(300);
Logger.getLogger("task.part.logmgr").info(new TextData().replaceParameters("Button click for <newEvent_btn>"));
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ---------------------
// <newMethod_btn>.Click
// ---------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_newMethod_btn(), "Click",
new EventRegistrationCallback("PictureButton_Click_getqq_newMethod_btn") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Task.delay(300);
Logger.getLogger("task.part.logmgr").info(new TextData().replaceParameters("Button click for <newMethod_btn>"));
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// -------------------------------
// <newVirtualAttribute_btn>.Click
// -------------------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_newVirtualAttribute_btn(), "Click",
new EventRegistrationCallback("PictureButton_Click_getqq_newVirtualAttribute_btn") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Task.delay(300);
Logger.getLogger("task.part.logmgr").info(new TextData().replaceParameters("Button click for <newUnmappedAttribute_btn>"));
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ----------------------
// <compileAll_btn>.Click
// ----------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_compileAll_btn(), "Click",
new EventRegistrationCallback("PictureButton_Click_getqq_compileAll_btn") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Task.delay(300);
Logger.getLogger("task.part.logmgr").info(new TextData().replaceParameters("Button click for <compileAll_btn>"));
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// -------------------
// <saveAll_btn>.Click
// -------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_saveAll_btn(), "Click",
new EventRegistrationCallback("PictureButton_Click_getqq_saveAll_btn") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Task.delay(300);
Logger.getLogger("task.part.logmgr").info(new TextData().replaceParameters("Button click for <saveAll_btn>"));
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// --------------------------
// <windowWorkshop_Btn>.Click
// --------------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_windowWorkshop_Btn(), "Click",
new EventRegistrationCallback("PictureButton_Click_getqq_windowWorkshop_Btn") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Task.delay(300);
Logger.getLogger("task.part.logmgr").info(new TextData().replaceParameters("Button click for <windowWorkshop_Btn>"));
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
return qq_resultRegistration;
}
/**
* display<p>
* <p>
*/
public void display() {
UserWindow.open(this);
// ----------
// Event Loop
// ----------
EventManager.startEventLoop();
try {
EventRegistration TaskHandle_Shutdown_langThreadcurrentThread = ClientEventManager.register( Thread.currentThread(), "Shutdown" );
EventRegistration GridField_ChildAfterValueChange_getqq_topGrid = ClientEventManager.register( this.getqq_topGrid(), "ChildAfterValueChange" );
EventRegistration GridField_Traverse_getqq_topGrid = ClientEventManager.register( this.getqq_topGrid(), "Traverse" );
EventRegistration GridField_ChildMouseEnter_getqq_ToolBar = ClientEventManager.register( this.getqq_ToolBar(), "ChildMouseEnter" );
EventRegistration GridField_ChildMouseLeave_getqq_ToolBar = ClientEventManager.register( this.getqq_ToolBar(), "ChildMouseLeave" );
EventRegistration GridField_ChildClick_getqq_ToolBar = ClientEventManager.register( this.getqq_ToolBar(), "ChildClick" );
this.someEvents();
this.buttonEvents();
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();
}
}
// -------------------------------
// <topGrid>.ChildAfterValueChange
// -------------------------------
else if (qq_currentEvent.isEvent(GridField_ChildAfterValueChange_getqq_topGrid)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
JComponent child = (JComponent)((ParameterHolder)qq_currentEvent.getParameter("child")).getObject();
Task.delay(300);
Logger.getLogger("task.part.logmgr").info(new TextData().replaceParameters("ChildAfterValueChange for %1", Name.get(child)));
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ------------------
// <topGrid>.Traverse
// ------------------
else if (qq_currentEvent.isEvent(GridField_Traverse_getqq_topGrid)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
JComponent source = (JComponent)((ParameterHolder)qq_currentEvent.getParameter("source")).getObject();
JComponent target = (JComponent)((ParameterHolder)qq_currentEvent.getParameter("target")).getObject();
Task.delay(300);
Logger.getLogger("task.part.logmgr").info(new TextData().replaceParameters("Traverse from %1 to %2", Name.get(source), Name.get(target)));
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// -------------------------
// <ToolBar>.ChildMouseEnter
// -------------------------
else if (qq_currentEvent.isEvent(GridField_ChildMouseEnter_getqq_ToolBar)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
JComponent child = (JComponent)((ParameterHolder)qq_currentEvent.getParameter("child")).getObject();
Task.delay(300);
Logger.getLogger("task.part.logmgr").info(new TextData().replaceParameters("ChildMouseEnter for %1", Name.get(child)));
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// -------------------------
// <ToolBar>.ChildMouseLeave
// -------------------------
else if (qq_currentEvent.isEvent(GridField_ChildMouseLeave_getqq_ToolBar)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
JComponent child = (JComponent)((ParameterHolder)qq_currentEvent.getParameter("child")).getObject();
Task.delay(300);
Logger.getLogger("task.part.logmgr").info(new TextData().replaceParameters("ChildMouseLeave for %1", Name.get(child)));
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// --------------------
// <ToolBar>.Childclick
// --------------------
else if (qq_currentEvent.isEvent(GridField_ChildClick_getqq_ToolBar)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
JComponent child = (JComponent)((ParameterHolder)qq_currentEvent.getParameter("child")).getObject();
Task.delay(300);
Logger.getLogger("task.part.logmgr").info(new TextData().replaceParameters("Childclick for %1", Name.get(child)));
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
}
EventManager.deregister( TaskHandle_Shutdown_langThreadcurrentThread );
EventManager.deregister( GridField_ChildAfterValueChange_getqq_topGrid );
EventManager.deregister( GridField_Traverse_getqq_topGrid );
EventManager.deregister( GridField_ChildMouseEnter_getqq_ToolBar );
EventManager.deregister( GridField_ChildMouseLeave_getqq_ToolBar );
EventManager.deregister( GridField_ChildClick_getqq_ToolBar );
}
//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);
}
}
/**
* someEvents (Translation of Forte Event Handler)<p>
* <p>
* @return EventRegistration
*/
public EventRegistration someEvents() {
EventRegistration qq_resultRegistration = new EventRegistration();
// ----------------------------------
// <rightTree>.AfterCurrentNodeChange
// ----------------------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_rightTree(), "AfterCurrentNodeChange",
new EventRegistrationCallback("OutlineField_AfterCurrentNodeChange_getqq_rightTree") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
DisplayNode node = (DisplayNode)((ParameterHolder)qq_currentEvent.getParameter("NewNode")).getObject();
Task.delay(300);
Logger.getLogger("task.part.logmgr").info(new TextData().replaceParameters("AfterCurrentNodeChange rightTree: %1", node.getDVNodeText()));
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// -----------------------
// <rightTree>.DoubleClick
// -----------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_rightTree(), "DoubleClick",
new EventRegistrationCallback("OutlineField_DoubleClick_getqq_rightTree") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Task.delay(300);
Logger.getLogger("task.part.logmgr").info(new TextData().replaceParameters("double click on: rightTree"));
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// -----------------
// <rightTree>.Click
// -----------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_rightTree(), "Click",
new EventRegistrationCallback("OutlineField_Click_getqq_rightTree") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Task.delay(300);
Logger.getLogger("task.part.logmgr").info(new TextData().replaceParameters("click on: rightTree"));
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ---------------------------
// <lv>.AfterCurrentNodeChange
// ---------------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_lv(), "AfterCurrentNodeChange",
new EventRegistrationCallback("ListView_AfterCurrentNodeChange_getqq_lv") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
DisplayNode node = (DisplayNode)((ParameterHolder)qq_currentEvent.getParameter("NewNode")).getObject();
Task.delay(300);
Logger.getLogger("task.part.logmgr").info(new TextData().replaceParameters("AfterCurrentNodeChange lv: %1", node.getDVNodeText()));
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ----------------
// <lv>.DoubleClick
// ----------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_lv(), "DoubleClick",
new EventRegistrationCallback("ListView_DoubleClick_getqq_lv") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Task.delay(300);
Logger.getLogger("task.part.logmgr").info(new TextData().replaceParameters("double click on: lv"));
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ----------
// <lv>.Click
// ----------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_lv(), "Click",
new EventRegistrationCallback("ListView_Click_getqq_lv") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Task.delay(300);
Logger.getLogger("task.part.logmgr").info(new TextData().replaceParameters("click on: lv"));
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ---------------
// <lv>.ObjectDrop
// ---------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_lv(), "ObjectDrop",
new EventRegistrationCallback("ListView_ObjectDrop_getqq_lv") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Task.delay(300);
Logger.getLogger("task.part.logmgr").info(new TextData().replaceParameters("ObjectDrop on: lv"));
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// -----------------------------
// <tree>.AfterCurrentNodeChange
// -----------------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_tree(), "AfterCurrentNodeChange",
new EventRegistrationCallback("TreeView_AfterCurrentNodeChange_getqq_tree") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
DisplayNode node = (DisplayNode)((ParameterHolder)qq_currentEvent.getParameter("NewNode")).getObject();
Task.delay(300);
Logger.getLogger("task.part.logmgr").info(new TextData().replaceParameters("AfterCurrentNodeChange tree: %1", node.getDVNodeText()));
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ------------------
// <tree>.DoubleClick
// ------------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_tree(), "DoubleClick",
new EventRegistrationCallback("TreeView_DoubleClick_getqq_tree") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Task.delay(300);
Logger.getLogger("task.part.logmgr").info(new TextData().replaceParameters("double click on: tree"));
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
// ------------
// <tree>.Click
// ------------
qq_resultRegistration.addRegistration( ClientEventManager.register(
this.getqq_tree(), "Click",
new EventRegistrationCallback("TreeView_Click_getqq_tree") {
/**
* handleEvent is called when the event is received. If this method returns false, the enclosing event loop will abort
*/
public boolean handleEvent(EventHandle qq_currentEvent) {
boolean qq_HandlerResult = true;
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Task.delay(300);
Logger.getLogger("task.part.logmgr").info(new TextData().replaceParameters("click on: tree"));
// ================= End Forte Event Handler Translation =================
}
finally {
CursorMgr.endEvent();
}
return qq_HandlerResult;
}
}) );
return qq_resultRegistration;
}
// ------------------
// Window Definitions
// ------------------
// <editor-fold defaultstate="collapsed" desc="Window Definitions">
private int qq_defaultSet = 1;
private int qq_msgNumber = 0;
private int qq_msgSet = 0;
protected Window primaryWindow = null;
protected int initialX;
protected int initialY;
protected int qq_SystemClosePolicy = Constants.SC_ENABLEDSHUTDOWN;
protected int qq_initialPositionPolicy = Constants.PP_SYSTEMDEFAULT;
public DataField qq_df;
public DataField qq_statusLine;
public DropList qq_rightFilter;
public GridField qq_Class_btns;
public GridField qq_GridField21;
public GridField qq_ToolBar;
public GridField qq_browserGrid;
public GridField qq_topGrid;
public JButton qq_EventHandler_Btn;
public JButton qq_JButton35;
public JButton qq_compileAll_btn;
public JButton qq_menuworkshop_Btn;
public JButton qq_newClassConstant_btn;
public JButton qq_newEvent_btn;
public JButton qq_newMethod_btn;
public JButton qq_newUnmappedAttribute_btn;
public JButton qq_newVirtualAttribute_btn;
public JButton qq_saveAll_btn;
public JButton qq_windowWorkshop_Btn;
public JPanel Form;
public JScrollPane qq_tf_sp;
public JScrollPane qq_tree_sp;
public ListView qq_lv;
public MultiLineTextField qq_tf;
public OutlineColumnDesc qq_lv_DVNodeText;
public OutlineColumnDesc qq_lv_Size;
public OutlineColumnDesc qq_rightTree_DVNodeText;
public OutlineField qq_rightTree;
public TreeViewWidget qq_tree;
/**
* qq_newClassConstant_btn: transformed from: qqds_PictureButton
* TagId=15
* isInherited=FALSE
*/
public JButton getqq_newClassConstant_btn() {
if (qq_newClassConstant_btn == null) {
qq_newClassConstant_btn = PushButtonFactory.newInstance("newClassConstant_btn");
qq_newClassConstant_btn.setIcon(new ImageIcon(Top.class.getResource("Top.qq_newClassConstant_btn.png")));
qq_newClassConstant_btn.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_newClassConstant_btn, Constants.SP_NATURAL);
HeightPolicy.set(qq_newClassConstant_btn, Constants.SP_NATURAL);
qq_newClassConstant_btn.setSize(new Dimension(24, 24));
qq_newClassConstant_btn.setMinimumSize(new Dimension(24, 24));
qq_newClassConstant_btn.setPreferredSize(new Dimension(24, 24));
// HelpTopic
CSH.setHelpIDString(qq_newClassConstant_btn, "");
// FloatOverText
qq_newClassConstant_btn.setToolTipText("New Constant");
// StatusText
StatusText.set(qq_newClassConstant_btn, "Creates a new constant for the class.");
}
return qq_newClassConstant_btn;
}
public void setqq_newClassConstant_btn(JButton value) {
JButton oldValue = qq_newClassConstant_btn;
qq_newClassConstant_btn = value;
this.qq_Listeners.firePropertyChange("qq_newClassConstant_btn", oldValue, value);
}
/**
* qq_newUnmappedAttribute_btn: transformed from: qqds_PictureButton
* TagId=16
* isInherited=FALSE
*/
public JButton getqq_newUnmappedAttribute_btn() {
if (qq_newUnmappedAttribute_btn == null) {
qq_newUnmappedAttribute_btn = PushButtonFactory.newInstance("newUnmappedAttribute_btn");
qq_newUnmappedAttribute_btn.setIcon(new ImageIcon(Top.class.getResource("Top.qq_newUnmappedAttribute_btn.png")));
qq_newUnmappedAttribute_btn.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_newUnmappedAttribute_btn, Constants.SP_NATURAL);
HeightPolicy.set(qq_newUnmappedAttribute_btn, Constants.SP_NATURAL);
qq_newUnmappedAttribute_btn.setSize(new Dimension(24, 24));
qq_newUnmappedAttribute_btn.setMinimumSize(new Dimension(24, 24));
qq_newUnmappedAttribute_btn.setPreferredSize(new Dimension(24, 24));
// HelpTopic
CSH.setHelpIDString(qq_newUnmappedAttribute_btn, "");
// FloatOverText
qq_newUnmappedAttribute_btn.setToolTipText("New Attribute");
// StatusText
StatusText.set(qq_newUnmappedAttribute_btn, "Creates a new attribute.");
}
return qq_newUnmappedAttribute_btn;
}
public void setqq_newUnmappedAttribute_btn(JButton value) {
JButton oldValue = qq_newUnmappedAttribute_btn;
qq_newUnmappedAttribute_btn = value;
this.qq_Listeners.firePropertyChange("qq_newUnmappedAttribute_btn", oldValue, value);
}
/**
* qq_newVirtualAttribute_btn: transformed from: qqds_PictureButton
* TagId=17
* isInherited=FALSE
*/
public JButton getqq_newVirtualAttribute_btn() {
if (qq_newVirtualAttribute_btn == null) {
qq_newVirtualAttribute_btn = PushButtonFactory.newInstance("newVirtualAttribute_btn");
qq_newVirtualAttribute_btn.setIcon(new ImageIcon(Top.class.getResource("Top.qq_newVirtualAttribute_btn.png")));
qq_newVirtualAttribute_btn.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_newVirtualAttribute_btn, Constants.SP_NATURAL);
HeightPolicy.set(qq_newVirtualAttribute_btn, Constants.SP_NATURAL);
qq_newVirtualAttribute_btn.setSize(new Dimension(24, 24));
qq_newVirtualAttribute_btn.setMinimumSize(new Dimension(24, 24));
qq_newVirtualAttribute_btn.setPreferredSize(new Dimension(24, 24));
// HelpTopic
CSH.setHelpIDString(qq_newVirtualAttribute_btn, "");
// FloatOverText
qq_newVirtualAttribute_btn.setToolTipText("New Virtual Attribute");
// StatusText
StatusText.set(qq_newVirtualAttribute_btn, "Creates a new virtual attribute.");
}
return qq_newVirtualAttribute_btn;
}
public void setqq_newVirtualAttribute_btn(JButton value) {
JButton oldValue = qq_newVirtualAttribute_btn;
qq_newVirtualAttribute_btn = value;
this.qq_Listeners.firePropertyChange("qq_newVirtualAttribute_btn", oldValue, value);
}
/**
* qq_newEvent_btn: transformed from: qqds_PictureButton
* TagId=18
* isInherited=FALSE
*/
public JButton getqq_newEvent_btn() {
if (qq_newEvent_btn == null) {
qq_newEvent_btn = PushButtonFactory.newInstance("newEvent_btn");
qq_newEvent_btn.setIcon(new ImageIcon(Top.class.getResource("Top.qq_newEvent_btn.png")));
qq_newEvent_btn.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_newEvent_btn, Constants.SP_NATURAL);
HeightPolicy.set(qq_newEvent_btn, Constants.SP_NATURAL);
qq_newEvent_btn.setSize(new Dimension(24, 24));
qq_newEvent_btn.setMinimumSize(new Dimension(24, 24));
qq_newEvent_btn.setPreferredSize(new Dimension(24, 24));
// HelpTopic
CSH.setHelpIDString(qq_newEvent_btn, "");
// FloatOverText
qq_newEvent_btn.setToolTipText("New Event");
// StatusText
StatusText.set(qq_newEvent_btn, "Creates a new event.");
}
return qq_newEvent_btn;
}
public void setqq_newEvent_btn(JButton value) {
JButton oldValue = qq_newEvent_btn;
qq_newEvent_btn = value;
this.qq_Listeners.firePropertyChange("qq_newEvent_btn", oldValue, value);
}
/**
* qq_newMethod_btn: transformed from: qqds_PictureButton
* TagId=19
* isInherited=FALSE
*/
public JButton getqq_newMethod_btn() {
if (qq_newMethod_btn == null) {
qq_newMethod_btn = PushButtonFactory.newInstance("newMethod_btn");
qq_newMethod_btn.setIcon(new ImageIcon(Top.class.getResource("Top.qq_newMethod_btn.png")));
qq_newMethod_btn.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_newMethod_btn, Constants.SP_NATURAL);
HeightPolicy.set(qq_newMethod_btn, Constants.SP_NATURAL);
qq_newMethod_btn.setSize(new Dimension(24, 24));
qq_newMethod_btn.setMinimumSize(new Dimension(24, 24));
qq_newMethod_btn.setPreferredSize(new Dimension(24, 24));
// HelpTopic
CSH.setHelpIDString(qq_newMethod_btn, "");
// FloatOverText
qq_newMethod_btn.setToolTipText("New Method");
// StatusText
StatusText.set(qq_newMethod_btn, "Creates a new method.");
}
return qq_newMethod_btn;
}
public void setqq_newMethod_btn(JButton value) {
JButton oldValue = qq_newMethod_btn;
qq_newMethod_btn = value;
this.qq_Listeners.firePropertyChange("qq_newMethod_btn", oldValue, value);
}
/**
* qq_EventHandler_Btn: transformed from: qqds_PictureButton
* TagId=20
* isInherited=FALSE
*/
public JButton getqq_EventHandler_Btn() {
if (qq_EventHandler_Btn == null) {
qq_EventHandler_Btn = PushButtonFactory.newInstance("EventHandler_Btn");
qq_EventHandler_Btn.setIcon(new ImageIcon(Top.class.getResource("Top.qq_EventHandler_Btn.png")));
qq_EventHandler_Btn.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_EventHandler_Btn, Constants.SP_NATURAL);
HeightPolicy.set(qq_EventHandler_Btn, Constants.SP_NATURAL);
qq_EventHandler_Btn.setSize(new Dimension(24, 24));
qq_EventHandler_Btn.setMinimumSize(new Dimension(24, 24));
qq_EventHandler_Btn.setPreferredSize(new Dimension(24, 24));
// HelpTopic
CSH.setHelpIDString(qq_EventHandler_Btn, "");
// FloatOverText
qq_EventHandler_Btn.setToolTipText("New Event Handler");
// StatusText
StatusText.set(qq_EventHandler_Btn, "Creates a new event handler.");
}
return qq_EventHandler_Btn;
}
public void setqq_EventHandler_Btn(JButton value) {
JButton oldValue = qq_EventHandler_Btn;
qq_EventHandler_Btn = value;
this.qq_Listeners.firePropertyChange("qq_EventHandler_Btn", oldValue, value);
}
/**
* qq_Class_btns: transformed from: qqds_GridField
* TagId=14
* isInherited=FALSE
* In forte this was a 6x1 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_Class_btnsProperties() {
qq_Class_btns.setCellGravity(Constants.CG_CENTER);
qq_Class_btns.setIgnoreInvisibleChildren(true);
qq_Class_btns.setCollapsed(true);
qq_Class_btns.setHeightPolicy(Constants.SP_NATURAL);
qq_Class_btns.setWidthPolicy(Constants.SP_NATURAL);
qq_Class_btns.setBackground(null);
}
public GridField getqq_Class_btns() {
if (qq_Class_btns == null) {
qq_Class_btns = CompoundFieldFactory.newGridField("Class_btns", false);
setqq_Class_btnsProperties();
qq_Class_btns.setMinimumSize(new Dimension(144, 24));
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_CENTER 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_Class_btns.add( getqq_newUnmappedAttribute_btn(), 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_CENTER 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_Class_btns.add( getqq_newVirtualAttribute_btn(), 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_CENTER 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_Class_btns.add( getqq_newMethod_btn(), 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_CENTER gf
qq_gbc3.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc3.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_Class_btns.add( getqq_newEvent_btn(), qq_gbc3 );
GridBagConstraints qq_gbc4 = new GridBagConstraints();
qq_gbc4.gridx = 4; // Column 5
qq_gbc4.gridy = 0; // Row 1
qq_gbc4.weightx = 0;
qq_gbc4.weighty = 0;
qq_gbc4.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_CENTER gf
qq_gbc4.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc4.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_Class_btns.add( getqq_EventHandler_Btn(), qq_gbc4 );
GridBagConstraints qq_gbc5 = new GridBagConstraints();
qq_gbc5.gridx = 5; // Column 6
qq_gbc5.gridy = 0; // Row 1
qq_gbc5.weightx = 0;
qq_gbc5.weighty = 0;
qq_gbc5.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_CENTER gf
qq_gbc5.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc5.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_Class_btns.add( getqq_newClassConstant_btn(), qq_gbc5 );
}
return qq_Class_btns;
}
public void setqq_Class_btns(GridField value) {
GridField oldValue = qq_Class_btns;
qq_Class_btns = value;
this.qq_Listeners.firePropertyChange("qq_Class_btns", oldValue, value);
}
/**
* qq_windowWorkshop_Btn: transformed from: qqds_PictureButton
* TagId=22
* isInherited=FALSE
*/
public JButton getqq_windowWorkshop_Btn() {
if (qq_windowWorkshop_Btn == null) {
qq_windowWorkshop_Btn = PushButtonFactory.newInstance("windowWorkshop_Btn");
qq_windowWorkshop_Btn.setIcon(new ImageIcon(Top.class.getResource("Top.qq_windowWorkshop_Btn.png")));
qq_windowWorkshop_Btn.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_windowWorkshop_Btn, Constants.SP_NATURAL);
HeightPolicy.set(qq_windowWorkshop_Btn, Constants.SP_NATURAL);
qq_windowWorkshop_Btn.setSize(new Dimension(24, 24));
qq_windowWorkshop_Btn.setMinimumSize(new Dimension(24, 24));
qq_windowWorkshop_Btn.setPreferredSize(new Dimension(24, 24));
// HelpTopic
CSH.setHelpIDString(qq_windowWorkshop_Btn, "");
// FloatOverText
qq_windowWorkshop_Btn.setToolTipText("Window");
// StatusText
StatusText.set(qq_windowWorkshop_Btn, "Opens the window workshop.");
}
return qq_windowWorkshop_Btn;
}
public void setqq_windowWorkshop_Btn(JButton value) {
JButton oldValue = qq_windowWorkshop_Btn;
qq_windowWorkshop_Btn = value;
this.qq_Listeners.firePropertyChange("qq_windowWorkshop_Btn", oldValue, value);
}
/**
* qq_compileAll_btn: transformed from: qqds_PictureButton
* TagId=23
* isInherited=FALSE
*/
public JButton getqq_compileAll_btn() {
if (qq_compileAll_btn == null) {
qq_compileAll_btn = PushButtonFactory.newInstance("compileAll_btn");
qq_compileAll_btn.setIcon(new ImageIcon(Top.class.getResource("Top.qq_compileAll_btn.png")));
qq_compileAll_btn.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_compileAll_btn, Constants.SP_NATURAL);
HeightPolicy.set(qq_compileAll_btn, Constants.SP_NATURAL);
qq_compileAll_btn.setSize(new Dimension(24, 24));
qq_compileAll_btn.setMinimumSize(new Dimension(24, 24));
qq_compileAll_btn.setPreferredSize(new Dimension(24, 24));
// HelpTopic
CSH.setHelpIDString(qq_compileAll_btn, "");
// FloatOverText
qq_compileAll_btn.setToolTipText("Compile");
// StatusText
StatusText.set(qq_compileAll_btn, "Compiles the entire class.");
}
return qq_compileAll_btn;
}
public void setqq_compileAll_btn(JButton value) {
JButton oldValue = qq_compileAll_btn;
qq_compileAll_btn = value;
this.qq_Listeners.firePropertyChange("qq_compileAll_btn", oldValue, value);
}
/**
* qq_saveAll_btn: transformed from: qqds_PictureButton
* TagId=24
* isInherited=FALSE
*/
public JButton getqq_saveAll_btn() {
if (qq_saveAll_btn == null) {
qq_saveAll_btn = PushButtonFactory.newInstance("saveAll_btn");
qq_saveAll_btn.setIcon(new ImageIcon(Top.class.getResource("Top.qq_saveAll_btn.png")));
qq_saveAll_btn.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_saveAll_btn, Constants.SP_NATURAL);
HeightPolicy.set(qq_saveAll_btn, Constants.SP_NATURAL);
qq_saveAll_btn.setSize(new Dimension(24, 24));
qq_saveAll_btn.setMinimumSize(new Dimension(24, 24));
qq_saveAll_btn.setPreferredSize(new Dimension(24, 24));
// HelpTopic
CSH.setHelpIDString(qq_saveAll_btn, "");
// FloatOverText
qq_saveAll_btn.setToolTipText("Save All");
// StatusText
StatusText.set(qq_saveAll_btn, "Writes all changes made in the workspace to disk.");
}
return qq_saveAll_btn;
}
public void setqq_saveAll_btn(JButton value) {
JButton oldValue = qq_saveAll_btn;
qq_saveAll_btn = value;
this.qq_Listeners.firePropertyChange("qq_saveAll_btn", oldValue, value);
}
/**
* qq_menuworkshop_Btn: transformed from: qqds_PictureButton
* TagId=25
* isInherited=FALSE
*/
public JButton getqq_menuworkshop_Btn() {
if (qq_menuworkshop_Btn == null) {
qq_menuworkshop_Btn = PushButtonFactory.newInstance("menuworkshop_Btn");
qq_menuworkshop_Btn.setIcon(new ImageIcon(Top.class.getResource("Top.qq_menuworkshop_Btn.png")));
qq_menuworkshop_Btn.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_menuworkshop_Btn, Constants.SP_NATURAL);
HeightPolicy.set(qq_menuworkshop_Btn, Constants.SP_NATURAL);
qq_menuworkshop_Btn.setSize(new Dimension(24, 24));
qq_menuworkshop_Btn.setMinimumSize(new Dimension(24, 24));
qq_menuworkshop_Btn.setPreferredSize(new Dimension(24, 24));
// HelpTopic
CSH.setHelpIDString(qq_menuworkshop_Btn, "");
// FloatOverText
qq_menuworkshop_Btn.setToolTipText("New Submenu");
// StatusText
StatusText.set(qq_menuworkshop_Btn, "Creates a new submenu.");
}
return qq_menuworkshop_Btn;
}
public void setqq_menuworkshop_Btn(JButton value) {
JButton oldValue = qq_menuworkshop_Btn;
qq_menuworkshop_Btn = value;
this.qq_Listeners.firePropertyChange("qq_menuworkshop_Btn", oldValue, value);
}
/**
* qq_GridField21: transformed from: qqds_GridField
* TagId=21
* 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_GridField21Properties() {
qq_GridField21.setCellGravity(Constants.CG_CENTER);
qq_GridField21.setIgnoreInvisibleChildren(true);
qq_GridField21.setCollapsed(true);
qq_GridField21.setHeightPolicy(Constants.SP_NATURAL);
qq_GridField21.setWidthPolicy(Constants.SP_NATURAL);
qq_GridField21.setBackground(null);
}
public GridField getqq_GridField21() {
if (qq_GridField21 == null) {
qq_GridField21 = CompoundFieldFactory.newGridField("qq_GridField21", true);
setqq_GridField21Properties();
qq_GridField21.setMinimumSize(new Dimension(96, 24));
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_CENTER 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_GridField21.add( getqq_compileAll_btn(), 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_CENTER 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_GridField21.add( getqq_saveAll_btn(), 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_CENTER 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_GridField21.add( getqq_windowWorkshop_Btn(), 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_CENTER gf
qq_gbc3.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc3.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_GridField21.add( getqq_menuworkshop_Btn(), qq_gbc3 );
}
return qq_GridField21;
}
public void setqq_GridField21(GridField value) {
GridField oldValue = qq_GridField21;
qq_GridField21 = value;
this.qq_Listeners.firePropertyChange("qq_GridField21", oldValue, value);
}
/**
* qq_JButton35: transformed from: qqds_PictureButton
* TagId=35
* isInherited=FALSE
*/
public JButton getqq_JButton35() {
if (qq_JButton35 == null) {
qq_JButton35 = PushButtonFactory.newInstance("");
qq_JButton35.setIcon(new ImageIcon(Top.class.getResource("Top.qq_JButton35.png")));
qq_JButton35.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_JButton35, Constants.SP_NATURAL);
HeightPolicy.set(qq_JButton35, Constants.SP_NATURAL);
qq_JButton35.setSize(new Dimension(24, 24));
qq_JButton35.setMinimumSize(new Dimension(24, 24));
qq_JButton35.setPreferredSize(new Dimension(24, 24));
}
return qq_JButton35;
}
public void setqq_JButton35(JButton value) {
JButton oldValue = qq_JButton35;
qq_JButton35 = value;
this.qq_Listeners.firePropertyChange("qq_JButton35", oldValue, value);
}
/**
* qq_ToolBar: transformed from: qqds_GridField
* TagId=13
* isInherited=FALSE
* In forte this was a 3x1 grid field.
* The cell margins are all 20 mils
* The width policy is set to Natural, and the height policy is set to Natural.
*/
protected void setqq_ToolBarProperties() {
qq_ToolBar.setCellTopMargin(10);
qq_ToolBar.setCellBottomMargin(10);
qq_ToolBar.setCellLeftMargin(10);
qq_ToolBar.setCellRightMargin(10);
qq_ToolBar.setCellGravity(Constants.CG_CENTER);
qq_ToolBar.setIgnoreInvisibleChildren(true);
qq_ToolBar.setCollapsed(true);
qq_ToolBar.setHeightPolicy(Constants.SP_NATURAL);
qq_ToolBar.setWidthPolicy(Constants.SP_NATURAL);
qq_ToolBar.setBackground(null);
}
public GridField getqq_ToolBar() {
if (qq_ToolBar == null) {
qq_ToolBar = CompoundFieldFactory.newGridField("ToolBar", false);
setqq_ToolBarProperties();
qq_ToolBar.setMinimumSize(new Dimension(280, 28));
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_CENTER
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_ToolBar.add( getqq_Class_btns(), 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_CENTER
qq_gbc1.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc1.insets = new Insets(0, 8, 0, 0); // Top, Left, Bottom, Right Margin
qq_ToolBar.add( getqq_GridField21(), 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_CENTER 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_ToolBar.add( getqq_JButton35(), qq_gbc2 );
}
return qq_ToolBar;
}
public void setqq_ToolBar(GridField value) {
GridField oldValue = qq_ToolBar;
qq_ToolBar = value;
this.qq_Listeners.firePropertyChange("qq_ToolBar", oldValue, value);
}
/**
* qq_rightFilter: transformed from: qqds_DropList
* TagId=27
* isInherited=FALSE
*/
public DropList getqq_rightFilter() {
if (qq_rightFilter == null) {
Array_Of_ListElement<ListElement> elements = new Array_Of_ListElement<ListElement>();
elements.add( new ListElement( 1, "One", ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
elements.add( new ListElement( 2, "Two", ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
elements.add( new ListElement( 3, "Three", ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
elements.add( new ListElement( 4, "Four", ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
qq_rightFilter = DropFillinFactory.newDropList();
qq_rightFilter.setName("rightFilter");
getBindingManager().bindComponent(qq_rightFilter, "rightFilter", elements);
qq_rightFilter.addActionListener( (DropListModel)qq_rightFilter.getModel() );
// OPTIONAL UIutils.reloadLabelText(qq_rightFilter, mcat);
qq_rightFilter.setMaximumRowCount(4);
ColourChange.setBackground(qq_rightFilter, Constants.C_DEFAULT);
WidthPolicy.set(qq_rightFilter, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_rightFilter, Constants.SP_NATURAL);
qq_rightFilter.setMinimumSize(new Dimension(193, 21));
qq_rightFilter.setSize(new Dimension(193, 21));
}
return qq_rightFilter;
}
public void setqq_rightFilter(DropList value) {
DropList oldValue = qq_rightFilter;
qq_rightFilter = value;
this.qq_Listeners.firePropertyChange("qq_rightFilter", oldValue, value);
}
/**
* qq_rightTree: transformed from: qqds_OutlineField
* TagId=28
* isInherited=FALSE
*/
public OutlineField getqq_rightTree() {
if (qq_rightTree == null) {
Array_Of_OutlineColumnDesc<OutlineColumnDesc> columns = new Array_Of_OutlineColumnDesc<OutlineColumnDesc>();
columns.add(getqq_rightTree_DVNodeText());
qq_rightTree = TableFactory.newOutlineField("rightTree", columns);
qq_rightTree.setShowHeader(true);
qq_rightTree.setControlsDisplayed(true);
qq_rightTree.setVertScrollBar(true);
qq_rightTree.setHorzScrollBar(true);
qq_rightTree.setFont(new Font("MonoSpaced", Font.PLAIN, 1));
TreeRootVisible.set(qq_rightTree, false);
qq_rightTree.setTitleSetNum(0);
qq_rightTree.setFont(new Font("MonoSpaced", Font.PLAIN, 1));
ColourChange.setBackground(qq_rightTree, Constants.C_DEFAULT);
WidthPolicy.set(qq_rightTree, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_rightTree, Constants.SP_EXPLICIT);
qq_rightTree.setSize(new Dimension(259, 249));
qq_rightTree.setMinimumSize(new Dimension(259, 249));
qq_rightTree.setPreferredSize(new Dimension(259, 249));
}
return qq_rightTree;
}
public void setqq_rightTree(OutlineField value) {
OutlineField oldValue = qq_rightTree;
qq_rightTree = value;
this.qq_Listeners.firePropertyChange("qq_rightTree", oldValue, value);
}
public OutlineColumnDesc getqq_rightTree_DVNodeText() {
if (qq_rightTree_DVNodeText == null) {
qq_rightTree_DVNodeText = new OutlineColumnDesc(Constants.TA_LEFT, false, true, 8, "DVNodeText", Constants.FP_DEFAULT, Constants.FS_DRAG, "Name", 0);
}
return qq_rightTree_DVNodeText;
}
/**
* qq_df: transformed from: qqds_DataField
* TagId=29
* isInherited=FALSE
*/
public DataField getqq_df() {
if (qq_df == null) {
// Mask type: MK_NONE
qq_df = DataFieldFactory.newDataField("df", 29, TextData.class, Constants.MK_NONE);
qq_df.setValue("");
qq_df.setOriginalFormatText(null);
qq_df.setHorizontalAlignment(JTextField.LEFT);
qq_df.setValidateOnKeystroke(true);
getBindingManager().bindComponent(qq_df, "df");
WidthPolicy.set(qq_df, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_df, Constants.SP_NATURAL);
qq_df.setMinimumSize(new Dimension(187, 19));
qq_df.setSize(new Dimension(187, 19));
}
return qq_df;
}
public void setqq_df(DataField value) {
DataField oldValue = qq_df;
qq_df = value;
this.qq_Listeners.firePropertyChange("qq_df", oldValue, value);
}
/**
* qq_tf_sp: transformed from: qqds_TextField
* TagId=30
* isInherited=FALSE
*/
public JScrollPane getqq_tf_sp() {
if (qq_tf_sp == null) {
qq_tf_sp = CompoundFieldFactory.newScrollPane();
qq_tf_sp.setName("tf");
qq_tf_sp.setViewportView(getqq_tf());
qq_tf_sp.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
qq_tf_sp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
WidthPolicy.set(qq_tf_sp, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_tf_sp, Constants.SP_EXPLICIT);
qq_tf_sp.setSize(new Dimension(258, 120));
qq_tf_sp.setMinimumSize(new Dimension(258, 120));
qq_tf_sp.setPreferredSize(new Dimension(258, 120));
}
return qq_tf_sp;
}
public void setqq_tf_sp(JScrollPane value) {
JScrollPane oldValue = qq_tf_sp;
qq_tf_sp = value;
this.qq_Listeners.firePropertyChange("qq_tf_sp", oldValue, value);
}
/**
* qq_tf: transformed from: qqds_TextField
* TagId=30
* isInherited=FALSE
*/
public MultiLineTextField getqq_tf() {
if (qq_tf == null) {
qq_tf = TextEditFactory.newTextField("tf", 8, 34);
getBindingManager().bindComponent(qq_tf, "tf");
ExitOnTab.set(qq_tf, true);
WidthPolicy.set(qq_tf, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_tf, Constants.SP_EXPLICIT);
}
return qq_tf;
}
public void setqq_tf(MultiLineTextField value) {
MultiLineTextField oldValue = qq_tf;
qq_tf = value;
this.qq_Listeners.firePropertyChange("qq_tf", oldValue, value);
}
/**
* qq_browserGrid: transformed from: qqds_GridField
* TagId=26
* isInherited=FALSE
* In forte this was a 1x4 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_browserGridProperties() {
qq_browserGrid.setCellGravity(Constants.CG_CENTER);
qq_browserGrid.setIgnoreInvisibleChildren(true);
qq_browserGrid.setCollapsed(true);
qq_browserGrid.setHeightPolicy(Constants.SP_NATURAL);
qq_browserGrid.setWidthPolicy(Constants.SP_NATURAL);
ColourChange.setBackground(qq_browserGrid, Constants.C_DEFAULT);
}
public GridField getqq_browserGrid() {
if (qq_browserGrid == null) {
qq_browserGrid = CompoundFieldFactory.newGridField("browserGrid", false);
setqq_browserGridProperties();
qq_browserGrid.setMinimumSize(new Dimension(249, 412));
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(0, 0, 1, 0); // Top, Left, Bottom, Right Margin
qq_browserGrid.add( getqq_rightFilter(), 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.WEST; // Gravity - original: CG_MIDDLELEFT
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_browserGrid.add( getqq_df(), 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.WEST; // Gravity - original: CG_MIDDLELEFT
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_browserGrid.add( getqq_tf_sp(), qq_gbc2 );
GridBagConstraints qq_gbc3 = new GridBagConstraints();
qq_gbc3.gridx = 0; // Column 1
qq_gbc3.gridy = 3; // Row 4
qq_gbc3.weightx = 0;
qq_gbc3.weighty = 0;
qq_gbc3.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_CENTER gf
qq_gbc3.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc3.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_browserGrid.add( getqq_rightTree(), qq_gbc3 );
}
return qq_browserGrid;
}
public void setqq_browserGrid(GridField value) {
GridField oldValue = qq_browserGrid;
qq_browserGrid = value;
this.qq_Listeners.firePropertyChange("qq_browserGrid", oldValue, value);
}
/**
* qq_statusLine: transformed from: qqds_DataField
* TagId=31
* isInherited=FALSE
*/
public DataField getqq_statusLine() {
if (qq_statusLine == null) {
// Mask type: MK_NONE
qq_statusLine = DataFieldFactory.newDataField("statusLine", 40, Constants.MK_NONE);
qq_statusLine.setOriginalFormatText(null);
qq_statusLine.setHorizontalAlignment(JTextField.LEFT);
qq_statusLine.setBorder(null);
qq_statusLine.setBackground(null);
getBindingManager().bindComponent(qq_statusLine, "statusLine");
WidthPolicy.set(qq_statusLine, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_statusLine, Constants.SP_NATURAL);
qq_statusLine.setMinimumSize(new Dimension(251, 14));
qq_statusLine.setSize(new Dimension(251, 14));
}
return qq_statusLine;
}
public void setqq_statusLine(DataField value) {
DataField oldValue = qq_statusLine;
qq_statusLine = value;
this.qq_Listeners.firePropertyChange("qq_statusLine", oldValue, value);
}
/**
* qq_lv: transformed from: qqds_ListView
* TagId=32
* isInherited=FALSE
*/
public ListView getqq_lv() {
if (qq_lv == null) {
qq_lv = TableFactory.newListView("lv", Constants.LT_DETAIL, null, Font.PLAIN);
qq_lv.setMappedType(Array_Of_ClassNode.class);
Array_Of_OutlineColumnDesc<OutlineColumnDesc> columns = new Array_Of_OutlineColumnDesc<OutlineColumnDesc>();
columns.add(getqq_lv_DVNodeText());
columns.add(getqq_lv_Size());
qq_lv.setColumnList(columns);
qq_lv.setHasTitles(true);
qq_lv.setSize(new Dimension(408, 398));
qq_lv.setMinimumSize(new Dimension(408, 398));
// OPTIONAL qq_lv.setPreferredSize(new Dimension(408, 398));
WidthPolicy.set(qq_lv, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_lv, Constants.SP_EXPLICIT);
}
return qq_lv;
}
public void setqq_lv(ListView value) {
ListView oldValue = qq_lv;
qq_lv = value;
this.qq_Listeners.firePropertyChange("qq_lv", oldValue, value);
}
public OutlineColumnDesc getqq_lv_DVNodeText() {
if (qq_lv_DVNodeText == null) {
qq_lv_DVNodeText = new OutlineColumnDesc(Constants.TA_LEFT, false, false, 10, "DVNodeText", Constants.FP_DEFAULT, Constants.FS_VISIBLE, "Namext", 0);
}
return qq_lv_DVNodeText;
}
public OutlineColumnDesc getqq_lv_Size() {
if (qq_lv_Size == null) {
qq_lv_Size = new OutlineColumnDesc(Constants.TA_LEFT, false, false, 6, "size", Constants.FP_DEFAULT, Constants.FS_VISIBLE, "Size", 0);
}
return qq_lv_Size;
}
/**
* qq_tree_sp: transformed from: qqds_TreeView
* TagId=33
* isInherited=FALSE
*/
public JScrollPane getqq_tree_sp() {
if (qq_tree_sp == null) {
qq_tree_sp = CompoundFieldFactory.newScrollPane();
qq_tree_sp.setName("tree");
qq_tree_sp.setViewportView(getqq_tree());
qq_tree_sp.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
qq_tree_sp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
WidthPolicy.set(qq_tree_sp, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_tree_sp, Constants.SP_EXPLICIT);
// OPTIONAL qq_tree_sp.setSize(new Dimension(196, 418));
qq_tree_sp.setMinimumSize(new Dimension(196, 418));
qq_tree_sp.setPreferredSize(new Dimension(196, 418));
}
return qq_tree_sp;
}
public void setqq_tree_sp(JScrollPane value) {
JScrollPane oldValue = qq_tree_sp;
qq_tree_sp = value;
this.qq_Listeners.firePropertyChange("qq_tree_sp", oldValue, value);
}
/**
* qq_tree: transformed from: qqds_TreeView
* TagId=33
* isInherited=FALSE
*/
public TreeViewWidget getqq_tree() {
if (qq_tree == null) {
qq_tree = TreeFieldFactory.newTreeView(getTree());
qq_tree.setName("tree");
qq_tree.setRootVisible(false);
qq_tree.setDragEnabled(false);
}
return qq_tree;
}
public void setqq_tree(TreeViewWidget value) {
TreeViewWidget oldValue = qq_tree;
qq_tree = value;
this.qq_Listeners.firePropertyChange("qq_tree", oldValue, value);
}
/**
* qq_topGrid: transformed from: qqds_GridField
* TagId=12
* isInherited=FALSE
* In forte this was a 3x3 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_topGridProperties() {
qq_topGrid.setCellGravity(Constants.CG_CENTER);
qq_topGrid.setIgnoreInvisibleChildren(true);
qq_topGrid.setCollapsed(true);
qq_topGrid.setHeightPolicy(Constants.SP_NATURAL);
qq_topGrid.setWidthPolicy(Constants.SP_NATURAL);
qq_topGrid.setBackground(null);
qq_topGrid.setLocation(7, 9);
}
public GridField getqq_topGrid() {
if (qq_topGrid == null) {
qq_topGrid = CompoundFieldFactory.newGridField("topGrid", false);
setqq_topGridProperties();
qq_topGrid.setMinimumSize(new Dimension(883, 461));
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(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_topGrid.add( getqq_ToolBar(), 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.WEST; // Gravity - original: CG_MIDDLELEFT
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_topGrid.add( getqq_browserGrid(), qq_gbc1 );
GridBagConstraints qq_gbc2 = new GridBagConstraints();
qq_gbc2.gridx = 1; // Column 2
qq_gbc2.gridy = 1; // Row 2
qq_gbc2.weightx = 0;
qq_gbc2.weighty = 0;
qq_gbc2.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_CENTER 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_topGrid.add( getqq_lv(), qq_gbc2 );
GridBagConstraints qq_gbc3 = new GridBagConstraints();
qq_gbc3.gridx = 2; // Column 3
qq_gbc3.gridy = 1; // Row 2
qq_gbc3.weightx = 0;
qq_gbc3.weighty = 0;
qq_gbc3.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_CENTER gf
qq_gbc3.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc3.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_topGrid.add( getqq_tree_sp(), qq_gbc3 );
GridBagConstraints qq_gbc4 = new GridBagConstraints();
qq_gbc4.gridx = 0; // Column 1
qq_gbc4.gridy = 2; // Row 3
qq_gbc4.weightx = 0;
qq_gbc4.weighty = 0;
qq_gbc4.anchor = GridBagConstraints.WEST; // Gravity - original: CG_MIDDLELEFT
qq_gbc4.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc4.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_topGrid.add( getqq_statusLine(), qq_gbc4 );
}
return qq_topGrid;
}
public void setqq_topGrid(GridField value) {
GridField oldValue = qq_topGrid;
qq_topGrid = value;
this.qq_Listeners.firePropertyChange("qq_topGrid", 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_topGrid() );
}
return Form;
}
public void setForm(JPanel value) {
JPanel oldValue = Form;
Form = value;
this.qq_Listeners.firePropertyChange("Form", oldValue, value);
}
/**
* Gets the system close policy
*
* The SystemClosePolicy property determines how a window responds to user attempts to close it by using the native window system through the window close box or a window system menu command.
* SystemClosePolicy responds to window closure attempts according to the following parameters:
* <li>Constants.SC_DISABLED Does not allow window closure through window system.</li>
* <li>Constants.SC_ENABLEDNOFINALIZE Window can be closed, but the contents are not verified, guaranteeing that the window will close (for example, the user clicks the Cancel button).</li>
* <li>Constants.SC_ENABLEDFINALIZE Posts the RequestFinalize method on the window, with a reason code of zero.</li>
* <li>Constants.SC_ENABLEDSHUTDOWN Posts Shutdown event to window�s task and to all tasks started by that task. This is the default value.</li>
*/
public int getSystemClosePolicy() {
return qq_SystemClosePolicy;
}
/**
* Sets the system close policy
*
* The SystemClosePolicy property determines how a window responds to user attempts to close it by using the native window system through the window close box or a window system menu command.
* SystemClosePolicy responds to window closure attempts according to the following parameters:
* <li>Constants.SC_DISABLED Does not allow window closure through window system.</li>
* <li>Constants.SC_ENABLEDNOFINALIZE Window can be closed, but the contents are not verified, guaranteeing that the window will close (for example, the user clicks the Cancel button).</li>
* <li>Constants.SC_ENABLEDFINALIZE Posts the RequestFinalize method on the window, with a reason code of zero.</li>
* <li>Constants.SC_ENABLEDSHUTDOWN Posts Shutdown event to window�s task and to all tasks started by that task. This is the default value.</li>
*/
public void setSystemClosePolicy(int policy) {
this.qq_SystemClosePolicy = policy;
if (policy == Constants.SC_DISABLED) {
this.addComponentListener(new CloseHideAdaptor(this));
} else {
for (ComponentListener cl : this.getComponentListeners()) {
if (cl instanceof CloseHideAdaptor) {
this.removeComponentListener(cl);
break;
}
}
}
}
/**
* Gets the initial position policy
*
* The InitialPositionPolicy property sets the position of a main window when it is first displayed, relative to a primary window or the screen.
* You use the InitialPositionPolicy property in conjunction with the InitialX, InitialY properties.
* InitialPositionPolicy sets the position of a window according to the following values:
* <li>Constants.PP_SYSTEMDEFAULT Accepts the default window system placement specification.</li>
* <li>Constants.PP_PRIMARYCENTERED Centers the window relative to the window specified as the PrimaryWindow property.</li>
* <li>Constants.PP_PRIMARYRELATIVE Positions the window relative to the primary window, using the PrimaryWindow, InitialX and InitialY attributes.</li>
* <li>Constants.PP_SCREENCENTERED Centers the window relative to the screen.</li>
* <li>Constants.PP_SCREENRELATIVE Positions the window relative to the screen, using the InitialX and InitialY properties.</li>
*/
public int getInitialPositionPolicy() {
return qq_initialPositionPolicy;
}
/**
* Sets the initial position policy
*
* The InitialPositionPolicy property sets the position of a main window when it is first displayed, relative to a primary window or the screen.
* You use the InitialPositionPolicy property in conjunction with the InitialX, InitialY properties.
* InitialPositionPolicy sets the position of a window according to the following values:
* <li>Constants.PP_SYSTEMDEFAULT Accepts the default window system placement specification.</li>
* <li>Constants.PP_PRIMARYCENTERED Centers the window relative to the window specified as the PrimaryWindow property.</li>
* <li>Constants.PP_PRIMARYRELATIVE Positions the window relative to the primary window, using the PrimaryWindow, InitialX and InitialY attributes.</li>
* <li>Constants.PP_SCREENCENTERED Centers the window relative to the screen.</li>
* <li>Constants.PP_SCREENRELATIVE Positions the window relative to the screen, using the InitialX and InitialY properties.</li>
*/
public void setInitialPositionPolicy(int policy) {
this.qq_initialPositionPolicy = policy;
}
/**
* Gets the primary window
*
* The primary window property designates a window, known as a primary window, to serve as an initial position reference for the current window.
* When a main window first realizes itself through the Open method on the UserWindow, it assumes a position according to the InitialPositionPolicy attribute.
* When the InitialPositionPolicy property is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_PRIMARYCENTERED (centered on the primary window),
* the window realizes itself in a position relative to the designated primary window.<p>
* <p>
* To take a position relative to the primary window, a window uses the PrimaryWindow attribute in conjunction with the InitialX and InitialY properties, which specify the window�s horizontal and vertical coordinates.
*/
public Window getPrimaryWindow() {
return this.primaryWindow;
}
/**
* Sets the primary window
*
* The primary window property designates a window, known as a primary window, to serve as an initial position reference for the current window.
* When a main window first realizes itself through the Open method on the UserWindow, it assumes a position according to the InitialPositionPolicy attribute.
* When the InitialPositionPolicy property is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_PRIMARYCENTERED (centered on the primary window),
* the window realizes itself in a position relative to the designated primary window.<p>
* <p>
* To take a position relative to the primary window, a window uses the PrimaryWindow attribute in conjunction with the InitialX and InitialY properties, which specify the window�s horizontal and vertical coordinates.
*/
public void setPrimaryWindow(Window value) {
this.primaryWindow = value;
}
/**
* Gets the InitialX value
*
* The InitialX property (integer) is the window�s initial horizontal screen position, relative to a primary window or the screen. It is specified in mils.
* InitialX applies only to main windows and only when a window�s InitialPositionPolicy attribute is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_SCREENRELATIVE (relative to the screen).
* InitialX, and its corollary, InitialY, work in conjunction with the PrimaryWindow and InitialPositionPolicy attributes to determine the position of a main window when it is first realized.
*/
public int getInitialX() {
return initialX;
}
/**
* Sets the InitialX value
*
* The InitialX property (integer) is the window�s initial horizontal screen position, relative to a primary window or the screen. It is specified in mils.
* InitialX applies only to main windows and only when a window�s InitialPositionPolicy attribute is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_SCREENRELATIVE (relative to the screen).
* InitialX, and its corollary, InitialY, work in conjunction with the PrimaryWindow and InitialPositionPolicy attributes to determine the position of a main window when it is first realized.
*/
public void setInitialX(int value) {
this.initialX = value;
}
/**
* Gets the InitialY value
*
* The InitialY property (integer) is the window�s initial vertical screen position, relative to a primary window or the screen. It is specified in mils.
* InitialY applies only to main windows and only when a window�s InitialPositionPolicy attribute is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_SCREENRELATIVE (relative to the screen).
* InitialY, and its corollary, InitialX, work in conjunction with the PrimaryWindow and InitialPositionPolicy attributes to determine the position of a main window when it is first realized.
*/
public int getInitialY() {
return initialY;
}
/**
* Sets the InitialY value
*
* The InitialY property (integer) is the window�s initial vertical screen position, relative to a primary window or the screen. It is specified in mils.
* InitialY applies only to main windows and only when a window�s InitialPositionPolicy attribute is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_SCREENRELATIVE (relative to the screen).
* InitialY, and its corollary, InitialX, work in conjunction with the PrimaryWindow and InitialPositionPolicy attributes to determine the position of a main window when it is first realized.
*/
public void setInitialY(int value) {
this.initialY = value;
}
/**
* Gets the default message set number for the window and its widgets.
*/
public int getSetNum() {
return this.qq_defaultSet;
}
/**
* Sets the default message set number for the window and its widgets.
*/
public void setSetNum(int value) {
this.qq_defaultSet = value;
}
/**
* Gets the message set number for the message number of the window's title.
*/
public int getTitleSetNum() {
return this.qq_msgSet;
}
/**
* Sets the message set number for the message number of the window's title.
*/
public void setTitleSetNum(int value) {
this.qq_msgSet = value;
}
/**
* Gets the message number for the message number of the window's title.
*/
public int getTitleMsgNum() {
return this.qq_msgNumber;
}
/**
* Sets the message number for the message number of the window's title.
*/
public void setTitleMsgNum(int value) {
this.qq_msgNumber = value;
}
/**
* Initialise the window and all its children.
*/
protected void initialize() {
if (this.Form == null) {
this.setName( "Top" );
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_topGrid(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_ToolBar(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_Class_btns(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_newClassConstant_btn(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_UPDATE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_newUnmappedAttribute_btn(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_UPDATE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_newVirtualAttribute_btn(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_UPDATE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_newEvent_btn(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_UPDATE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_newMethod_btn(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_UPDATE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_EventHandler_Btn(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_UPDATE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_GridField21(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_windowWorkshop_Btn(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_UPDATE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_compileAll_btn(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_UPDATE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_saveAll_btn(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_UPDATE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_menuworkshop_Btn(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_UPDATE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_JButton35(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_browserGrid(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_rightFilter(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_rightTree(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_df(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_tf(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_statusLine(), Constants.FS_INACTIVE, Constants.FS_VIEWONLY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_lv(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_tree(), 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);
Top myClass = new Top();
myClass.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
myClass.setVisible(true);
UIutils.processGUIActions();
}
} // end class Top
// c Pass 2 Conversion Time: 702 milliseconds