package Splitter;
import DisplayProject.CloseHideAdaptor;
import DisplayProject.Constants;
import DisplayProject.CursorMgr;
import DisplayProject.DisplayNode;
import DisplayProject.UDSWindow;
import DisplayProject.UIutils;
import DisplayProject.WindowManager;
import DisplayProject.WindowUsageMap;
import DisplayProject.actions.AppletConnectionInfo;
import DisplayProject.actions.ColourChange;
import DisplayProject.actions.ExitOnTab;
import DisplayProject.actions.Height;
import DisplayProject.actions.HeightPolicy;
import DisplayProject.actions.RootNode;
import DisplayProject.actions.UserWindow;
import DisplayProject.actions.WidgetX;
import DisplayProject.actions.WidgetY;
import DisplayProject.actions.Width;
import DisplayProject.actions.WidthPolicy;
import DisplayProject.binding.BindingManager;
import DisplayProject.binding.beans.ExtendedPropertyChangeSupport;
import DisplayProject.binding.beans.Observable;
import DisplayProject.controls.MultiLineTextField;
import DisplayProject.controls.Rectangle;
import DisplayProject.controls.TreeViewWidget;
import DisplayProject.events.ClientEventManager;
import DisplayProject.factory.CompoundFieldFactory;
import DisplayProject.factory.TextEditFactory;
import DisplayProject.factory.TreeFieldFactory;
import DisplayProject.plaf.Win32LookAndFeel;
import Framework.ErrorMgr;
import Framework.EventHandle;
import Framework.EventManager;
import Framework.EventRegistration;
import Framework.File;
import Framework.ForteKeyboardFocusManager;
import Framework.FrameworkUtils;
import Framework.RuntimeProperties;
import Framework.TextData;
import Framework.UsageException;
import java.awt.Dimension;
import java.awt.KeyboardFocusManager;
import java.awt.Window;
import java.awt.event.ComponentListener;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.Serializable;
import java.lang.String;
import java.net.MalformedURLException;
import java.net.URL;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.UIManager;
/**
* 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 DisplayNode aTree;
private TextData text;
// ------------
// 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 setATree(DisplayNode aTree) {
DisplayNode oldValue = this.aTree;
this.aTree = aTree;
RootNode.set(this.getqq_aTree(), aTree);
this.qq_Listeners.firePropertyChange("ATree", oldValue, this.aTree);
}
public DisplayNode getATree() {
return this.aTree;
}
public void setText(TextData text) {
TextData oldValue = this.text;
this.text = text;
this.qq_Listeners.firePropertyChange("text", oldValue, this.text);
}
public TextData getText() {
return this.text;
}
// -------
// 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() {
this.setupNode();
this.setText(new TextData("This is some text"));
this.handleResize();
UserWindow.open(this);
// ----------
// Event Loop
// ----------
EventManager.startEventLoop();
try {
EventRegistration TaskHandle_Shutdown_langThreadcurrentThread = ClientEventManager.register( Thread.currentThread(), "Shutdown" );
EventRegistration Rectangle_AfterMove_getqq_spliter = ClientEventManager.register( this.getqq_spliter(), "AfterMove" );
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();
}
}
// -------------------
// <spliter>.AfterMove
// -------------------
else if (qq_currentEvent.isEvent(Rectangle_AfterMove_getqq_spliter)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
this.handleResize();
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
}
EventManager.deregister( TaskHandle_Shutdown_langThreadcurrentThread );
EventManager.deregister( Rectangle_AfterMove_getqq_spliter );
}
//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);
}
}
/**
* handleResize<p>
* <p>
*/
public void handleResize() {
WidgetX.set(this.getqq_aTree(), 0);
WidgetY.set(this.getqq_aTree(), 0);
Height.set(this.getqq_aTree(), Height.get(this.getqq_spliter()));
Width.set(this.getqq_aTree(), WidgetX.get(this.getqq_spliter()));
WidgetX.set(this.getqq_text(), WidgetX.get(this.getqq_spliter())+Width.get(this.getqq_spliter()));
WidgetY.set(this.getqq_text(), 0);
Height.set(this.getqq_text(), Height.get(this.getqq_spliter()));
Width.set(this.getqq_text(), Width.get(this)-(WidgetX.get(this.getqq_spliter())+Width.get(this.getqq_spliter())));
}
/**
* setupNode<p>
* <p>
*/
public void setupNode() {
this.setATree(new DisplayNode(new TextData("Root node"), true, true, true, DisplayNode.qq_Resolver.cDVNODETEXT_ISFILLED_ISFOLDER_ISOPENED));
DisplayNode aNode = this.getATree();
for (int i = 1; i <= 20; i++) {
DisplayNode newNode = new DisplayNode(new TextData("A node "), true, true, true, DisplayNode.qq_Resolver.cDVNODETEXT_ISFILLED_ISFOLDER_ISOPENED);
newNode.getDVNodeText().concat(i);
newNode.setParent(aNode);
aNode = newNode;
}
}
// ------------------
// 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 JPanel Form;
public JScrollPane qq_aTree_sp;
public JScrollPane qq_text_sp;
public MultiLineTextField qq_text;
public Rectangle qq_spliter;
public TreeViewWidget qq_aTree;
/**
* qq_spliter: transformed from: qqds_Rectangle
* TagId=12
* isInherited=FALSE
*/
public Rectangle getqq_spliter() {
if (qq_spliter == null) {
qq_spliter = new Rectangle();
qq_spliter.setName("spliter");
qq_spliter.setLineWeight(DisplayProject.Constants.W_ONEPIXEL);
qq_spliter.setOpaque(true);
ColourChange.setBackground(qq_spliter, Constants.C_BRIGHTMAGENTA);
ColourChange.setForeground(qq_spliter, Constants.C_BRIGHTMAGENTA);
WidthPolicy.set(qq_spliter, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_spliter, Constants.SP_EXPLICIT);
qq_spliter.setSize(new Dimension(7, 321));
qq_spliter.setMinimumSize(new Dimension(7, 321));
qq_spliter.setPreferredSize(new Dimension(7, 321));
qq_spliter.setLocation(170, 0);
}
return qq_spliter;
}
public void setqq_spliter(Rectangle value) {
Rectangle oldValue = qq_spliter;
qq_spliter = value;
this.qq_Listeners.firePropertyChange("qq_spliter", oldValue, value);
}
/**
* qq_aTree_sp: transformed from: qqds_TreeView
* TagId=13
* isInherited=FALSE
*/
public JScrollPane getqq_aTree_sp() {
if (qq_aTree_sp == null) {
qq_aTree_sp = CompoundFieldFactory.newScrollPane();
qq_aTree_sp.setName("aTree");
qq_aTree_sp.setViewportView(getqq_aTree());
qq_aTree_sp.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
qq_aTree_sp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
WidthPolicy.set(qq_aTree_sp, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_aTree_sp, Constants.SP_EXPLICIT);
qq_aTree_sp.setSize(new Dimension(170, 324));
qq_aTree_sp.setMinimumSize(new Dimension(170, 324));
qq_aTree_sp.setPreferredSize(new Dimension(170, 324));
}
return qq_aTree_sp;
}
public void setqq_aTree_sp(JScrollPane value) {
JScrollPane oldValue = qq_aTree_sp;
qq_aTree_sp = value;
this.qq_Listeners.firePropertyChange("qq_aTree_sp", oldValue, value);
}
/**
* qq_aTree: transformed from: qqds_TreeView
* TagId=13
* isInherited=FALSE
*/
public TreeViewWidget getqq_aTree() {
if (qq_aTree == null) {
qq_aTree = TreeFieldFactory.newTreeView(getATree());
qq_aTree.setName("aTree");
qq_aTree.setRootVisible(false);
qq_aTree.setDragEnabled(false);
}
return qq_aTree;
}
public void setqq_aTree(TreeViewWidget value) {
TreeViewWidget oldValue = qq_aTree;
qq_aTree = value;
this.qq_Listeners.firePropertyChange("qq_aTree", oldValue, value);
}
/**
* qq_text_sp: transformed from: qqds_TextField
* TagId=14
* isInherited=FALSE
*/
public JScrollPane getqq_text_sp() {
if (qq_text_sp == null) {
qq_text_sp = CompoundFieldFactory.newScrollPane();
qq_text_sp.setName("text");
qq_text_sp.setViewportView(getqq_text());
qq_text_sp.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
qq_text_sp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
WidthPolicy.set(qq_text_sp, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_text_sp, Constants.SP_EXPLICIT);
qq_text_sp.setSize(new Dimension(250, 321));
qq_text_sp.setMinimumSize(new Dimension(250, 321));
qq_text_sp.setPreferredSize(new Dimension(250, 321));
qq_text_sp.setLocation(177, 0);
}
return qq_text_sp;
}
public void setqq_text_sp(JScrollPane value) {
JScrollPane oldValue = qq_text_sp;
qq_text_sp = value;
this.qq_Listeners.firePropertyChange("qq_text_sp", oldValue, value);
}
/**
* qq_text: transformed from: qqds_TextField
* TagId=14
* isInherited=FALSE
*/
public MultiLineTextField getqq_text() {
if (qq_text == null) {
qq_text = TextEditFactory.newTextField("text", 24, 33);
getBindingManager().bindComponent(qq_text, "text");
ExitOnTab.set(qq_text, true);
WidthPolicy.set(qq_text, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_text, Constants.SP_EXPLICIT);
qq_text.setLocation(177, 0);
}
return qq_text;
}
public void setqq_text(MultiLineTextField value) {
MultiLineTextField oldValue = qq_text;
qq_text = value;
this.qq_Listeners.firePropertyChange("qq_text", 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_text_sp() );
Form.add( getqq_aTree_sp() );
Form.add( getqq_spliter() );
}
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);
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_spliter(), Constants.FS_HORZMOVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_aTree(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_text(), 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: 421 milliseconds