home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / Share / Java / JDesignerPro / Jdp3_0.exe / data1.cab / Program_Files / JDPSystemMaint.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-04-09  |  13.3 KB  |  437 lines

  1. import java.awt.BorderLayout;
  2. import java.awt.Button;
  3. import java.awt.Choice;
  4. import java.awt.Component;
  5. import java.awt.Container;
  6. import java.awt.Event;
  7. import java.awt.Panel;
  8. import java.awt.TextField;
  9. import java.util.StringTokenizer;
  10. import java.util.Vector;
  11.  
  12. public class JDPSystemMaint extends JDPClassLayout {
  13.    JDPWhereClause jdpWhereClause;
  14.    JDPSearchResults searchResults;
  15.    String[] psortChoice;
  16.    String[] pdisplayChoice;
  17.    int itemIndex;
  18.    boolean insertRequested;
  19.    boolean deleteRequested;
  20.    JDPPopupMessage popuppanel;
  21.    JDPJagg jaggSQL;
  22.    TextField JDPSystem;
  23.    TextField JDPSystemDesc;
  24.    TextField versionnum;
  25.    TextField boldfontname;
  26.    TextField boldfontsize;
  27.    TextField plainfontname;
  28.    TextField plainfontsize;
  29.    JDPChoice languageCountry;
  30.    JDPComboBox dateFormat;
  31.    String pfromWhereClause;
  32.  
  33.    void newSearch() {
  34.       String var1 = this.pfromWhereClause + " AND " + this.jdpWhereClause.whereClause;
  35.       this.searchResults.setFromWhereClause(var1);
  36.       this.searchResults.clearList();
  37.       this.searchResults.loadList();
  38.    }
  39.  
  40.    void clearFields() {
  41.       this.JDPSystem.setText("");
  42.       this.JDPSystemDesc.setText("");
  43.       this.versionnum.setText("");
  44.       this.boldfontname.setText("");
  45.       this.boldfontsize.setText("");
  46.       this.plainfontname.setText("");
  47.       this.plainfontsize.setText("");
  48.       this.languageCountry.select(0);
  49.       this.dateFormat.select(0);
  50.    }
  51.  
  52.    void loadData() {
  53.       int var2 = 0;
  54.       Vector var3 = new Vector();
  55.       String var4 = this.jaggSQL.getSEP();
  56.       this.itemIndex = this.searchResults.resultList.getSelectedIndex();
  57.       String var6;
  58.       if (super.user.JDesignerPro.NDSPath != null) {
  59.          var6 = "SELECT JDP:JDPSystem," + "Description," + "JDP:versionnum," + "JDP:bfontname," + "JDP:bfontsize," + "JDP:pfontname," + "JDP:pfontsize, " + "JDP:jlanguage, " + "JDP:country, " + "JDP:dateformat FROM JDesignerPro System WHERE JDP:JDPSystem='" + this.searchResults.recordKey0[this.itemIndex] + "'";
  60.       } else {
  61.          var6 = "SELECT JDPSystem," + "JDPSystemD," + "versionnum," + "bfontname," + "bfontsize," + "pfontname," + "pfontsize, " + "jlanguage, " + "country, " + "dateformat FROM JDPSystemDef WHERE JDPSystem='" + this.searchResults.recordKey0[this.itemIndex] + "'";
  62.       }
  63.  
  64.       if (super.user.DEBUG) {
  65.          System.out.println("loadData SQL: " + var6);
  66.       }
  67.  
  68.       super.user.mainmsg.setStatusMsg("Accessing database...", 0);
  69.       var2 = this.jaggSQL.execSQL(var6, var3);
  70.       if (super.user.DEBUG) {
  71.          System.out.println("loadData CNT: " + Integer.toString(var2));
  72.       }
  73.  
  74.       if (var2 == -1) {
  75.          super.user.u.setSqlMessage(this.jaggSQL, var6);
  76.       } else if (var2 == 1) {
  77.          String var5 = (String)var3.elementAt(0);
  78.          if (var5 != null && var5.trim().compareTo("") != 0) {
  79.             StringTokenizer var1 = new StringTokenizer(var5);
  80.             this.JDPSystem.setText(var1.nextToken(var4).trim());
  81.             this.JDPSystemDesc.setText(var1.nextToken(var4).trim());
  82.             this.versionnum.setText(var1.nextToken(var4).trim());
  83.             this.boldfontname.setText(var1.nextToken(var4).trim());
  84.             this.boldfontsize.setText(var1.nextToken(var4).trim());
  85.             this.plainfontname.setText(var1.nextToken(var4).trim());
  86.             this.plainfontsize.setText(var1.nextToken(var4).trim());
  87.             this.languageCountry.select(var1.nextToken(var4).trim() + var1.nextToken(var4).trim());
  88.             this.dateFormat.setText(var1.nextToken(var4).trim());
  89.          }
  90.  
  91.          super.user.mainmsg.clearStatusMsg();
  92.       } else {
  93.          super.user.mainmsg.setStatusMsg("Requested entry does not exist.", 10);
  94.          this.clearFields();
  95.       }
  96.    }
  97.  
  98.    boolean saveData() {
  99.       int var1 = 0;
  100.       Vector var2 = new Vector();
  101.       this.jaggSQL.getSEP();
  102.       String var3 = "";
  103.       this.itemIndex = this.searchResults.resultList.getSelectedIndex();
  104.       if (this.itemIndex < 0) {
  105.          super.user.mainmsg.setStatusMsg("You must first make a selection", 5);
  106.          return false;
  107.       } else {
  108.          String var4 = this.languageCountry.getSelectedItem() + "    ";
  109.          String var5 = var4.substring(0, 2).toLowerCase().trim();
  110.          String var6 = var4.substring(2, 4).toUpperCase().trim();
  111.          super.user.mainmsg.setStatusMsg("Accessing database...", 0);
  112.          if (this.insertRequested) {
  113.             if (super.user.JDesignerPro.NDSPath != null) {
  114.                var3 = "INSERT INTO JDesignerPro System (OU, JDP:JDPSystem, " + "Description, " + "JDP:versionnum, " + "JDP:bfontname, " + "JDP:bfontsize, " + "JDP:pfontname, " + "JDP:pfontsize, " + "JDP:jlanguage, " + "JDP:country, " + "JDP:dateformat) VALUES(" + this.JDPSystem.getText() + this.JDPSystemDesc.getText() + ", " + "'" + this.JDPSystem.getText() + "', " + "'" + this.JDPSystemDesc.getText() + "', " + "'" + this.versionnum.getText() + "', " + "'" + this.boldfontname.getText() + "', " + "" + this.boldfontsize.getText() + ", " + "'" + this.plainfontname.getText() + "', " + "" + this.plainfontsize.getText() + ", " + "'" + var5 + "', " + "'" + var6 + "', " + "'" + this.dateFormat.getText() + "')";
  115.                this.jaggSQL.execSQL(var3, var2);
  116.                var3 = "INSERT INTO JDesignerPro Menu (OU, JDP:menuname, Description) " + "VALUES('Main','Main','Main') parent=" + this.JDPSystem.getText() + this.JDPSystemDesc.getText();
  117.                this.jaggSQL.execSQL(var3, var2);
  118.                var3 = "INSERT INTO JDesignerPro Menu Option (JDP:menunum,JDP:menutype,JDP:menuobject,JDP:menuparm,JDP:menudesc,Description,JDP:menustat,JDP:menutxtclr, " + "JDP:menutabclr) " + "VALUES(1," + "'P','JDPMenuMaint','', " + "'Menu Maintenance'," + "'Menu Maintenance'," + "'A'," + "'Black', " + "'LightGray') parent=" + this.JDPSystem.getText() + this.JDPSystemDesc.getText() + "\\Main";
  119.             } else {
  120.                var3 = "INSERT INTO JDPSystemDef (JDPSystem, " + "JDPSystemD, " + "versionnum, " + "bfontname, " + "bfontsize, " + "pfontname, " + "pfontsize, " + "jlanguage, " + "country, " + "dateformat) VALUES('" + this.JDPSystem.getText() + "', " + "'" + this.JDPSystemDesc.getText() + "', " + "'" + this.versionnum.getText() + "', " + "'" + this.boldfontname.getText() + "', " + "" + this.boldfontsize.getText() + ", " + "'" + this.plainfontname.getText() + "', " + "" + this.plainfontsize.getText() + ", " + "'" + var5 + "', " + "'" + var6 + "', " + "'" + this.dateFormat.getText() + "')";
  121.                this.jaggSQL.execSQL(var3, var2);
  122.                var3 = "INSERT INTO JDPMenu (JDPSystem,menuname,menunum,menutype,menuobject,menuparm,menudesc,menustatus,menutxtclr, " + "menutabclr,menuauth1,menuauth2,menuauth3,menuauth4,menuauth5,menulvl1, " + "menulvl2,menulvl3,menulvl4,menulvl5) " + "VALUES('" + this.JDPSystem.getText() + "','Main',1," + "'P','JDPMenuMaint','', " + "'Menu Maintenance'," + "'A'," + "'Black', " + "'LightGray'," + "'*ALL','', " + "'','', " + "'',0,0,0,0,0)";
  123.             }
  124.          } else if (this.deleteRequested) {
  125.             if (super.user.JDesignerPro.NDSPath != null) {
  126.                var3 = "DELETE FROM JDesignerPro System" + " WHERE JDP:JDPSystem='" + this.searchResults.recordKey0[this.itemIndex] + "'";
  127.                this.jaggSQL.execSQL(var3, var2);
  128.                var3 = "DELETE FROM JDesignerPro Menu" + " PARENT=" + this.JDPSystem.getText() + this.JDPSystemDesc.getText();
  129.             } else {
  130.                var3 = "DELETE FROM JDPSystemDef" + " WHERE JDPSystem='" + this.searchResults.recordKey0[this.itemIndex] + "'";
  131.                this.jaggSQL.execSQL(var3, var2);
  132.                var3 = "DELETE FROM JDPMenu" + " WHERE JDPSystem='" + this.searchResults.recordKey0[this.itemIndex] + "'";
  133.             }
  134.          } else if (super.user.JDesignerPro.NDSPath != null) {
  135.             var3 = "UPDATE JDesignerPro System SET JDP:JDPSystem = '" + this.JDPSystem.getText() + "', " + "Description = '" + this.JDPSystemDesc.getText() + "', " + "JDP:versionnum = '" + this.versionnum.getText() + "', " + "JDP:bfontname = '" + this.boldfontname.getText() + "', " + "JDP:bfontsize = " + this.boldfontsize.getText() + ", " + "JDP:pfontname = '" + this.plainfontname.getText() + "', " + "JDP:pfontsize = " + this.plainfontsize.getText() + ", " + "JDP:jlanguage = '" + var5 + "', " + "JDP:country = '" + var6 + "', " + "JDP:dateformat = '" + this.dateFormat.getText() + "' " + " WHERE JDP:JDPSystem='" + this.searchResults.recordKey0[this.itemIndex] + "'";
  136.          } else {
  137.             var3 = "UPDATE JDPSystemDef SET JDPSystem = '" + this.JDPSystem.getText() + "', " + "JDPSystemD = '" + this.JDPSystemDesc.getText() + "', " + "versionnum = '" + this.versionnum.getText() + "', " + "bfontname = '" + this.boldfontname.getText() + "', " + "bfontsize = " + this.boldfontsize.getText() + ", " + "pfontname = '" + this.plainfontname.getText() + "', " + "pfontsize = " + this.plainfontsize.getText() + ", " + "jlanguage = '" + var5 + "', " + "country = '" + var6 + "', " + "dateformat = '" + this.dateFormat.getText() + "' " + " WHERE JDPSystem='" + this.searchResults.recordKey0[this.itemIndex] + "'";
  138.          }
  139.  
  140.          if (super.user.DEBUG) {
  141.             System.out.println("saveData SQL: " + var3);
  142.          }
  143.  
  144.          super.user.mainmsg.setStatusMsg("Accessing database...", 0);
  145.          var1 = this.jaggSQL.execSQL(var3, var2);
  146.          if (super.user.DEBUG) {
  147.             System.out.println("saveData CNT: " + Integer.toString(var1));
  148.          }
  149.  
  150.          if (var1 == -1) {
  151.             super.user.u.setSqlMessage(this.jaggSQL, var3);
  152.             return false;
  153.          } else {
  154.             if (var1 >= 1) {
  155.                if (this.insertRequested) {
  156.                   super.user.mainmsg.setStatusMsg("Record successfully added.", 3);
  157.                } else if (this.deleteRequested) {
  158.                   super.user.mainmsg.setStatusMsg("Record successfully removed.", 3);
  159.                } else {
  160.                   super.user.mainmsg.setStatusMsg("Record successfully updated.", 3);
  161.                }
  162.  
  163.                this.insertRequested = false;
  164.                this.deleteRequested = false;
  165.             } else {
  166.                super.user.u.setSqlMessage(this.jaggSQL, var3);
  167.             }
  168.  
  169.             return true;
  170.          }
  171.       }
  172.    }
  173.  
  174.    public void getLanguages() {
  175.       this.languageCountry.clear();
  176.       this.jaggSQL.setFCTN("ListFiles");
  177.       this.jaggSQL.setFCTNP(super.user.JDesignerPro.JDPDirectory + JDesignerPro.serverSeparator + "System" + JDesignerPro.serverSeparator + "Language;");
  178.       Vector var1 = new Vector();
  179.       this.jaggSQL.execSQL("", var1);
  180.  
  181.       for(int var4 = 0; var4 < var1.size(); ++var4) {
  182.          StringTokenizer var3 = new StringTokenizer((String)var1.elementAt(var4), this.jaggSQL.getSEP());
  183.          String var2 = var3.nextToken();
  184.          if (var2.indexOf(".lang") > 0) {
  185.             var2 = var2.substring(0, var2.indexOf(".lang"));
  186.             this.languageCountry.addItem(var2);
  187.          }
  188.       }
  189.  
  190.       if (super.user.JDesignerPro.NDSPath != null) {
  191.          this.jaggSQL.setFCTN("NDSexecSQL");
  192.       } else {
  193.          this.jaggSQL.setFCTN("");
  194.       }
  195.  
  196.       this.jaggSQL.setFCTNP("");
  197.    }
  198.  
  199.    boolean checkFields() {
  200.       return true;
  201.    }
  202.  
  203.    public boolean handleEvent(Event var1) {
  204.       switch (var1.id) {
  205.          case 401:
  206.             this.deleteRequested = false;
  207.             if (var1.key == 9) {
  208.                if (var1.target.equals(this.JDPSystem)) {
  209.                   super.user.u.cursor(this.JDPSystemDesc);
  210.                   return true;
  211.                }
  212.  
  213.                if (var1.target.equals(this.JDPSystemDesc)) {
  214.                   super.user.u.cursor(this.boldfontname);
  215.                   return true;
  216.                }
  217.  
  218.                if (var1.target.equals(this.boldfontname)) {
  219.                   super.user.u.cursor(this.boldfontsize);
  220.                   return true;
  221.                }
  222.  
  223.                if (var1.target.equals(this.boldfontsize)) {
  224.                   super.user.u.cursor(this.plainfontname);
  225.                   return true;
  226.                }
  227.  
  228.                if (var1.target.equals(this.plainfontname)) {
  229.                   super.user.u.cursor(this.plainfontsize);
  230.                   return true;
  231.                }
  232.  
  233.                if (var1.target.equals(this.plainfontsize)) {
  234.                   super.user.u.cursor(this.languageCountry);
  235.                   return true;
  236.                }
  237.  
  238.                if (var1.target.equals(this.languageCountry)) {
  239.                   super.user.u.cursor(this.dateFormat);
  240.                   return true;
  241.                }
  242.  
  243.                if (var1.target.equals(this.dateFormat)) {
  244.                   super.user.u.cursor(this.JDPSystem);
  245.                   return true;
  246.                }
  247.  
  248.                return true;
  249.             }
  250.  
  251.             return false;
  252.          case 503:
  253.          case 504:
  254.          case 505:
  255.             this.popuppanel.postEvent(var1);
  256.             return false;
  257.          case 1001:
  258.             if (var1.target instanceof JDPButton) {
  259.                String var2 = (String)var1.arg;
  260.                if (var2.trim().compareTo("Remove") == 0) {
  261.                   if (!this.deleteRequested) {
  262.                      super.user.mainmsg.setStatusMsg("Press the Remove button once more to confirm System removal", 20);
  263.                      this.deleteRequested = true;
  264.                   } else {
  265.                      this.saveData();
  266.                   }
  267.  
  268.                   return true;
  269.                } else {
  270.                   this.deleteRequested = false;
  271.                   if (var2.trim().compareTo("Apply") == 0) {
  272.                      if (this.checkFields()) {
  273.                         this.saveData();
  274.                      }
  275.  
  276.                      return true;
  277.                   } else if (var2.trim().compareTo("Reset") == 0) {
  278.                      this.loadData();
  279.                      return true;
  280.                   } else if (var2.trim().compareTo("New") == 0) {
  281.                      this.insertRequested = true;
  282.                      this.clearFields();
  283.                      return true;
  284.                   } else if (var2.trim().compareTo("Copy") == 0) {
  285.                      this.insertRequested = true;
  286.                      return true;
  287.                   } else {
  288.                      if (var2.trim().compareTo("Search") == 0) {
  289.                         this.newSearch();
  290.                         return true;
  291.                      }
  292.  
  293.                      return true;
  294.                   }
  295.                }
  296.             } else if (var1.target instanceof Button) {
  297.                return true;
  298.             } else {
  299.                this.deleteRequested = false;
  300.                if (var1.target.equals(this.searchResults.resultList)) {
  301.                   this.loadData();
  302.                   return true;
  303.                } else {
  304.                   if (var1.target instanceof Choice) {
  305.                      return true;
  306.                   }
  307.  
  308.                   if (var1.target instanceof TextField) {
  309.                      this.checkFields();
  310.                   }
  311.  
  312.                   return false;
  313.                }
  314.             }
  315.          default:
  316.             return false;
  317.       }
  318.    }
  319.  
  320.    public void InitClass(JDPUser var1, Panel var2, String var3) {
  321.       super.user = var1;
  322.       this.jaggSQL = new JDPJagg(var1.jaggPath);
  323.       this.jaggSQL.loadSettings(var1);
  324.       ((Container)this).setLayout(new BorderLayout());
  325.       ((Component)this).setFont(var1.plainFont);
  326.       this.popuppanel = new JDPPopupMessage(var1, var2);
  327.       ((Container)var2).add(this.popuppanel);
  328.       Panel var4 = new Panel();
  329.       ((Container)var4).setLayout(new BorderLayout());
  330.       Panel var5 = new Panel();
  331.       ((Container)var5).setLayout(new BorderLayout());
  332.       Panel var6 = new Panel();
  333.       ((Container)var6).setLayout(new BorderLayout());
  334.       JDPScrollPanel var7 = new JDPScrollPanel();
  335.       String var8 = "JDPSystem";
  336.       this.pfromWhereClause = "FROM JDPSystemDef WHERE (1=1)";
  337.       this.psortChoice = new String[2];
  338.       this.psortChoice[0] = "JDPSystem";
  339.       this.psortChoice[1] = "JDPSystemD";
  340.       String[] var9 = new String[]{"System", "Description"};
  341.       this.pdisplayChoice = this.psortChoice;
  342.       String var10 = var9[0];
  343.       boolean var11 = true;
  344.       String var12 = "Total Systems:";
  345.       this.JDPSystem = new TextField("", 5);
  346.       this.JDPSystemDesc = new TextField("", 35);
  347.       this.versionnum = new TextField("", 10);
  348.       this.boldfontname = new TextField("", 10);
  349.       this.boldfontsize = new TextField("", 4);
  350.       this.plainfontname = new TextField("", 10);
  351.       this.plainfontsize = new TextField("", 4);
  352.       this.languageCountry = new JDPChoice();
  353.       this.dateFormat = new JDPComboBox(var1, 15);
  354.       this.dateFormat.addItem("mm/dd/yy");
  355.       this.dateFormat.addItem("dd/mm/yy");
  356.       this.dateFormat.addItem("yy/mm/dd");
  357.       this.dateFormat.addItem("mm/dd/yyyy");
  358.       this.dateFormat.addItem("dd/mm/yyyy");
  359.       this.dateFormat.addItem("yyyy/mm/dd");
  360.       this.dateFormat.addItem("mm-dd-yy");
  361.       this.dateFormat.addItem("dd-mm-yy");
  362.       this.dateFormat.addItem("yy-mm-dd");
  363.       this.dateFormat.addItem("mm-dd-yyyy");
  364.       this.dateFormat.addItem("dd-mm-yyyy");
  365.       this.dateFormat.addItem("yyyy-mm-dd");
  366.       this.dateFormat.addItem("mm.dd.yy");
  367.       this.dateFormat.addItem("dd.mm.yy");
  368.       this.dateFormat.addItem("yy.mm.dd");
  369.       this.dateFormat.addItem("mm.dd.yyyy");
  370.       this.dateFormat.addItem("dd.mm.yyyy");
  371.       this.dateFormat.addItem("yyyy.mm.dd");
  372.       this.getLanguages();
  373.       ((Container)var7).add("Left", new JDPWrapLabel(var1, "System:"));
  374.       ((Container)var7).add("Left", new JDPWrapLabel(var1, "Description:"));
  375.       ((Container)var7).add("Left", new JDPWrapLabel(var1, "Bold Font Name:"));
  376.       ((Container)var7).add("Left", new JDPWrapLabel(var1, "Bold Font Size:"));
  377.       ((Container)var7).add("Left", new JDPWrapLabel(var1, "Plain Font Name:"));
  378.       ((Container)var7).add("Left", new JDPWrapLabel(var1, "Plain Font Size:"));
  379.       ((Container)var7).add("Left", new JDPWrapLabel(var1, "Language/Country:"));
  380.       ((Container)var7).add("Left", new JDPWrapLabel(var1, "Date format:"));
  381.       ((Container)var7).add("Right", this.JDPSystem);
  382.       ((Container)var7).add("Right", this.JDPSystemDesc);
  383.       ((Container)var7).add("Right", this.boldfontname);
  384.       ((Container)var7).add("Right", this.boldfontsize);
  385.       ((Container)var7).add("Right", this.plainfontname);
  386.       ((Container)var7).add("Right", this.plainfontsize);
  387.       ((Container)var7).add("Right", this.languageCountry);
  388.       ((Container)var7).add("Right", this.dateFormat);
  389.       ((Container)var6).add("Center", var7);
  390.       String[] var13 = new String[]{"Apply", "Reset", "Remove", "New", "Copy"};
  391.       int[] var14 = new int[]{0, 6, 8, 9, 10};
  392.       JDPButtons var15 = new JDPButtons(var1, var13, var14, JDPButtons.HORIZONTAL);
  393.       ((Container)var6).add("South", var15);
  394.       this.popuppanel.addComponent(var15.button[0], "Apply Changes", "Save changes to the database");
  395.       this.popuppanel.addComponent(var15.button[1], "Undo Changes", "Undo changes by reloading the record");
  396.       this.popuppanel.addComponent(var15.button[2], "Remove record", "Remove the current system from the database");
  397.       this.popuppanel.addComponent(var15.button[3], "New System", "Create a new system");
  398.       this.popuppanel.addComponent(var15.button[4], "Copy System", "Copy this system");
  399.       ((Container)var4).add("Center", var6);
  400.       String[] var16 = new String[]{"System", "Description"};
  401.       String[] var17 = new String[]{"JDPSystem", "JDPSystemD"};
  402.       if (var1.JDesignerPro.NDSPath != null) {
  403.          var8 = "JDP:JDPSystem";
  404.          this.pfromWhereClause = "FROM JDesignerPro System WHERE 1=1";
  405.          this.psortChoice[0] = "JDP:JDPSystem";
  406.          this.psortChoice[1] = "Description";
  407.          var17[0] = "JDP:JDPSystem";
  408.          var17[1] = "Description";
  409.          this.jaggSQL.setFCTN("NDSexecSQL");
  410.       }
  411.  
  412.       String[][] var18 = new String[2][8];
  413.       var18[0][0] = "Begins with";
  414.       var18[0][1] = "Contains";
  415.       var18[1][0] = "Begins with";
  416.       var18[1][1] = "Contains";
  417.       String[][] var19 = new String[2][8];
  418.       var19[0][0] = " like ";
  419.       var19[0][1] = " like ";
  420.       var19[1][0] = " like ";
  421.       var19[1][1] = " like ";
  422.       boolean[] var20 = new boolean[]{true, true};
  423.       int[] var21 = new int[]{7, 52};
  424.       this.jdpWhereClause = new JDPWhereClause(var1, var2, "JDPSystemMaint", true, var16[0], var16, var17, var18, var19, (String[][])null, (String[][])null, var21, var20);
  425.       this.searchResults = new JDPSearchResults(var1, (Container)var2, false, this.jaggSQL, false, var8, (String[])null, this.pfromWhereClause, var9, this.psortChoice, this.pdisplayChoice, var10, var11, var12);
  426.       this.searchResults.setIcon(4);
  427.       Panel var22 = new Panel();
  428.       ((Container)var22).setLayout(new BorderLayout());
  429.       ((Container)var22).add("North", this.jdpWhereClause);
  430.       ((Container)var22).add("Center", this.searchResults);
  431.       ((Container)var4).add("West", var22);
  432.       ((Container)this).add("Center", new JDPChiselFramePanel(var1, "Maintain System Definitions", var4, "North"));
  433.       this.searchResults.loadList();
  434.       ((Component)var2).paintAll(((Component)var2).getGraphics());
  435.    }
  436. }
  437.