X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=bin%2Fjalview%2Fappletgui%2FEditNameDialog.js;h=68044ad50253066f470ba7b964ab46705d7c789a;hp=efedf02f2f5c477bc6a7e06ef7e1ae5da93cd763;hb=7301a2415adab88038b291fc54caeeb3a5a47a44;hpb=6154cb57a6eac3bb1344b8342495f5bb701ee921 diff --git a/bin/jalview/appletgui/EditNameDialog.js b/bin/jalview/appletgui/EditNameDialog.js index efedf02..68044ad 100644 --- a/bin/jalview/appletgui/EditNameDialog.js +++ b/bin/jalview/appletgui/EditNameDialog.js @@ -1,44 +1,44 @@ -Clazz.declarePackage ("jalview.appletgui"); -Clazz.load (["jalview.appletgui.JVDialog"], "jalview.appletgui.EditNameDialog", ["awt2swing.Label", "$.Panel", "$.TextField", "java.awt.BorderLayout", "$.Font"], function () { -c$ = Clazz.decorateAsClass (function () { -this.id = null; -this.description = null; -Clazz.instantialize (this, arguments); -}, jalview.appletgui, "EditNameDialog", jalview.appletgui.JVDialog); -Clazz.overrideMethod (c$, "getName", -function () { -return this.id.getText (); -}); -Clazz.defineMethod (c$, "getDescription", -function () { -if (this.description.getText ().length < 1) { -return null; -} else { -return this.description.getText (); -}}); -Clazz.makeConstructor (c$, -function (name, desc, label1, label2, owner, title, width, height, display) { -Clazz.superConstructor (this, jalview.appletgui.EditNameDialog, [owner, title, true, width, height]); -var mono = new java.awt.Font ("Monospaced", 0, 12); -var panel = new awt2swing.Panel ( new java.awt.BorderLayout ()); -var panel2 = new awt2swing.Panel ( new java.awt.BorderLayout ()); -this.id = new awt2swing.TextField (name, 40); -this.id.setFont (mono); -var label = new awt2swing.Label (label1); -label.setFont (mono); -panel2.add (label, "West"); -panel2.add (this.id, "Center"); -panel.add (panel2, "North"); -if (label2 != null) { -panel2 = new awt2swing.Panel ( new java.awt.BorderLayout ()); -this.description = new awt2swing.TextField (desc, 40); -this.description.setFont (mono); -label = new awt2swing.Label (label2); -label.setFont (mono); -panel2.add (label, "West"); -panel2.add (this.description, "Center"); -panel.add (panel2, "Center"); -}this.setMainPanel (panel); -this.setVisible (display); -}, "~S,~S,~S,~S,awt2swing.Frame,~S,~N,~N,~B"); -}); +Clazz.declarePackage ("jalview.appletgui"); +Clazz.load (["jalview.appletgui.JVDialog"], "jalview.appletgui.EditNameDialog", ["awt2swing.Label", "$.Panel", "$.TextField", "java.awt.BorderLayout", "$.Font"], function () { +c$ = Clazz.decorateAsClass (function () { +this.id = null; +this.description = null; +Clazz.instantialize (this, arguments); +}, jalview.appletgui, "EditNameDialog", jalview.appletgui.JVDialog); +Clazz.overrideMethod (c$, "getName", +function () { +return this.id.getText (); +}); +Clazz.defineMethod (c$, "getDescription", +function () { +if (this.description.getText ().length < 1) { +return null; +} else { +return this.description.getText (); +}}); +Clazz.makeConstructor (c$, +function (name, desc, label1, label2, owner, title, width, height, display) { +Clazz.superConstructor (this, jalview.appletgui.EditNameDialog, [owner, title, true, width, height]); +var mono = new java.awt.Font ("Monospaced", 0, 12); +var panel = new awt2swing.Panel ( new java.awt.BorderLayout ()); +var panel2 = new awt2swing.Panel ( new java.awt.BorderLayout ()); +this.id = new awt2swing.TextField (name, 40); +this.id.setFont (mono); +var label = new awt2swing.Label (label1); +label.setFont (mono); +panel2.add (label, "West"); +panel2.add (this.id, "Center"); +panel.add (panel2, "North"); +if (label2 != null) { +panel2 = new awt2swing.Panel ( new java.awt.BorderLayout ()); +this.description = new awt2swing.TextField (desc, 40); +this.description.setFont (mono); +label = new awt2swing.Label (label2); +label.setFont (mono); +panel2.add (label, "West"); +panel2.add (this.description, "Center"); +panel.add (panel2, "Center"); +}this.setMainPanel (panel); +this.setVisible (display); +}, "~S,~S,~S,~S,awt2swing.Frame,~S,~N,~N,~B"); +});