JAL-1807 includes ?j2sdebug flag and DebugJS._(msg)
[jalviewjs.git] / bin / javajs / swing / JDialog.js
index 16bacd5..6b11856 100644 (file)
@@ -1,82 +1,82 @@
-Clazz.declarePackage ("javajs.swing");\r
-Clazz.load (["javajs.awt.Container"], "javajs.swing.JDialog", ["javajs.awt.Color", "javajs.swing.JContentPane", "javajs.util.SB"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.defaultWidth = 600;\r
-this.defaultHeight = 300;\r
-this.contentPane = null;\r
-this.title = null;\r
-this.html = null;\r
-this.zIndex = 9000;\r
-this.loc = null;\r
-Clazz.instantialize (this, arguments);\r
-}, javajs.swing, "JDialog", javajs.awt.Container);\r
-Clazz.defineMethod (c$, "setZIndex", \r
-function (zIndex) {\r
-this.zIndex = zIndex;\r
-}, "~N");\r
-Clazz.makeConstructor (c$, \r
-function () {\r
-Clazz.superConstructor (this, javajs.swing.JDialog, ["JD"]);\r
-this.add (this.contentPane =  new javajs.swing.JContentPane ());\r
-this.setBackground (javajs.awt.Color.get3 (210, 210, 240));\r
-this.contentPane.setBackground (javajs.awt.Color.get3 (230, 230, 230));\r
-});\r
-Clazz.defineMethod (c$, "setLocation", \r
-function (loc) {\r
-this.loc = loc;\r
-}, "~A");\r
-Clazz.defineMethod (c$, "getContentPane", \r
-function () {\r
-return this.contentPane;\r
-});\r
-Clazz.defineMethod (c$, "setTitle", \r
-function (title) {\r
-this.title = title;\r
-}, "~S");\r
-Clazz.defineMethod (c$, "pack", \r
-function () {\r
-this.html = null;\r
-});\r
-Clazz.defineMethod (c$, "validate", \r
-function () {\r
-this.html = null;\r
-});\r
-Clazz.defineMethod (c$, "setVisible", \r
-function (tf) {\r
-if (tf && this.html == null) this.setDialog ();\r
-Clazz.superCall (this, javajs.swing.JDialog, "setVisible", [tf]);\r
-}, "~B");\r
-Clazz.defineMethod (c$, "dispose", \r
-function () {\r
-{\r
-{\r
-SwingController.dispose(this);\r
-}}});\r
-Clazz.overrideMethod (c$, "repaint", \r
-function () {\r
-this.setDialog ();\r
-});\r
-Clazz.defineMethod (c$, "setDialog", \r
-($fz = function () {\r
-this.html = this.toHTML ();\r
-{\r
-SwingController.setDialog(this);\r
-}}, $fz.isPrivate = true, $fz));\r
-Clazz.overrideMethod (c$, "toHTML", \r
-function () {\r
-this.renderWidth = this.getSubcomponentWidth ();\r
-if (this.renderWidth == 0) this.renderWidth = this.defaultWidth;\r
-this.renderHeight = this.contentPane.getSubcomponentHeight ();\r
-if (this.renderHeight == 0) this.renderHeight = this.defaultHeight;\r
-var h = this.renderHeight - 25;\r
-var sb =  new javajs.util.SB ();\r
-sb.append ("\n<div id='" + this.id + "' class='JDialog' style='" + this.getCSSstyle (0, 0) + "z-index:" + this.zIndex + ";position:relative;top:0px;left:0px;reize:both;'>\n");\r
-sb.append ("\n<div id='" + this.id + "_title' class='JDialogTitle' style='width:100%;height:25px;padding:5px 5px 5px 5px;height:" + 25 + "px'>" + "<span style='text-align:center;'>" + this.title + "</span><span style='position:absolute;text-align:right;right:1px;'>" + "<input type=button id='" + this.id + "_closer' onclick='SwingController.windowClosing(this)' value='x' /></span></div>\n");\r
-sb.append ("\n<div id='" + this.id + "_body' class='JDialogBody' style='width:100%;height:" + h + "px;" + "position: relative;left:0px;top:0px'>\n");\r
-sb.append (this.contentPane.toHTML ());\r
-sb.append ("\n</div></div>\n");\r
-return sb.toString ();\r
-});\r
-Clazz.defineStatics (c$,\r
-"headerHeight", 25);\r
-});\r
+Clazz.declarePackage ("javajs.swing");
+Clazz.load (["javajs.awt.Container"], "javajs.swing.JDialog", ["javajs.awt.Color", "javajs.swing.JContentPane", "javajs.util.SB"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.defaultWidth = 600;
+this.defaultHeight = 300;
+this.contentPane = null;
+this.title = null;
+this.html = null;
+this.zIndex = 9000;
+this.loc = null;
+Clazz.instantialize (this, arguments);
+}, javajs.swing, "JDialog", javajs.awt.Container);
+Clazz.defineMethod (c$, "setZIndex", 
+function (zIndex) {
+this.zIndex = zIndex;
+}, "~N");
+Clazz.makeConstructor (c$, 
+function () {
+Clazz.superConstructor (this, javajs.swing.JDialog, ["JD"]);
+this.add (this.contentPane =  new javajs.swing.JContentPane ());
+this.setBackground (javajs.awt.Color.get3 (210, 210, 240));
+this.contentPane.setBackground (javajs.awt.Color.get3 (230, 230, 230));
+});
+Clazz.defineMethod (c$, "setLocation", 
+function (loc) {
+this.loc = loc;
+}, "~A");
+Clazz.defineMethod (c$, "getContentPane", 
+function () {
+return this.contentPane;
+});
+Clazz.defineMethod (c$, "setTitle", 
+function (title) {
+this.title = title;
+}, "~S");
+Clazz.defineMethod (c$, "pack", 
+function () {
+this.html = null;
+});
+Clazz.defineMethod (c$, "validate", 
+function () {
+this.html = null;
+});
+Clazz.defineMethod (c$, "setVisible", 
+function (tf) {
+if (tf && this.html == null) this.setDialog ();
+Clazz.superCall (this, javajs.swing.JDialog, "setVisible", [tf]);
+}, "~B");
+Clazz.defineMethod (c$, "dispose", 
+function () {
+{
+{
+SwingController.dispose(this);
+}}});
+Clazz.overrideMethod (c$, "repaint", 
+function () {
+this.setDialog ();
+});
+Clazz.defineMethod (c$, "setDialog", 
+($fz = function () {
+this.html = this.toHTML ();
+{
+SwingController.setDialog(this);
+}}, $fz.isPrivate = true, $fz));
+Clazz.overrideMethod (c$, "toHTML", 
+function () {
+this.renderWidth = this.getSubcomponentWidth ();
+if (this.renderWidth == 0) this.renderWidth = this.defaultWidth;
+this.renderHeight = this.contentPane.getSubcomponentHeight ();
+if (this.renderHeight == 0) this.renderHeight = this.defaultHeight;
+var h = this.renderHeight - 25;
+var sb =  new javajs.util.SB ();
+sb.append ("\n<div id='" + this.id + "' class='JDialog' style='" + this.getCSSstyle (0, 0) + "z-index:" + this.zIndex + ";position:relative;top:0px;left:0px;reize:both;'>\n");
+sb.append ("\n<div id='" + this.id + "_title' class='JDialogTitle' style='width:100%;height:25px;padding:5px 5px 5px 5px;height:" + 25 + "px'>" + "<span style='text-align:center;'>" + this.title + "</span><span style='position:absolute;text-align:right;right:1px;'>" + "<input type=button id='" + this.id + "_closer' onclick='SwingController.windowClosing(this)' value='x' /></span></div>\n");
+sb.append ("\n<div id='" + this.id + "_body' class='JDialogBody' style='width:100%;height:" + h + "px;" + "position: relative;left:0px;top:0px'>\n");
+sb.append (this.contentPane.toHTML ());
+sb.append ("\n</div></div>\n");
+return sb.toString ();
+});
+Clazz.defineStatics (c$,
+"headerHeight", 25);
+});