package shapes;
import DisplayProject.CloseHideAdaptor;
import DisplayProject.Constants;
import DisplayProject.CursorMgr;
import DisplayProject.UDSWindow;
import DisplayProject.UIutils;
import DisplayProject.WindowManager;
import DisplayProject.WindowUsageMap;
import DisplayProject.actions.AppletConnectionInfo;
import DisplayProject.actions.ColourChange;
import DisplayProject.actions.HeightPolicy;
import DisplayProject.actions.Parent;
import DisplayProject.actions.UserWindow;
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.Line;
import DisplayProject.controls.Panel;
import DisplayProject.controls.Point;
import DisplayProject.controls.PolyLine;
import DisplayProject.controls.Rectangle;
import DisplayProject.events.ClientEventManager;
import DisplayProject.factory.CompoundFieldFactory;
import DisplayProject.factory.PushButtonFactory;
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.IntegerData;
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.JButton;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.UIManager;
import org.apache.log4j.Logger;
import shapes.OtherClass;
/**
* Mainwin<p>
* <p>
* @author Generated from Forte
* @since 19-Nov-2008
*/
@RuntimeProperties(isDistributed=false, isAnchored=false, isShared=false, isTransactional=false)
@UDSWindow()
@SuppressWarnings("serial")
public class Mainwin
extends JFrame
implements Serializable, Observable
{
// ----------
// Attributes
// ----------
protected File DefaultHelpFile;
protected BindingManager bindingManager = null;
public PropertyChangeSupport qq_Listeners = new ExtendedPropertyChangeSupport(this, true);
// ------------
// Constructors
// ------------
public Mainwin() {
// Explicitly call the superclass constructor to prevent the implicit call
super();
this.initialize();
this.initialise();
OtherClass x = new OtherClass();
x.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;
}
// -------
// 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() {
Logger.getLogger("task.part.logmgr").info(new TextData().replaceParameters("sx:%1, ex:%2, sy:%3 ey:%4", new IntegerData(this.getqq_lne().getStartX()), new IntegerData(this.getqq_lne().getEndX()), new IntegerData(this.getqq_lne().getStartY()), new IntegerData(this.getqq_lne().getEndY())));
UserWindow.open(this);
// ----------
// Event Loop
// ----------
EventManager.startEventLoop();
try {
EventRegistration TaskHandle_Shutdown_langThreadcurrentThread = ClientEventManager.register( Thread.currentThread(), "Shutdown" );
EventRegistration PolyLine_Click_getqq_poly = ClientEventManager.register( this.getqq_poly(), "Click" );
EventRegistration Line_Click_getqq_lne = ClientEventManager.register( this.getqq_lne(), "Click" );
EventRegistration PushButton_Click_getqq_dynamic = ClientEventManager.register( this.getqq_dynamic(), "Click" );
while (true) {
UIutils.processGUIActions();
EventHandle qq_currentEvent = EventManager.waitForEvent();
if (qq_currentEvent == null)
break;
// -------------
// task.Shutdown
// -------------
if (qq_currentEvent.isEvent(TaskHandle_Shutdown_langThreadcurrentThread)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
break;
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ------------
// <poly>.click
// ------------
else if (qq_currentEvent.isEvent(PolyLine_Click_getqq_poly)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
WindowManager.messageDialog(this, "Poly clicked", 1, 50);
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// -----------
// <lne>.click
// -----------
else if (qq_currentEvent.isEvent(Line_Click_getqq_lne)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
WindowManager.messageDialog(this, "Line clicked", 1, 50);
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ---------------
// <dynamic>.click
// ---------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_dynamic)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Panel p = CompoundFieldFactory.newPanel();
ColourChange.setBackground(p, Constants.C_BLUE);
Parent.set(p, UIutils.getForm(this));
for (int i = 1; i <= 200; i++) {
Line l = new Line();
l.setStartX(0);
l.setEndX(Width.get((JComponent)p));
l.setStartY(i*100);
l.setEndY(1*100);
ColourChange.setForeground(p, Constants.C_YELLOW);
Parent.set(l, p);
}
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
}
EventManager.deregister( TaskHandle_Shutdown_langThreadcurrentThread );
EventManager.deregister( PolyLine_Click_getqq_poly );
EventManager.deregister( Line_Click_getqq_lne );
EventManager.deregister( PushButton_Click_getqq_dynamic );
}
//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);
}
}
/**
* initialise<p>
* Method renamed by jcTOOL from Initialize to initialise
* because this would conflict with a method required by a window builder<p>
* <p>
*/
public void initialise() {
Logger.getLogger("task.part.logmgr").info("Initialize called");
}
// ------------------
// 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 JButton qq_dynamic;
public JPanel Form;
public Line qq_Line32;
public Line qq_dash;
public Line qq_dashDot;
public Line qq_dashDotDot;
public Line qq_dot;
public Line qq_lne;
public Point qq_Point14;
public Point qq_Point15;
public Point qq_Point16;
public Point qq_Point17;
public Point qq_Point18;
public Point qq_Point19;
public Point qq_Point20;
public Point qq_Point21;
public Point qq_Point22;
public Point qq_Point23;
public Point qq_Point24;
public PolyLine qq_poly;
public Rectangle qq_Rectangle13;
/**
* qq_lne: transformed from: qqds_Line
* TagId=12
* isInherited=FALSE
*/
public Line getqq_lne() {
if (qq_lne == null) {
qq_lne = DisplayProject.factory.GraphicFactory.newLine(575, 308, 2458, 2192);
qq_lne.setName("lne");
qq_lne.setLineWeight(Constants.W_TWOPIXELS);
qq_lne.setLineStyle(Constants.LS_SOLID);
qq_lne.setOpaque( true );
ColourChange.setBackground(qq_lne, Constants.C_BRIGHTRED);
ColourChange.setForeground(qq_lne, Constants.C_BRIGHTRED);
}
return qq_lne;
}
public void setqq_lne(Line value) {
Line oldValue = qq_lne;
qq_lne = value;
this.qq_Listeners.firePropertyChange("qq_lne", oldValue, value);
}
/**
* qq_Rectangle13: transformed from: qqds_Rectangle
* TagId=13
* isInherited=FALSE
*/
public Rectangle getqq_Rectangle13() {
if (qq_Rectangle13 == null) {
qq_Rectangle13 = new Rectangle();
qq_Rectangle13.setName("");
qq_Rectangle13.setLineWeight(DisplayProject.Constants.W_TWOPIXELS);
qq_Rectangle13.setOpaque(true);
ColourChange.setBackground(qq_Rectangle13, Constants.C_GREEN);
ColourChange.setForeground(qq_Rectangle13, Constants.C_BRIGHTBLUE);
WidthPolicy.set(qq_Rectangle13, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_Rectangle13, Constants.SP_EXPLICIT);
qq_Rectangle13.setSize(new Dimension(101, 84));
qq_Rectangle13.setMinimumSize(new Dimension(101, 84));
qq_Rectangle13.setPreferredSize(new Dimension(101, 84));
qq_Rectangle13.setLocation(38, 154);
}
return qq_Rectangle13;
}
public void setqq_Rectangle13(Rectangle value) {
Rectangle oldValue = qq_Rectangle13;
qq_Rectangle13 = value;
this.qq_Listeners.firePropertyChange("qq_Rectangle13", oldValue, value);
}
/**
* qq_Point14: transformed from: qqds_Point
* TagId=14
* isInherited=FALSE
*/
public Point getqq_Point14() {
if (qq_Point14 == null) {
qq_Point14 = new Point();
qq_Point14.setName("");
qq_Point14.setSymbol(DisplayProject.Constants.PS_STAR);
qq_Point14.setOpaque( false );
WidthPolicy.set(qq_Point14, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_Point14, Constants.SP_EXPLICIT);
qq_Point14.setSize(new Dimension(9, 9));
qq_Point14.setMinimumSize(new Dimension(9, 9));
qq_Point14.setPreferredSize(new Dimension(9, 9));
qq_Point14.setLocation(184, 76);
}
return qq_Point14;
}
public void setqq_Point14(Point value) {
Point oldValue = qq_Point14;
qq_Point14 = value;
this.qq_Listeners.firePropertyChange("qq_Point14", oldValue, value);
}
/**
* qq_Point15: transformed from: qqds_Point
* TagId=15
* isInherited=FALSE
*/
public Point getqq_Point15() {
if (qq_Point15 == null) {
qq_Point15 = new Point();
qq_Point15.setName("");
qq_Point15.setSymbol(DisplayProject.Constants.PS_CIRCLE);
qq_Point15.setOpaque( false );
ColourChange.setForeground(qq_Point15, Constants.C_BRIGHTBLUE);
WidthPolicy.set(qq_Point15, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_Point15, Constants.SP_EXPLICIT);
qq_Point15.setSize(new Dimension(9, 9));
qq_Point15.setMinimumSize(new Dimension(9, 9));
qq_Point15.setPreferredSize(new Dimension(9, 9));
qq_Point15.setLocation(241, 84);
}
return qq_Point15;
}
public void setqq_Point15(Point value) {
Point oldValue = qq_Point15;
qq_Point15 = value;
this.qq_Listeners.firePropertyChange("qq_Point15", oldValue, value);
}
/**
* qq_Point16: transformed from: qqds_Point
* TagId=16
* isInherited=FALSE
*/
public Point getqq_Point16() {
if (qq_Point16 == null) {
qq_Point16 = new Point();
qq_Point16.setName("");
qq_Point16.setSymbol(DisplayProject.Constants.PS_SQUARE);
qq_Point16.setOpaque( false );
ColourChange.setForeground(qq_Point16, Constants.C_BRIGHTYELLOW);
WidthPolicy.set(qq_Point16, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_Point16, Constants.SP_EXPLICIT);
qq_Point16.setSize(new Dimension(9, 9));
qq_Point16.setMinimumSize(new Dimension(9, 9));
qq_Point16.setPreferredSize(new Dimension(9, 9));
qq_Point16.setLocation(226, 121);
}
return qq_Point16;
}
public void setqq_Point16(Point value) {
Point oldValue = qq_Point16;
qq_Point16 = value;
this.qq_Listeners.firePropertyChange("qq_Point16", oldValue, value);
}
/**
* qq_Point17: transformed from: qqds_Point
* TagId=17
* isInherited=FALSE
*/
public Point getqq_Point17() {
if (qq_Point17 == null) {
qq_Point17 = new Point();
qq_Point17.setName("");
qq_Point17.setSymbol(DisplayProject.Constants.PS_DIAMOND);
qq_Point17.setOpaque( false );
ColourChange.setForeground(qq_Point17, Constants.C_BRIGHTRED);
WidthPolicy.set(qq_Point17, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_Point17, Constants.SP_EXPLICIT);
qq_Point17.setSize(new Dimension(9, 9));
qq_Point17.setMinimumSize(new Dimension(9, 9));
qq_Point17.setPreferredSize(new Dimension(9, 9));
qq_Point17.setLocation(204, 39);
}
return qq_Point17;
}
public void setqq_Point17(Point value) {
Point oldValue = qq_Point17;
qq_Point17 = value;
this.qq_Listeners.firePropertyChange("qq_Point17", oldValue, value);
}
/**
* qq_Point18: transformed from: qqds_Point
* TagId=18
* isInherited=FALSE
*/
public Point getqq_Point18() {
if (qq_Point18 == null) {
qq_Point18 = new Point();
qq_Point18.setName("");
qq_Point18.setSymbol(DisplayProject.Constants.PS_TRIANGLEUP);
qq_Point18.setOpaque( false );
ColourChange.setForeground(qq_Point18, Constants.C_BRIGHTGREEN);
WidthPolicy.set(qq_Point18, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_Point18, Constants.SP_EXPLICIT);
qq_Point18.setSize(new Dimension(9, 9));
qq_Point18.setMinimumSize(new Dimension(9, 9));
qq_Point18.setPreferredSize(new Dimension(9, 9));
qq_Point18.setLocation(116, 43);
}
return qq_Point18;
}
public void setqq_Point18(Point value) {
Point oldValue = qq_Point18;
qq_Point18 = value;
this.qq_Listeners.firePropertyChange("qq_Point18", oldValue, value);
}
/**
* qq_Point19: transformed from: qqds_Point
* TagId=19
* isInherited=FALSE
*/
public Point getqq_Point19() {
if (qq_Point19 == null) {
qq_Point19 = new Point();
qq_Point19.setName("");
qq_Point19.setSymbol(DisplayProject.Constants.PS_TRIANGLEDOWN);
qq_Point19.setOpaque( false );
WidthPolicy.set(qq_Point19, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_Point19, Constants.SP_EXPLICIT);
qq_Point19.setSize(new Dimension(9, 9));
qq_Point19.setMinimumSize(new Dimension(9, 9));
qq_Point19.setPreferredSize(new Dimension(9, 9));
qq_Point19.setLocation(284, 44);
}
return qq_Point19;
}
public void setqq_Point19(Point value) {
Point oldValue = qq_Point19;
qq_Point19 = value;
this.qq_Listeners.firePropertyChange("qq_Point19", oldValue, value);
}
/**
* qq_Point20: transformed from: qqds_Point
* TagId=20
* isInherited=FALSE
*/
public Point getqq_Point20() {
if (qq_Point20 == null) {
qq_Point20 = new Point();
qq_Point20.setName("");
qq_Point20.setSymbol(DisplayProject.Constants.PS_TRIANGLERIGHT);
qq_Point20.setOpaque( false );
WidthPolicy.set(qq_Point20, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_Point20, Constants.SP_EXPLICIT);
qq_Point20.setSize(new Dimension(9, 9));
qq_Point20.setMinimumSize(new Dimension(9, 9));
qq_Point20.setPreferredSize(new Dimension(9, 9));
qq_Point20.setLocation(261, 123);
}
return qq_Point20;
}
public void setqq_Point20(Point value) {
Point oldValue = qq_Point20;
qq_Point20 = value;
this.qq_Listeners.firePropertyChange("qq_Point20", oldValue, value);
}
/**
* qq_Point21: transformed from: qqds_Point
* TagId=21
* isInherited=FALSE
*/
public Point getqq_Point21() {
if (qq_Point21 == null) {
qq_Point21 = new Point();
qq_Point21.setName("");
qq_Point21.setSymbol(DisplayProject.Constants.PS_TRIANGLELEFT);
qq_Point21.setOpaque( false );
WidthPolicy.set(qq_Point21, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_Point21, Constants.SP_EXPLICIT);
qq_Point21.setSize(new Dimension(9, 9));
qq_Point21.setMinimumSize(new Dimension(9, 9));
qq_Point21.setPreferredSize(new Dimension(9, 9));
qq_Point21.setLocation(66, 93);
}
return qq_Point21;
}
public void setqq_Point21(Point value) {
Point oldValue = qq_Point21;
qq_Point21 = value;
this.qq_Listeners.firePropertyChange("qq_Point21", oldValue, value);
}
/**
* qq_Point22: transformed from: qqds_Point
* TagId=22
* isInherited=FALSE
*/
public Point getqq_Point22() {
if (qq_Point22 == null) {
qq_Point22 = new Point();
qq_Point22.setName("");
qq_Point22.setSymbol(DisplayProject.Constants.PS_PLUS);
qq_Point22.setOpaque( false );
WidthPolicy.set(qq_Point22, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_Point22, Constants.SP_EXPLICIT);
qq_Point22.setSize(new Dimension(9, 9));
qq_Point22.setMinimumSize(new Dimension(9, 9));
qq_Point22.setPreferredSize(new Dimension(9, 9));
qq_Point22.setLocation(28, 41);
}
return qq_Point22;
}
public void setqq_Point22(Point value) {
Point oldValue = qq_Point22;
qq_Point22 = value;
this.qq_Listeners.firePropertyChange("qq_Point22", oldValue, value);
}
/**
* qq_Point23: transformed from: qqds_Point
* TagId=23
* isInherited=FALSE
*/
public Point getqq_Point23() {
if (qq_Point23 == null) {
qq_Point23 = new Point();
qq_Point23.setName("");
qq_Point23.setSymbol(DisplayProject.Constants.PS_CROSS);
qq_Point23.setOpaque( false );
ColourChange.setForeground(qq_Point23, Constants.C_BRIGHTMAGENTA);
WidthPolicy.set(qq_Point23, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_Point23, Constants.SP_EXPLICIT);
qq_Point23.setSize(new Dimension(9, 9));
qq_Point23.setMinimumSize(new Dimension(9, 9));
qq_Point23.setPreferredSize(new Dimension(9, 9));
qq_Point23.setLocation(96, 114);
}
return qq_Point23;
}
public void setqq_Point23(Point value) {
Point oldValue = qq_Point23;
qq_Point23 = value;
this.qq_Listeners.firePropertyChange("qq_Point23", oldValue, value);
}
/**
* qq_Point24: transformed from: qqds_Point
* TagId=24
* isInherited=FALSE
*/
public Point getqq_Point24() {
if (qq_Point24 == null) {
qq_Point24 = new Point();
qq_Point24.setName("");
qq_Point24.setSymbol(DisplayProject.Constants.PS_PIXEL);
qq_Point24.setOpaque( false );
ColourChange.setForeground(qq_Point24, Constants.C_BRIGHTRED);
WidthPolicy.set(qq_Point24, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_Point24, Constants.SP_EXPLICIT);
qq_Point24.setSize(new Dimension(9, 9));
qq_Point24.setMinimumSize(new Dimension(9, 9));
qq_Point24.setPreferredSize(new Dimension(9, 9));
qq_Point24.setLocation(140, 83);
}
return qq_Point24;
}
public void setqq_Point24(Point value) {
Point oldValue = qq_Point24;
qq_Point24 = value;
this.qq_Listeners.firePropertyChange("qq_Point24", oldValue, value);
}
/**
* qq_poly: transformed from: qqds_PolyLine
* TagId=25
* isInherited=FALSE
*/
public PolyLine getqq_poly() {
if (qq_poly == null) {
qq_poly = DisplayProject.factory.GraphicFactory.newPolyLine(179, 157);
qq_poly.setName("poly");
qq_poly.addPointInMills(5, 955);
qq_poly.addPointInMills(1038, 630);
qq_poly.addPointInMills(1172, 5);
qq_poly.addPointInMills(1613, 938);
qq_poly.addPointInMills(1605, 938);
qq_poly.setLineWeight(DisplayProject.Constants.W_THREEPIXELS);
qq_poly.setOpaque( true );
ColourChange.setForeground(qq_poly, Constants.C_BRIGHTBLUE);
}
return qq_poly;
}
public void setqq_poly(PolyLine value) {
PolyLine oldValue = qq_poly;
qq_poly = value;
this.qq_Listeners.firePropertyChange("qq_poly", oldValue, value);
}
/**
* qq_dot: transformed from: qqds_Line
* TagId=28
* isInherited=FALSE
*/
public Line getqq_dot() {
if (qq_dot == null) {
qq_dot = DisplayProject.factory.GraphicFactory.newLine(817, 217, 2700, 2100);
qq_dot.setName("dot");
qq_dot.setLineWeight(Constants.W_ONEPIXEL);
qq_dot.setLineStyle(Constants.LS_DOT);
qq_dot.setOpaque( true );
ColourChange.setBackground(qq_dot, Constants.C_BRIGHTRED);
ColourChange.setForeground(qq_dot, Constants.C_BRIGHTRED);
}
return qq_dot;
}
public void setqq_dot(Line value) {
Line oldValue = qq_dot;
qq_dot = value;
this.qq_Listeners.firePropertyChange("qq_dot", oldValue, value);
}
/**
* qq_dash: transformed from: qqds_Line
* TagId=29
* isInherited=FALSE
*/
public Line getqq_dash() {
if (qq_dash == null) {
qq_dash = DisplayProject.factory.GraphicFactory.newLine(1050, 125, 2933, 2008);
qq_dash.setName("dash");
qq_dash.setLineWeight(Constants.W_ONEPIXEL);
qq_dash.setLineStyle(Constants.LS_DASH);
qq_dash.setOpaque( true );
ColourChange.setBackground(qq_dash, Constants.C_BRIGHTRED);
ColourChange.setForeground(qq_dash, Constants.C_BRIGHTRED);
}
return qq_dash;
}
public void setqq_dash(Line value) {
Line oldValue = qq_dash;
qq_dash = value;
this.qq_Listeners.firePropertyChange("qq_dash", oldValue, value);
}
/**
* qq_dashDot: transformed from: qqds_Line
* TagId=30
* isInherited=FALSE
*/
public Line getqq_dashDot() {
if (qq_dashDot == null) {
qq_dashDot = DisplayProject.factory.GraphicFactory.newLine(1388, 172, 3271, 2055);
qq_dashDot.setName("dashDot");
qq_dashDot.setLineWeight(Constants.W_ONEPIXEL);
qq_dashDot.setLineStyle(Constants.LS_DASHDOT);
qq_dashDot.setOpaque( true );
ColourChange.setBackground(qq_dashDot, Constants.C_BRIGHTRED);
ColourChange.setForeground(qq_dashDot, Constants.C_BRIGHTRED);
}
return qq_dashDot;
}
public void setqq_dashDot(Line value) {
Line oldValue = qq_dashDot;
qq_dashDot = value;
this.qq_Listeners.firePropertyChange("qq_dashDot", oldValue, value);
}
/**
* qq_dashDotDot: transformed from: qqds_Line
* TagId=31
* isInherited=FALSE
*/
public Line getqq_dashDotDot() {
if (qq_dashDotDot == null) {
qq_dashDotDot = DisplayProject.factory.GraphicFactory.newLine(1730, 180, 3613, 2063);
qq_dashDotDot.setName("dashDotDot");
qq_dashDotDot.setLineWeight(Constants.W_ONEPIXEL);
qq_dashDotDot.setLineStyle(Constants.LS_DASHDOTDOT);
qq_dashDotDot.setOpaque( true );
ColourChange.setBackground(qq_dashDotDot, Constants.C_BRIGHTRED);
ColourChange.setForeground(qq_dashDotDot, Constants.C_BRIGHTRED);
}
return qq_dashDotDot;
}
public void setqq_dashDotDot(Line value) {
Line oldValue = qq_dashDotDot;
qq_dashDotDot = value;
this.qq_Listeners.firePropertyChange("qq_dashDotDot", oldValue, value);
}
/**
* qq_Line32: transformed from: qqds_Line
* TagId=32
* isInherited=FALSE
*/
public Line getqq_Line32() {
if (qq_Line32 == null) {
qq_Line32 = DisplayProject.factory.GraphicFactory.newLine(192, 1625, 2317, 367);
qq_Line32.setName("");
qq_Line32.setLineWeight(Constants.W_VERYHEAVY);
qq_Line32.setLineStyle(Constants.LS_SOLID);
qq_Line32.setOpaque( true );
}
return qq_Line32;
}
public void setqq_Line32(Line value) {
Line oldValue = qq_Line32;
qq_Line32 = value;
this.qq_Listeners.firePropertyChange("qq_Line32", oldValue, value);
}
/**
* qq_dynamic: transformed from: qqds_PushButton
* TagId=27
* isInherited=FALSE
*/
public JButton getqq_dynamic() {
if (qq_dynamic == null) {
qq_dynamic = PushButtonFactory.newInstance("dynamic", "Button");
qq_dynamic.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_dynamic, Constants.SP_NATURAL);
HeightPolicy.set(qq_dynamic, Constants.SP_NATURAL);
qq_dynamic.setMinimumSize(new Dimension(47, 23));
qq_dynamic.setLocation(689, 481);
}
return qq_dynamic;
}
public void setqq_dynamic(JButton value) {
JButton oldValue = qq_dynamic;
qq_dynamic = value;
this.qq_Listeners.firePropertyChange("qq_dynamic", oldValue, value);
}
/**
* Form: transformed from: qqds_Panel
* TagId=1
* isInherited=FALSE
*/
protected void setFormProperties() {
Form.setOpaque( true );
ColourChange.setBackground(Form, UIutils.White);
}
public JPanel getForm() {
if (Form == null) {
Form = CompoundFieldFactory.newForm();
this.setFormProperties();
Form.add( getqq_dynamic() );
Form.add( getqq_Line32() );
Form.add( getqq_dashDotDot() );
Form.add( getqq_dashDot() );
Form.add( getqq_dash() );
Form.add( getqq_dot() );
Form.add( getqq_poly() );
Form.add( getqq_Point24() );
Form.add( getqq_Point23() );
Form.add( getqq_Point22() );
Form.add( getqq_Point21() );
Form.add( getqq_Point20() );
Form.add( getqq_Point19() );
Form.add( getqq_Point18() );
Form.add( getqq_Point17() );
Form.add( getqq_Point16() );
Form.add( getqq_Point15() );
Form.add( getqq_Point14() );
Form.add( getqq_Rectangle13() );
Form.add( getqq_lne() );
}
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( "mainwin" );
this.setTitle( "" );
this.setSystemClosePolicy(Constants.SC_ENABLEDSHUTDOWN);
if (this.getContentPane() != this.getForm()) {
this.setContentPane(getForm());
}
this.qq_setupWindowUsage();
this.setResizable( true );
this.setAlwaysOnTop(false);
UserWindow.setIconizeEnabled(this, true);
UserWindow.setMaximizeEnabled(this, false);
WindowManager.addWindowListener(this);
this.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
this.setUsage(DisplayProject.Constants.WU_UPDATE);
UIutils.processGUIActions();
this.pack();
this.setInitialX(0);
this.setInitialY(0);
this.setInitialPositionPolicy(Constants.PP_SYSTEMDEFAULT);
}
}
// ----------------
// Window usage
//-----------------
protected WindowUsageMap usage = new WindowUsageMap();
public int getUsage() {
return this.usage.getUsage();
}
public WindowUsageMap getUsageMap() {
return this.usage;
}
/**
* Sets the window usage
*
* The Usage property sets the state for all a window�s child widgets at once, providing collective widget state changes on a predefined basis. A widget�s state determines how the widget reacts to mouse actions and how it displays itself. A window�s Usage property provides a convenient way to control the states of a group of widgets in the context of their parent window. With the Usage attribute, you can synchronize widget states to conform to a pattern you establish for the window.
* The Usage attribute accepts the following values:
* <li>Constants.WU_EDIT Edit usage: widgets themselves are editable, but not underlying data.</li>
* <li>Constants.WU_QUERY Query only usage: widget data is editable, but not widgets themselves.</li>
* <li>Constants.WU_UPDATE Update usage: mouse actions and keyboard input accepted. Widgets themselves are changeable. This is the default.</li>
* <li>Constants.WU_USER1 A user-defined usage. Default values same as WU_UPDATE.</li>
* <li>Constants.WU_USER2 A user-defined usage. Default values same as WU_UPDATE.</li>
* <li>Constants.WU_USER3 A user-defined usage. Default values same as WU_UPDATE.</li>
* <li>Constants.WU_VIEW View-only usage: no keyboard input is accepted. Widget posts Click events for mouse clicks.</li>
*/
public void setUsage(int usage) {
this.usage.setUsage(usage);
}
public void qq_setupWindowUsage() {
this.usage = new WindowUsageMap();
this.usage.add(getqq_lne(), Constants.FS_UPDATE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_Rectangle13(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_Point14(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_Point15(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_Point16(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_Point17(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_Point18(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_Point19(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_Point20(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_Point21(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_Point22(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_Point23(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_Point24(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_poly(), Constants.FS_UPDATE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_dot(), Constants.FS_UPDATE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_dash(), Constants.FS_UPDATE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_dashDot(), Constants.FS_UPDATE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_dashDotDot(), Constants.FS_UPDATE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_Line32(), Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_dynamic(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
}
// </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();
Mainwin mainwin_start = new Mainwin();
mainwin_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 mainwin
// c Pass 2 Conversion Time: 437 milliseconds