package Menu;
import DisplayProject.Array_Of_DisplayNode;
import DisplayProject.Array_Of_OutlineColumnDesc;
import DisplayProject.CloseHideAdaptor;
import DisplayProject.Constants;
import DisplayProject.CursorMgr;
import DisplayProject.DisplayNode;
import DisplayProject.OutlineColumnDesc;
import DisplayProject.UDSWindow;
import DisplayProject.UIutils;
import DisplayProject.WindowManager;
import DisplayProject.WindowUsageMap;
import DisplayProject.actions.AppletConnectionInfo;
import DisplayProject.actions.CommandType;
import DisplayProject.actions.FieldPopupMenu;
import DisplayProject.actions.HeightPolicy;
import DisplayProject.actions.MenuText;
import DisplayProject.actions.Name;
import DisplayProject.actions.Parent;
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.ListView;
import DisplayProject.controls.MenuList;
import DisplayProject.controls.MenuSeparator;
import DisplayProject.events.AboutMenuListener;
import DisplayProject.events.ClientEventManager;
import DisplayProject.factory.CompoundFieldFactory;
import DisplayProject.factory.MenuFactory;
import DisplayProject.factory.TableFactory;
import DisplayProject.plaf.Win32LookAndFeel;
import DisplayProject.printing.PrintActionListener;
import DisplayProject.printing.PrintSetupActionListener;
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.ListElement;
import Framework.ParameterHolder;
import Framework.RuntimeProperties;
import Framework.TextData;
import Framework.UsageException;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.KeyboardFocusManager;
import java.awt.Window;
import java.awt.event.ActionEvent;
import java.awt.event.ComponentListener;
import java.awt.event.KeyEvent;
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.JCheckBoxMenuItem;
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JPanel;
import javax.swing.JPopupMenu;
import javax.swing.KeyStroke;
import javax.swing.MenuElement;
import javax.swing.UIManager;
import javax.swing.text.DefaultEditorKit;
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 int bob;
private boolean bill;
private int radio;
private DisplayNode list;
// ------------
// Constructors
// ------------
public Main() {
// 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 setBob(int bob) {
int oldValue = this.bob;
this.bob = bob;
this.qq_Listeners.firePropertyChange("bob", oldValue, this.bob);
}
public int getBob() {
return this.bob;
}
public void setBill(boolean bill) {
boolean oldValue = this.bill;
this.bill = bill;
this.qq_Listeners.firePropertyChange("bill", oldValue, this.bill);
}
public boolean getBill() {
return this.bill;
}
public void setRadio(int radio) {
int oldValue = this.radio;
this.radio = radio;
this.qq_Listeners.firePropertyChange("radio", oldValue, this.radio);
}
public int getRadio() {
return this.radio;
}
public void setList(DisplayNode list) {
DisplayNode oldValue = this.getList();
this.getqq_list().setRootNode(list);
this.qq_Listeners.firePropertyChange("list", oldValue, list);
}
public DisplayNode getList() {
return (DisplayNode)this.getqq_list().getRootNode();
}
// -------
// 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() {
FieldPopupMenu.set(this.getqq_list(), this.getqq_activityMenu());
JMenu sub = MenuFactory.newMenu(new TextData("Bob"), MenuFactory.qq_Resolver.cNAME);
MenuText.set(sub, "Bob");
JMenuItem item = MenuFactory.newMenuItem(new TextData("Bill"), new TextData("Bill Menu"), MenuFactory.qq_Resolver.cNAME_TEXT);
Parent.set(item, sub);
JMenuItem item2 = MenuFactory.newMenuItem(new TextData("mary"), MenuFactory.qq_Resolver.cNAME);
MenuText.set(item2, "Mary Menu");
Parent.set(item2, sub);
JMenuItem item3 = MenuFactory.newMenuItem(new TextData("Jill Menu"), MenuFactory.qq_Resolver.cTEXT);
Name.set(item3, "jill");
Parent.set(item3, sub);
Parent.set(item3, sub);
Parent.set(sub, this.getqq_help());
UserWindow.open(this);
// ----------
// Event Loop
// ----------
EventManager.startEventLoop();
try {
EventRegistration TaskHandle_Shutdown_langThreadcurrentThread = ClientEventManager.register( Thread.currentThread(), "Shutdown" );
EventRegistration Submenu_ChildAfterValueChange_getqq_edit = ClientEventManager.register( this.getqq_edit(), "ChildAfterValueChange" );
EventRegistration Submenu_ChildActivate_getqq_edit = ClientEventManager.register( this.getqq_edit(), "ChildActivate" );
EventRegistration MenuList_Activate_getqq_radio = ClientEventManager.register( this.getqq_radio(), "Activate" );
EventRegistration MenuList_AfterValueChange_getqq_radio = ClientEventManager.register( this.getqq_radio(), "AfterValueChange" );
EventRegistration MenuBar_ChildActivate_getJMenuBar = ClientEventManager.register( this.getJMenuBar(), "ChildActivate" );
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();
}
}
// ----------------------------
// <edit>.ChildAfterValueChange
// ----------------------------
else if (qq_currentEvent.isEvent(Submenu_ChildAfterValueChange_getqq_edit)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
MenuElement kid = (MenuElement)((ParameterHolder)qq_currentEvent.getParameter("Child")).getObject();
Logger.getLogger("task.part.logmgr").info("Edit child changed");
Logger.getLogger("task.part.logmgr").info(MenuText.get(kid));
Logger.getLogger("task.part.logmgr").info( Integer.toString(this.getBob()));
Logger.getLogger("task.part.logmgr").info( Boolean.toString(this.getBill()));
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// --------------------
// <edit>.ChildActivate
// --------------------
else if (qq_currentEvent.isEvent(Submenu_ChildActivate_getqq_edit)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
MenuElement kid = (MenuElement)((ParameterHolder)qq_currentEvent.getParameter("Child")).getObject();
Logger.getLogger("task.part.logmgr").info("Edit child activate");
Logger.getLogger("task.part.logmgr").info(MenuText.get(kid));
Logger.getLogger("task.part.logmgr").info( Integer.toString(this.getBob()));
Logger.getLogger("task.part.logmgr").info( Boolean.toString(this.getBill()));
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ----------------
// <radio>.activate
// ----------------
else if (qq_currentEvent.isEvent(MenuList_Activate_getqq_radio)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Logger.getLogger("task.part.logmgr").info("Radio activated");
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ------------------------
// <radio>.aftervalueChange
// ------------------------
else if (qq_currentEvent.isEvent(MenuList_AfterValueChange_getqq_radio)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Logger.getLogger("task.part.logmgr").info("Radio changed");
Logger.getLogger("task.part.logmgr").info( Integer.toString(this.getRadio()));
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ------------------------------
// self.window.Menu.ChildActivate
// ------------------------------
else if (qq_currentEvent.isEvent(MenuBar_ChildActivate_getJMenuBar)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
MenuElement kid = (MenuElement)((ParameterHolder)qq_currentEvent.getParameter("Child")).getObject();
Logger.getLogger("task.part.logmgr").info("MenuBar child activate");
Logger.getLogger("task.part.logmgr").info(MenuText.get(kid));
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
}
EventManager.deregister( TaskHandle_Shutdown_langThreadcurrentThread );
EventManager.deregister( Submenu_ChildAfterValueChange_getqq_edit );
EventManager.deregister( Submenu_ChildActivate_getqq_edit );
EventManager.deregister( MenuList_Activate_getqq_radio );
EventManager.deregister( MenuList_AfterValueChange_getqq_radio );
EventManager.deregister( MenuBar_ChildActivate_getJMenuBar );
}
//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 JCheckBoxMenuItem qq_bill;
public JMenu qq_activityMenu;
public JMenu qq_edit;
public JMenu qq_file;
public JMenu qq_help;
public JMenuBar qq_MainMenuBar;
public JMenuItem qq_blue;
public JMenuItem qq_editCopy;
public JMenuItem qq_editCut;
public JMenuItem qq_editDelete;
public JMenuItem qq_editPaste;
public JMenuItem qq_editSelectall;
public JMenuItem qq_fileExit;
public JMenuItem qq_fileNew;
public JMenuItem qq_fileOpen;
public JMenuItem qq_filePrint;
public JMenuItem qq_filePrintSetup;
public JMenuItem qq_fileSave;
public JMenuItem qq_helpAbout;
public JMenuItem qq_helpContents;
public JMenuItem qq_helpOnHelp;
public JMenuItem qq_helpSearch;
public JMenuItem qq_pink;
public JPanel Form;
public JPopupMenu qq_activityMenu_Popup;
public ListView qq_list;
public MenuList qq_bob;
public MenuList qq_radio;
public MenuSeparator qq_separator1;
public MenuSeparator qq_separator2;
public MenuSeparator qq_separator3;
public MenuSeparator qq_separator4;
public MenuSeparator qq_separator5;
public MenuSeparator qq_separator;
/**
* qq_fileNew: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_fileNew() {
if (qq_fileNew == null) {
qq_fileNew = MenuFactory.newMenuItem("fileNew", true);
qq_fileNew.setVerifyInputWhenFocusTarget(true);
CommandType.set(qq_fileNew, Constants.CT_DEFAULT);
qq_fileNew.setText( "New" );
qq_fileNew.setVisible(true);
}
return qq_fileNew;
}
public void setqq_fileNew(JMenuItem value) {
JMenuItem oldValue = qq_fileNew;
qq_fileNew = value;
this.qq_Listeners.firePropertyChange("qq_fileNew", oldValue, value);
}
/**
* qq_fileOpen: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_fileOpen() {
if (qq_fileOpen == null) {
qq_fileOpen = MenuFactory.newMenuItem("fileOpen", true);
qq_fileOpen.setVerifyInputWhenFocusTarget(true);
qq_fileOpen.setMnemonic( 'O' );
CommandType.set(qq_fileOpen, Constants.CT_CUSTOM);
qq_fileOpen.setText( "Open..." );
qq_fileOpen.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O, ActionEvent.CTRL_MASK));
qq_fileOpen.setVisible(true);
}
return qq_fileOpen;
}
public void setqq_fileOpen(JMenuItem value) {
JMenuItem oldValue = qq_fileOpen;
qq_fileOpen = value;
this.qq_Listeners.firePropertyChange("qq_fileOpen", oldValue, value);
}
/**
* qq_fileSave: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_fileSave() {
if (qq_fileSave == null) {
qq_fileSave = MenuFactory.newMenuItem("fileSave", true);
qq_fileSave.setVerifyInputWhenFocusTarget(true);
qq_fileSave.setMnemonic( 'S' );
CommandType.set(qq_fileSave, Constants.CT_CUSTOM);
qq_fileSave.setText( "Save" );
qq_fileSave.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S, ActionEvent.CTRL_MASK));
qq_fileSave.setVisible(true);
}
return qq_fileSave;
}
public void setqq_fileSave(JMenuItem value) {
JMenuItem oldValue = qq_fileSave;
qq_fileSave = value;
this.qq_Listeners.firePropertyChange("qq_fileSave", oldValue, value);
}
/**
* qq_separator: transformed from: qqds_MenuSeparator
*/
public MenuSeparator getqq_separator() {
if (qq_separator == null) {
qq_separator = new MenuSeparator();
qq_separator.setName("");
qq_separator.setVisible( true );
}
return qq_separator;
}
public void setqq_separator(MenuSeparator value) {
MenuSeparator oldValue = qq_separator;
qq_separator = value;
this.qq_Listeners.firePropertyChange("qq_separator", oldValue, value);
}
/**
* qq_filePrint: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_filePrint() {
if (qq_filePrint == null) {
qq_filePrint = MenuFactory.newMenuItem("filePrint", true);
qq_filePrint.setVerifyInputWhenFocusTarget(true);
qq_filePrint.addActionListener(new PrintActionListener(this));
CommandType.set(qq_filePrint, Constants.CT_PRINT);
qq_filePrint.setText( "Print..." );
qq_filePrint.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_P, ActionEvent.CTRL_MASK));
qq_filePrint.setVisible(true);
}
return qq_filePrint;
}
public void setqq_filePrint(JMenuItem value) {
JMenuItem oldValue = qq_filePrint;
qq_filePrint = value;
this.qq_Listeners.firePropertyChange("qq_filePrint", oldValue, value);
}
/**
* qq_filePrintSetup: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_filePrintSetup() {
if (qq_filePrintSetup == null) {
qq_filePrintSetup = MenuFactory.newMenuItem("filePrintSetup", true);
qq_filePrintSetup.setVerifyInputWhenFocusTarget(true);
qq_filePrintSetup.addActionListener(new PrintSetupActionListener());
CommandType.set(qq_filePrintSetup, Constants.CT_PRINTSETUP);
qq_filePrintSetup.setText( "Print Setup..." );
qq_filePrintSetup.setVisible(true);
}
return qq_filePrintSetup;
}
public void setqq_filePrintSetup(JMenuItem value) {
JMenuItem oldValue = qq_filePrintSetup;
qq_filePrintSetup = value;
this.qq_Listeners.firePropertyChange("qq_filePrintSetup", oldValue, value);
}
/**
* qq_separator1: transformed from: qqds_MenuSeparator
*/
public MenuSeparator getqq_separator1() {
if (qq_separator1 == null) {
qq_separator1 = new MenuSeparator();
qq_separator1.setName("");
qq_separator1.setVisible( true );
}
return qq_separator1;
}
public void setqq_separator1(MenuSeparator value) {
MenuSeparator oldValue = qq_separator1;
qq_separator1 = value;
this.qq_Listeners.firePropertyChange("qq_separator1", oldValue, value);
}
/**
* qq_fileExit: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_fileExit() {
if (qq_fileExit == null) {
qq_fileExit = MenuFactory.newMenuItem("fileExit", true);
qq_fileExit.setVerifyInputWhenFocusTarget(true);
qq_fileExit.setMnemonic( 'x' );
qq_fileExit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F4, ActionEvent.ALT_MASK));
CommandType.set(qq_fileExit, Constants.CT_EXIT);
qq_fileExit.setText( "Exit" );
qq_fileExit.setVisible(true);
}
return qq_fileExit;
}
public void setqq_fileExit(JMenuItem value) {
JMenuItem oldValue = qq_fileExit;
qq_fileExit = value;
this.qq_Listeners.firePropertyChange("qq_fileExit", oldValue, value);
}
/**
* qq_file: transformed from: qqds_Submenu
*/
public JMenu getqq_file() {
if (qq_file == null) {
qq_file = new JMenu();
qq_file.setName("file");
qq_file.setMnemonic( 'f' );
qq_file.setText( "File" );
qq_file.setVisible(true);
qq_file.add(getqq_fileNew());
qq_file.add(getqq_fileOpen());
qq_file.add(getqq_fileSave());
qq_file.add(getqq_separator());
qq_file.add(getqq_filePrint());
qq_file.add(getqq_filePrintSetup());
qq_file.add(getqq_separator1());
qq_file.add(getqq_fileExit());
}
return qq_file;
}
/**
* qq_editCut: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_editCut() {
if (qq_editCut == null) {
qq_editCut = MenuFactory.newMenuItem("editCut", true);
qq_editCut.setVerifyInputWhenFocusTarget(true);
qq_editCut.addActionListener(new DefaultEditorKit.CutAction());
qq_editCut.setRequestFocusEnabled(false);
CommandType.set(qq_editCut, Constants.CT_CUT);
qq_editCut.setText( "Cut" );
qq_editCut.setVisible(true);
}
return qq_editCut;
}
public void setqq_editCut(JMenuItem value) {
JMenuItem oldValue = qq_editCut;
qq_editCut = value;
this.qq_Listeners.firePropertyChange("qq_editCut", oldValue, value);
}
/**
* qq_editCopy: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_editCopy() {
if (qq_editCopy == null) {
qq_editCopy = MenuFactory.newMenuItem("editCopy", true);
qq_editCopy.setVerifyInputWhenFocusTarget(true);
qq_editCopy.addActionListener(new DefaultEditorKit.CopyAction());
qq_editCopy.setRequestFocusEnabled(false);
CommandType.set(qq_editCopy, Constants.CT_COPY);
qq_editCopy.setText( "Copy" );
qq_editCopy.setVisible(true);
}
return qq_editCopy;
}
public void setqq_editCopy(JMenuItem value) {
JMenuItem oldValue = qq_editCopy;
qq_editCopy = value;
this.qq_Listeners.firePropertyChange("qq_editCopy", oldValue, value);
}
/**
* qq_editPaste: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_editPaste() {
if (qq_editPaste == null) {
qq_editPaste = MenuFactory.newMenuItem("editPaste", true);
qq_editPaste.setVerifyInputWhenFocusTarget(true);
qq_editPaste.addActionListener(new DefaultEditorKit.PasteAction());
qq_editPaste.setRequestFocusEnabled(false);
CommandType.set(qq_editPaste, Constants.CT_PASTE);
qq_editPaste.setText( "Paste" );
qq_editPaste.setVisible(true);
}
return qq_editPaste;
}
public void setqq_editPaste(JMenuItem value) {
JMenuItem oldValue = qq_editPaste;
qq_editPaste = value;
this.qq_Listeners.firePropertyChange("qq_editPaste", oldValue, value);
}
/**
* qq_editDelete: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_editDelete() {
if (qq_editDelete == null) {
qq_editDelete = MenuFactory.newMenuItem("editDelete", true);
qq_editDelete.setVerifyInputWhenFocusTarget(true);
CommandType.set(qq_editDelete, Constants.CT_DELETE);
qq_editDelete.setText( "Delete" );
qq_editDelete.setVisible(true);
}
return qq_editDelete;
}
public void setqq_editDelete(JMenuItem value) {
JMenuItem oldValue = qq_editDelete;
qq_editDelete = value;
this.qq_Listeners.firePropertyChange("qq_editDelete", oldValue, value);
}
/**
* qq_editSelectall: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_editSelectall() {
if (qq_editSelectall == null) {
qq_editSelectall = MenuFactory.newMenuItem("editSelectall", true);
qq_editSelectall.setVerifyInputWhenFocusTarget(true);
qq_editSelectall.addActionListener(new UIutils.SelectAllAction());
CommandType.set(qq_editSelectall, Constants.CT_SELECTALL);
qq_editSelectall.setText( "Select All" );
qq_editSelectall.setVisible(true);
}
return qq_editSelectall;
}
public void setqq_editSelectall(JMenuItem value) {
JMenuItem oldValue = qq_editSelectall;
qq_editSelectall = value;
this.qq_Listeners.firePropertyChange("qq_editSelectall", oldValue, value);
}
/**
* qq_separator2: transformed from: qqds_MenuSeparator
*/
public MenuSeparator getqq_separator2() {
if (qq_separator2 == null) {
qq_separator2 = new MenuSeparator();
qq_separator2.setName("");
qq_separator2.setVisible( true );
}
return qq_separator2;
}
public void setqq_separator2(MenuSeparator value) {
MenuSeparator oldValue = qq_separator2;
qq_separator2 = value;
this.qq_Listeners.firePropertyChange("qq_separator2", oldValue, value);
}
/**
* qq_bob: transformed from: qqds_MenuList
*/
public MenuList getqq_bob() {
if (qq_bob == null) {
qq_bob = new MenuList();
qq_bob.setName("bob");
String[] names = {"Bob 1", "Bob 2", "Bob 3"};
Array_Of_ListElement<ListElement> elements = new Array_Of_ListElement<ListElement>();
elements.add( new ListElement( 1, names[0], ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
elements.add( new ListElement( 2, names[1], ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
elements.add( new ListElement( 3, names[2], ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
getBindingManager().bindComponent(qq_bob, "bob", elements);
}
return qq_bob;
}
public void setqq_bob(MenuList value) {
MenuList oldValue = qq_bob;
qq_bob = value;
this.qq_Listeners.firePropertyChange("qq_bob", oldValue, value);
}
/**
* qq_separator3: transformed from: qqds_MenuSeparator
*/
public MenuSeparator getqq_separator3() {
if (qq_separator3 == null) {
qq_separator3 = new MenuSeparator();
qq_separator3.setName("");
qq_separator3.setVisible( true );
}
return qq_separator3;
}
public void setqq_separator3(MenuSeparator value) {
MenuSeparator oldValue = qq_separator3;
qq_separator3 = value;
this.qq_Listeners.firePropertyChange("qq_separator3", oldValue, value);
}
/**
* qq_bill: transformed from: qqds_MenuToggle
*/
public JCheckBoxMenuItem getqq_bill() {
if (qq_bill == null) {
qq_bill = MenuFactory.newMenuToggle("bill");
getBindingManager().bindComponent(qq_bill, "bill");
this.qq_bill.setText("Bill");
this.qq_bill.setVisible(true);
this.qq_bill.setState(false);
}
return qq_bill;
}
public void setqq_bill(JCheckBoxMenuItem value) {
JCheckBoxMenuItem oldValue = qq_bill;
qq_bill = value;
this.qq_Listeners.firePropertyChange("qq_bill", oldValue, value);
}
/**
* qq_edit: transformed from: qqds_Submenu
*/
public JMenu getqq_edit() {
if (qq_edit == null) {
qq_edit = new JMenu();
qq_edit.setName("edit");
qq_edit.setMnemonic( 'e' );
qq_edit.setText( "Edit" );
qq_edit.setVisible(true);
qq_edit.add(getqq_editCut());
qq_edit.add(getqq_editCopy());
qq_edit.add(getqq_editPaste());
qq_edit.add(getqq_editDelete());
qq_edit.add(getqq_editSelectall());
qq_edit.add(getqq_separator2());
qq_edit.add(getqq_bob());
qq_edit.add(getqq_separator3());
qq_edit.add(getqq_bill());
}
return qq_edit;
}
/**
* qq_helpContents: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_helpContents() {
if (qq_helpContents == null) {
qq_helpContents = MenuFactory.newMenuItem("helpContents", true);
qq_helpContents.setVerifyInputWhenFocusTarget(true);
CommandType.set(qq_helpContents, Constants.CT_HELPCONTENTS);
qq_helpContents.setText( "Contents" );
qq_helpContents.setVisible(true);
}
return qq_helpContents;
}
public void setqq_helpContents(JMenuItem value) {
JMenuItem oldValue = qq_helpContents;
qq_helpContents = value;
this.qq_Listeners.firePropertyChange("qq_helpContents", oldValue, value);
}
/**
* qq_helpSearch: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_helpSearch() {
if (qq_helpSearch == null) {
qq_helpSearch = MenuFactory.newMenuItem("helpSearch", true);
qq_helpSearch.setVerifyInputWhenFocusTarget(true);
CommandType.set(qq_helpSearch, Constants.CT_HELPSEARCH);
qq_helpSearch.setText( "Search" );
qq_helpSearch.setVisible(true);
}
return qq_helpSearch;
}
public void setqq_helpSearch(JMenuItem value) {
JMenuItem oldValue = qq_helpSearch;
qq_helpSearch = value;
this.qq_Listeners.firePropertyChange("qq_helpSearch", oldValue, value);
}
/**
* qq_helpOnHelp: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_helpOnHelp() {
if (qq_helpOnHelp == null) {
qq_helpOnHelp = MenuFactory.newMenuItem("helpOnHelp", true);
qq_helpOnHelp.setVerifyInputWhenFocusTarget(true);
CommandType.set(qq_helpOnHelp, Constants.CT_HELPONHELP);
qq_helpOnHelp.setText( "Help" );
qq_helpOnHelp.setVisible(true);
}
return qq_helpOnHelp;
}
public void setqq_helpOnHelp(JMenuItem value) {
JMenuItem oldValue = qq_helpOnHelp;
qq_helpOnHelp = value;
this.qq_Listeners.firePropertyChange("qq_helpOnHelp", oldValue, value);
}
/**
* qq_separator4: transformed from: qqds_MenuSeparator
*/
public MenuSeparator getqq_separator4() {
if (qq_separator4 == null) {
qq_separator4 = new MenuSeparator();
qq_separator4.setName("");
qq_separator4.setVisible( true );
}
return qq_separator4;
}
public void setqq_separator4(MenuSeparator value) {
MenuSeparator oldValue = qq_separator4;
qq_separator4 = value;
this.qq_Listeners.firePropertyChange("qq_separator4", oldValue, value);
}
/**
* qq_helpAbout: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_helpAbout() {
if (qq_helpAbout == null) {
qq_helpAbout = MenuFactory.newMenuItem("helpAbout", true);
qq_helpAbout.setVerifyInputWhenFocusTarget(true);
qq_helpAbout.addActionListener(new AboutMenuListener());
CommandType.set(qq_helpAbout, Constants.CT_ABOUT);
qq_helpAbout.setText( "About" );
qq_helpAbout.setVisible(true);
}
return qq_helpAbout;
}
public void setqq_helpAbout(JMenuItem value) {
JMenuItem oldValue = qq_helpAbout;
qq_helpAbout = value;
this.qq_Listeners.firePropertyChange("qq_helpAbout", oldValue, value);
}
/**
* qq_help: transformed from: qqds_Submenu
*/
public JMenu getqq_help() {
if (qq_help == null) {
qq_help = new JMenu();
qq_help.setName("help");
qq_help.setMnemonic( 'h' );
qq_help.setText( "Help" );
qq_help.setVisible(true);
qq_help.add(getqq_helpContents());
qq_help.add(getqq_helpSearch());
qq_help.add(getqq_helpOnHelp());
qq_help.add(getqq_separator4());
qq_help.add(getqq_helpAbout());
}
return qq_help;
}
/**
* qq_blue: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_blue() {
if (qq_blue == null) {
qq_blue = MenuFactory.newMenuItem("blue", true);
qq_blue.setVerifyInputWhenFocusTarget(true);
qq_blue.setMnemonic( 'B' );
CommandType.set(qq_blue, Constants.CT_CUSTOM);
qq_blue.setText( "Blue" );
qq_blue.setVisible(true);
}
return qq_blue;
}
public void setqq_blue(JMenuItem value) {
JMenuItem oldValue = qq_blue;
qq_blue = value;
this.qq_Listeners.firePropertyChange("qq_blue", oldValue, value);
}
/**
* qq_pink: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_pink() {
if (qq_pink == null) {
qq_pink = MenuFactory.newMenuItem("pink", true);
qq_pink.setVerifyInputWhenFocusTarget(true);
qq_pink.setMnemonic( 'P' );
CommandType.set(qq_pink, Constants.CT_CUSTOM);
qq_pink.setText( "Pink" );
qq_pink.setVisible(true);
}
return qq_pink;
}
public void setqq_pink(JMenuItem value) {
JMenuItem oldValue = qq_pink;
qq_pink = value;
this.qq_Listeners.firePropertyChange("qq_pink", oldValue, value);
}
/**
* qq_separator5: transformed from: qqds_MenuSeparator
*/
public MenuSeparator getqq_separator5() {
if (qq_separator5 == null) {
qq_separator5 = new MenuSeparator();
qq_separator5.setName("");
qq_separator5.setVisible( true );
}
return qq_separator5;
}
public void setqq_separator5(MenuSeparator value) {
MenuSeparator oldValue = qq_separator5;
qq_separator5 = value;
this.qq_Listeners.firePropertyChange("qq_separator5", oldValue, value);
}
/**
* qq_radio: transformed from: qqds_MenuList
*/
public MenuList getqq_radio() {
if (qq_radio == null) {
qq_radio = new MenuList();
qq_radio.setName("radio");
String[] names = {"One", "Two"};
Array_Of_ListElement<ListElement> elements = new Array_Of_ListElement<ListElement>();
elements.add( new ListElement( 1, names[0], ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
elements.add( new ListElement( 2, names[1], ListElement.qq_Resolver.cINTEGERVALUE_TEXTVALUE ) );
getBindingManager().bindComponent(qq_radio, "radio", elements);
}
return qq_radio;
}
public void setqq_radio(MenuList value) {
MenuList oldValue = qq_radio;
qq_radio = value;
this.qq_Listeners.firePropertyChange("qq_radio", oldValue, value);
}
/**
* qq_activityMenu: transformed from: qqds_Submenu
*/
public JMenu getqq_activityMenu() {
if (qq_activityMenu == null) {
qq_activityMenu = new JMenu();
qq_activityMenu.setName("activityMenu");
qq_activityMenu.setMnemonic( 'A' );
qq_activityMenu.setText( "Activity" );
qq_activityMenu.setVisible(true);
qq_activityMenu.add(getqq_blue());
qq_activityMenu.add(getqq_pink());
qq_activityMenu.add(getqq_separator5());
qq_activityMenu.add(getqq_radio());
}
return qq_activityMenu;
}
/**
* qq_activityMenu_Popup: transformed from: qqds_Submenu
*/
public JPopupMenu getqq_activityMenu_Popup() {
if (qq_activityMenu_Popup == null) {
qq_activityMenu_Popup = new JPopupMenu();
qq_activityMenu_Popup.setName("activityMenu");
qq_activityMenu_Popup.setVisible(true);
}
return qq_activityMenu_Popup;
}
/**
* qq_MainMenuBar: transformed from: qqds_MenuBar
*/
public JMenuBar getqq_MenuBar() {
if (qq_MainMenuBar == null) {
qq_MainMenuBar = MenuFactory.newMenuBar();
qq_MainMenuBar.setName("MainMenuBar");
qq_MainMenuBar.setBorderPainted(false);
this.qq_MainMenuBar.add(getqq_file());
this.qq_MainMenuBar.add(getqq_edit());
this.qq_MainMenuBar.add(getqq_help());
this.qq_MainMenuBar.add(getqq_activityMenu());
}
return qq_MainMenuBar;
}
public void setqq_MainMenuBar(JMenuBar value) {
JMenuBar oldValue = qq_MainMenuBar;
qq_MainMenuBar = value;
this.qq_Listeners.firePropertyChange("qq_MainMenuBar", oldValue, value);
}
/**
* qq_list: transformed from: qqds_ListView
* TagId=42
* isInherited=FALSE
*/
public ListView getqq_list() {
if (qq_list == null) {
qq_list = TableFactory.newListView("list", Constants.LT_DETAIL, null, Font.PLAIN);
qq_list.setMappedType(Array_Of_DisplayNode.class);
Array_Of_OutlineColumnDesc<OutlineColumnDesc> columns = new Array_Of_OutlineColumnDesc<OutlineColumnDesc>();
qq_list.setColumnList(columns);
qq_list.setHasTitles(true);
qq_list.setSize(new Dimension(374, 88));
qq_list.setMinimumSize(new Dimension(374, 88));
// OPTIONAL qq_list.setPreferredSize(new Dimension(374, 88));
WidthPolicy.set(qq_list, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_list, Constants.SP_EXPLICIT);
qq_list.setLocation(26, 23);
}
return qq_list;
}
public void setqq_list(ListView value) {
ListView oldValue = qq_list;
qq_list = value;
this.qq_Listeners.firePropertyChange("qq_list", 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_list() );
}
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( "Main" );
this.setTitle( "" );
this.setSystemClosePolicy(Constants.SC_ENABLEDSHUTDOWN);
this.setJMenuBar( getqq_MenuBar() );
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_fileNew(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_fileOpen(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_fileSave(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_separator(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_filePrint(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_filePrintSetup(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_separator1(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_fileExit(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_file(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_editCut(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_editCopy(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_editPaste(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_editDelete(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_editSelectall(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_separator2(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_bob(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_separator3(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_bill(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_edit(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_helpContents(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_helpSearch(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_helpOnHelp(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_separator4(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_helpAbout(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_help(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_blue(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_pink(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_separator5(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_radio(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_activityMenu(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_list(), 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: 484 milliseconds