Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / jalview / appletgui / JVDialog.js
index 6f85ed1..ed9ee14 100644 (file)
@@ -1,40 +1,40 @@
-Clazz.declarePackage ("jalview.appletgui");\r
-Clazz.load (["java.awt.Dialog", "java.awt.event.ActionListener", "awt2swing.Button"], "jalview.appletgui.JVDialog", ["awt2swing.Panel", "java.awt.FlowLayout"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.ap = null;\r
-this.buttonPanel = null;\r
-this.ok = null;\r
-this.cancel = null;\r
-this.accept = false;\r
-this.owner = null;\r
-Clazz.instantialize (this, arguments);\r
-}, jalview.appletgui, "JVDialog", java.awt.Dialog, java.awt.event.ActionListener);\r
-Clazz.prepareFields (c$, function () {\r
-this.ok =  new awt2swing.Button ("Accept");\r
-this.cancel =  new awt2swing.Button ("Cancel");\r
-});\r
-Clazz.makeConstructor (c$, \r
-function (owner, title, modal, width, height) {\r
-Clazz.superConstructor (this, jalview.appletgui.JVDialog, [owner, title, modal]);\r
-this.owner = owner;\r
-height += owner.getInsets ().top + this.getInsets ().bottom;\r
-this.setBounds (owner.getBounds ().x + Clazz.doubleToInt ((owner.getSize ().width - width) / 2), owner.getBounds ().y + Clazz.doubleToInt ((owner.getSize ().height - height) / 2), width, height);\r
-}, "awt2swing.Frame,~S,~B,~N,~N");\r
-Clazz.defineMethod (c$, "setMainPanel", \r
-function (panel) {\r
-this.add (panel, "North");\r
-this.buttonPanel =  new awt2swing.Panel ( new java.awt.FlowLayout ());\r
-this.buttonPanel.add (this.ok);\r
-this.buttonPanel.add (this.cancel);\r
-this.ok.addActionListener (this);\r
-this.cancel.addActionListener (this);\r
-this.add (this.buttonPanel, "South");\r
-this.pack ();\r
-}, "awt2swing.Panel");\r
-Clazz.overrideMethod (c$, "actionPerformed", \r
-function (evt) {\r
-if (evt.getSource () === this.ok) {\r
-this.accept = true;\r
-}this.setVisible (false);\r
-}, "java.awt.event.ActionEvent");\r
-});\r
+Clazz.declarePackage ("jalview.appletgui");
+Clazz.load (["java.awt.Dialog", "java.awt.event.ActionListener", "awt2swing.Button"], "jalview.appletgui.JVDialog", ["awt2swing.Panel", "java.awt.FlowLayout"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.ap = null;
+this.buttonPanel = null;
+this.ok = null;
+this.cancel = null;
+this.accept = false;
+this.owner = null;
+Clazz.instantialize (this, arguments);
+}, jalview.appletgui, "JVDialog", java.awt.Dialog, java.awt.event.ActionListener);
+Clazz.prepareFields (c$, function () {
+this.ok =  new awt2swing.Button ("Accept");
+this.cancel =  new awt2swing.Button ("Cancel");
+});
+Clazz.makeConstructor (c$, 
+function (owner, title, modal, width, height) {
+Clazz.superConstructor (this, jalview.appletgui.JVDialog, [owner, title, modal]);
+this.owner = owner;
+height += owner.getInsets ().top + this.getInsets ().bottom;
+this.setBounds (owner.getBounds ().x + Clazz.doubleToInt ((owner.getSize ().width - width) / 2), owner.getBounds ().y + Clazz.doubleToInt ((owner.getSize ().height - height) / 2), width, height);
+}, "awt2swing.Frame,~S,~B,~N,~N");
+Clazz.defineMethod (c$, "setMainPanel", 
+function (panel) {
+this.add (panel, "North");
+this.buttonPanel =  new awt2swing.Panel ( new java.awt.FlowLayout ());
+this.buttonPanel.add (this.ok);
+this.buttonPanel.add (this.cancel);
+this.ok.addActionListener (this);
+this.cancel.addActionListener (this);
+this.add (this.buttonPanel, "South");
+this.pack ();
+}, "awt2swing.Panel");
+Clazz.overrideMethod (c$, "actionPerformed", 
+function (evt) {
+if (evt.getSource () === this.ok) {
+this.accept = true;
+}this.setVisible (false);
+}, "java.awt.event.ActionEvent");
+});