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

  1. import java.awt.BorderLayout;
  2. import java.awt.Checkbox;
  3. import java.awt.Component;
  4. import java.awt.Container;
  5. import java.awt.Event;
  6. import java.awt.Label;
  7. import java.awt.List;
  8. import java.awt.Panel;
  9. import java.awt.TextField;
  10. import java.util.StringTokenizer;
  11. import java.util.Vector;
  12.  
  13. public class JDPDefineMethod extends JDPClassLayout {
  14.    JDPUser user;
  15.    JDPJagg jaggSQL;
  16.    JDPPopupMessage popuppanel;
  17.    JDPMaskEdit JDPMaskEditMain;
  18.    String moduleParameter;
  19.    Panel Main;
  20.    JDPChiselFramePanel ChiselPanel1;
  21.    Panel Panel1;
  22.    JDPTabSelectPanel TabPanel1;
  23.    JDPScrollPanel ScrollPanel1;
  24.    Label Label1;
  25.    Panel Panel7;
  26.    TextField methodName;
  27.    TextField methodDesc;
  28.    Checkbox publicCheck;
  29.    Panel Panel3;
  30.    Checkbox privateCheck;
  31.    Checkbox protectedCheck;
  32.    Panel Panel2;
  33.    Checkbox staticCheck;
  34.    Checkbox abstractCheck;
  35.    Checkbox nativeCheck;
  36.    Panel Panel6;
  37.    Checkbox finalCheck;
  38.    Checkbox synchCheck;
  39.    Panel Panel5;
  40.    JDPComboBox returnType;
  41.    Vector valuereturnType;
  42.    Label Label5;
  43.    TextField returnDesc;
  44.    JDPComboBox throwsExceptions;
  45.    Vector valuethrowsExceptions;
  46.    Label Label2;
  47.    Label Label3;
  48.    Panel Panel4;
  49.    JDPTextGrid paramGrid;
  50.  
  51.    public void InitClass(JDPUser var1, Panel var2, String var3) {
  52.       this.user = var1;
  53.       this.moduleParameter = var3;
  54.       super.targetPanel = var2;
  55.       this.jaggSQL = new JDPJagg(var1.jaggPath);
  56.       ((Container)this).setLayout(new BorderLayout());
  57.       this.popuppanel = new JDPPopupMessage(var1, this);
  58.       ((Container)this).add(this.popuppanel);
  59.       this.JDPMaskEditMain = new JDPMaskEdit();
  60.       this.Main = new Panel();
  61.       this.ChiselPanel1 = new JDPChiselFramePanel(var1, "Method Definition");
  62.       this.Panel1 = new Panel();
  63.       String[] var4 = new String[2];
  64.       Panel[] var5 = new Panel[]{new Panel(), null};
  65.       var5[0].setLayout(new BorderLayout());
  66.       var4[0] = "Definition";
  67.       var5[1] = new Panel();
  68.       var5[1].setLayout(new BorderLayout());
  69.       var4[1] = "Parameters";
  70.       this.TabPanel1 = new JDPTabSelectPanel(var1, var4, var5, "North");
  71.       this.ScrollPanel1 = new JDPScrollPanel();
  72.       this.Label1 = new Label("Name/Desc::", 0);
  73.       this.Panel7 = new Panel();
  74.       this.methodName = new TextField("", 15);
  75.       this.methodDesc = new TextField("", 50);
  76.       this.publicCheck = new Checkbox("public");
  77.       this.Panel3 = new Panel();
  78.       this.privateCheck = new Checkbox("private");
  79.       this.protectedCheck = new Checkbox("protected");
  80.       this.Panel2 = new Panel();
  81.       this.staticCheck = new Checkbox("static");
  82.       this.abstractCheck = new Checkbox("abstract");
  83.       this.nativeCheck = new Checkbox("native");
  84.       this.Panel6 = new Panel();
  85.       this.finalCheck = new Checkbox("final");
  86.       this.synchCheck = new Checkbox("synchronized");
  87.       this.Panel5 = new Panel();
  88.       this.returnTypeMain();
  89.       this.Label5 = new Label("Description:", 0);
  90.       this.returnDesc = new TextField("", 47);
  91.       this.throwsExceptionsMain();
  92.       this.Label2 = new Label("Return Type:", 0);
  93.       this.Label3 = new Label("Throws:", 0);
  94.       this.Panel4 = new Panel();
  95.       this.paramGrid = new JDPTextGrid(var1);
  96.       this.Main.setLayout(new BorderLayout());
  97.       ((Container)this).add("Center", this.Main);
  98.       this.Main.add("Center", this.ChiselPanel1);
  99.       this.ChiselPanel1.add("Center", this.Panel1);
  100.       this.Panel1.setLayout(new BorderLayout());
  101.       this.Panel1.add("Center", this.TabPanel1);
  102.       var5[0].add("Center", this.ScrollPanel1);
  103.       this.ScrollPanel1.add("Left", this.Label1);
  104.       this.ScrollPanel1.add("Right", this.Panel7);
  105.       this.Panel7.setLayout(new JDPLineLayout());
  106.       this.Panel7.add("Left", this.methodName);
  107.       this.Panel7.add("Left", this.methodDesc);
  108.       this.ScrollPanel1.add("Left", this.publicCheck);
  109.       this.ScrollPanel1.add("Right", this.Panel3);
  110.       this.Panel3.setLayout(new JDPLineLayout());
  111.       this.Panel3.add("Left", this.privateCheck);
  112.       this.Panel3.add("Left", this.protectedCheck);
  113.       this.Panel3.add("Left", this.Panel2);
  114.       this.Panel2.setLayout(new JDPLineLayout());
  115.       this.Panel2.add("Left", this.staticCheck);
  116.       this.Panel2.add("Left", this.abstractCheck);
  117.       this.Panel2.add("Left", this.nativeCheck);
  118.       this.Panel3.add("Left", this.Panel6);
  119.       this.Panel6.setLayout(new JDPLineLayout());
  120.       this.Panel6.add("Left", this.finalCheck);
  121.       this.Panel6.add("Left", this.synchCheck);
  122.       this.ScrollPanel1.add("Right", this.Panel5);
  123.       this.Panel5.setLayout(new JDPLineLayout());
  124.       this.Panel5.add("Left", this.returnType);
  125.       this.Panel5.add("Left", this.Label5);
  126.       this.Panel5.add("Left", this.returnDesc);
  127.       this.ScrollPanel1.add("Right", this.throwsExceptions);
  128.       this.ScrollPanel1.add("Left", this.Label2);
  129.       this.ScrollPanel1.add("Left", this.Label3);
  130.       var5[1].add("Center", this.Panel4);
  131.       this.Panel4.setLayout(new BorderLayout());
  132.       this.Panel4.add("North", this.paramGrid);
  133.       this.TabPanel1.setTabcolor(0, var1.u._cvtcolor("Black"), var1.u._cvtcolor("LightGray"));
  134.       this.TabPanel1.setTabcolor(1, var1.u._cvtcolor("Black"), var1.u._cvtcolor("LightGray"));
  135.       this.paramGrid.setTableDimensions(3, 50);
  136.       this.paramGrid.setRowHeaderOn(false);
  137.       this.paramGrid.setColumnHeader(0, "Parameter Type");
  138.       this.paramGrid.setColumnHeader(1, "Name");
  139.       this.paramGrid.setColumnHeader(2, "Description");
  140.       this.paramGrid.setColumnWidth(0, 100);
  141.       this.paramGrid.setColumnWidth(1, 100);
  142.       this.paramGrid.setColumnWidth(2, 1000);
  143.       this.paramGrid.setMinimumHeight(91);
  144.       this.paramGrid.setColumnHeaderStyle(0, 0);
  145.       this.paramGrid.setColumnHeaderStyle(1, 0);
  146.       this.paramGrid.setColumnHeaderStyle(2, 0);
  147.       this.paramGrid.setPullDownCol(0, true);
  148.       this.paramGrid.setScrollSouthDisabled(true);
  149.       this.InitComponents();
  150.       var1.gParm.addElement(this);
  151.    }
  152.  
  153.    public boolean handleEvent(Event var1) {
  154.       switch (var1.id) {
  155.          case 401:
  156.             if (var1.key == 9 && var1.modifiers != 1) {
  157.                if (var1.target.equals(this.methodName)) {
  158.                   this.user.u.cursor(this.methodDesc);
  159.                }
  160.  
  161.                if (var1.target.equals(this.methodDesc)) {
  162.                   this.user.u.cursor(this.publicCheck);
  163.                }
  164.  
  165.                if (var1.target.equals(this.publicCheck)) {
  166.                   this.user.u.cursor(this.privateCheck);
  167.                }
  168.  
  169.                if (var1.target.equals(this.privateCheck)) {
  170.                   this.user.u.cursor(this.protectedCheck);
  171.                }
  172.  
  173.                if (var1.target.equals(this.protectedCheck)) {
  174.                   this.user.u.cursor(this.staticCheck);
  175.                }
  176.  
  177.                if (var1.target.equals(this.staticCheck)) {
  178.                   this.user.u.cursor(this.abstractCheck);
  179.                }
  180.  
  181.                if (var1.target.equals(this.abstractCheck)) {
  182.                   this.user.u.cursor(this.nativeCheck);
  183.                }
  184.  
  185.                if (var1.target.equals(this.nativeCheck)) {
  186.                   this.user.u.cursor(this.finalCheck);
  187.                }
  188.  
  189.                if (var1.target.equals(this.finalCheck)) {
  190.                   this.user.u.cursor(this.synchCheck);
  191.                }
  192.  
  193.                if (var1.target.equals(this.synchCheck)) {
  194.                   this.user.u.cursor(this.returnType);
  195.                }
  196.  
  197.                if (var1.target.equals(this.returnType)) {
  198.                   this.user.u.cursor(this.returnDesc);
  199.                }
  200.  
  201.                if (var1.target.equals(this.returnDesc)) {
  202.                   this.user.u.cursor(this.paramGrid);
  203.                }
  204.             }
  205.  
  206.             if (var1.key == 9 && var1.modifiers == 1) {
  207.                if (var1.target.equals(this.methodName)) {
  208.                   this.user.u.cursor(this.throwsExceptions);
  209.                   return true;
  210.                }
  211.  
  212.                if (var1.target.equals(this.methodDesc)) {
  213.                   this.user.u.cursor(this.methodName);
  214.                   return true;
  215.                }
  216.  
  217.                if (var1.target.equals(this.publicCheck)) {
  218.                   this.user.u.cursor(this.methodDesc);
  219.                   return true;
  220.                }
  221.  
  222.                if (var1.target.equals(this.privateCheck)) {
  223.                   this.user.u.cursor(this.publicCheck);
  224.                   return true;
  225.                }
  226.  
  227.                if (var1.target.equals(this.protectedCheck)) {
  228.                   this.user.u.cursor(this.privateCheck);
  229.                   return true;
  230.                }
  231.  
  232.                if (var1.target.equals(this.staticCheck)) {
  233.                   this.user.u.cursor(this.protectedCheck);
  234.                   return true;
  235.                }
  236.  
  237.                if (var1.target.equals(this.abstractCheck)) {
  238.                   this.user.u.cursor(this.staticCheck);
  239.                   return true;
  240.                }
  241.  
  242.                if (var1.target.equals(this.nativeCheck)) {
  243.                   this.user.u.cursor(this.abstractCheck);
  244.                   return true;
  245.                }
  246.  
  247.                if (var1.target.equals(this.finalCheck)) {
  248.                   this.user.u.cursor(this.nativeCheck);
  249.                   return true;
  250.                }
  251.  
  252.                if (var1.target.equals(this.synchCheck)) {
  253.                   this.user.u.cursor(this.finalCheck);
  254.                   return true;
  255.                }
  256.  
  257.                if (var1.target.equals(this.returnType)) {
  258.                   this.user.u.cursor(this.synchCheck);
  259.                   return true;
  260.                }
  261.  
  262.                if (var1.target.equals(this.returnDesc)) {
  263.                   this.user.u.cursor(this.returnType);
  264.                   return true;
  265.                }
  266.             }
  267.  
  268.             return false;
  269.          case 503:
  270.          case 504:
  271.          case 505:
  272.             this.popuppanel.postEvent(var1);
  273.             return false;
  274.          case 1001:
  275.             if (var1.target.equals(this.publicCheck)) {
  276.                if (this.publicCheck.getState()) {
  277.                   this.privateCheck.setState(false);
  278.                }
  279.  
  280.                if (this.publicCheck.getState()) {
  281.                   this.protectedCheck.setState(false);
  282.                }
  283.  
  284.                this.sendLostFocus();
  285.                return true;
  286.             } else if (var1.target.equals(this.privateCheck)) {
  287.                if (this.privateCheck.getState()) {
  288.                   this.publicCheck.setState(false);
  289.                }
  290.  
  291.                if (this.privateCheck.getState()) {
  292.                   this.protectedCheck.setState(false);
  293.                }
  294.  
  295.                this.sendLostFocus();
  296.                return true;
  297.             } else if (var1.target.equals(this.protectedCheck)) {
  298.                if (this.protectedCheck.getState()) {
  299.                   this.publicCheck.setState(false);
  300.                }
  301.  
  302.                if (this.protectedCheck.getState()) {
  303.                   this.privateCheck.setState(false);
  304.                }
  305.  
  306.                this.sendLostFocus();
  307.                return true;
  308.             } else if (var1.target.equals(this.staticCheck)) {
  309.                if (this.staticCheck.getState()) {
  310.                   this.abstractCheck.setState(false);
  311.                }
  312.  
  313.                if (this.staticCheck.getState()) {
  314.                   this.nativeCheck.setState(false);
  315.                }
  316.  
  317.                this.sendLostFocus();
  318.                return true;
  319.             } else if (var1.target.equals(this.abstractCheck)) {
  320.                if (this.abstractCheck.getState()) {
  321.                   this.staticCheck.setState(false);
  322.                }
  323.  
  324.                if (this.abstractCheck.getState()) {
  325.                   this.nativeCheck.setState(false);
  326.                }
  327.  
  328.                if (this.abstractCheck.getState()) {
  329.                   this.synchCheck.setState(false);
  330.                }
  331.  
  332.                if (this.abstractCheck.getState()) {
  333.                   this.finalCheck.setState(false);
  334.                }
  335.  
  336.                this.sendLostFocus();
  337.                return true;
  338.             } else if (var1.target.equals(this.nativeCheck)) {
  339.                if (this.nativeCheck.getState()) {
  340.                   this.staticCheck.setState(false);
  341.                }
  342.  
  343.                if (this.nativeCheck.getState()) {
  344.                   this.abstractCheck.setState(false);
  345.                }
  346.  
  347.                this.sendLostFocus();
  348.                return true;
  349.             } else if (var1.target.equals(this.finalCheck)) {
  350.                if (this.finalCheck.getState()) {
  351.                   this.abstractCheck.setState(false);
  352.                }
  353.  
  354.                if (this.synchCheck.getState()) {
  355.                   this.staticCheck.setState(false);
  356.                }
  357.  
  358.                this.sendLostFocus();
  359.                return true;
  360.             } else if (var1.target.equals(this.synchCheck)) {
  361.                if (this.synchCheck.getState()) {
  362.                   this.abstractCheck.setState(false);
  363.                }
  364.  
  365.                this.sendLostFocus();
  366.                return true;
  367.             } else if (var1.target.equals(this.returnType)) {
  368.                this.sendLostFocus();
  369.                return true;
  370.             } else {
  371.                if (var1.target.equals(this.throwsExceptions)) {
  372.                   this.sendLostFocus();
  373.                   return true;
  374.                }
  375.  
  376.                return false;
  377.             }
  378.          case 1005:
  379.             if (var1.target.equals(this.methodName)) {
  380.                this.sendLostFocus();
  381.                return true;
  382.             } else if (var1.target.equals(this.methodDesc)) {
  383.                this.sendLostFocus();
  384.                return true;
  385.             } else if (var1.target.equals(this.returnType)) {
  386.                this.sendLostFocus();
  387.                return true;
  388.             } else if (var1.target.equals(this.returnDesc)) {
  389.                this.sendLostFocus();
  390.                return true;
  391.             } else if (var1.target.equals(this.throwsExceptions)) {
  392.                this.sendLostFocus();
  393.                return true;
  394.             } else {
  395.                if (var1.target.equals(this.paramGrid)) {
  396.                   this.sendLostFocus();
  397.                   return true;
  398.                }
  399.  
  400.                return false;
  401.             }
  402.          default:
  403.             return false;
  404.       }
  405.    }
  406.  
  407.    public void InitComponents() {
  408.       this.jaggSQL.setKeepConnectionOpen(false);
  409.       this.loadParameterTypes();
  410.    }
  411.  
  412.    public void setPublic(boolean var1) {
  413.       this.publicCheck.setState(var1);
  414.    }
  415.  
  416.    public boolean getPublic() {
  417.       return this.publicCheck.getState();
  418.    }
  419.  
  420.    public String getReturnType() {
  421.       StringTokenizer var1 = new StringTokenizer(this.returnType.getText(), " ,~!@#$%^&*()+=|\\`'\":;{}[]?/<>");
  422.  
  423.       String var2;
  424.       for(var2 = ""; var1.hasMoreTokens(); var2 = var2 + var1.nextToken()) {
  425.       }
  426.  
  427.       this.returnType.setText(var2);
  428.       return this.returnType.getText();
  429.    }
  430.  
  431.    public void setReturnType(String var1) {
  432.       this.returnType.setText(var1);
  433.    }
  434.  
  435.    public void setParameterTypes(Vector var1) {
  436.       int var2 = 0;
  437.       if (var1 != null) {
  438.          for(var2 = 0; var2 < var1.size(); ++var2) {
  439.             this.paramGrid.setText((String)var1.elementAt(var2), 0, var2);
  440.          }
  441.       }
  442.  
  443.       while(var2 < this.paramGrid.getTableRows()) {
  444.          this.paramGrid.setText("", 0, var2);
  445.          ++var2;
  446.       }
  447.  
  448.    }
  449.  
  450.    public void setParameterNames(Vector var1) {
  451.       int var2 = 0;
  452.       if (var1 != null) {
  453.          for(var2 = 0; var2 < var1.size(); ++var2) {
  454.             this.paramGrid.setText((String)var1.elementAt(var2), 1, var2);
  455.          }
  456.       }
  457.  
  458.       while(var2 < this.paramGrid.getTableRows()) {
  459.          this.paramGrid.setText("", 1, var2);
  460.          ++var2;
  461.       }
  462.  
  463.    }
  464.  
  465.    public void setParameterDescriptions(Vector var1) {
  466.       int var2 = 0;
  467.       if (var1 != null) {
  468.          for(var2 = 0; var2 < var1.size(); ++var2) {
  469.             this.paramGrid.setText((String)var1.elementAt(var2), 2, var2);
  470.          }
  471.       }
  472.  
  473.       while(var2 < this.paramGrid.getTableRows()) {
  474.          this.paramGrid.setText("", 2, var2);
  475.          ++var2;
  476.       }
  477.  
  478.    }
  479.  
  480.    public Vector getParameterTypes() {
  481.       Vector var1 = new Vector();
  482.  
  483.       for(int var2 = 0; var2 < this.paramGrid.getTableRows() && !this.paramGrid.getText(0, var2).equals(""); ++var2) {
  484.          var1.addElement(this.paramGrid.getText(0, var2));
  485.       }
  486.  
  487.       return var1;
  488.    }
  489.  
  490.    public Vector getParameterNames() {
  491.       Vector var1 = new Vector();
  492.  
  493.       for(int var2 = 0; var2 < this.paramGrid.getTableRows() && !this.paramGrid.getText(1, var2).equals(""); ++var2) {
  494.          var1.addElement(this.paramGrid.getText(1, var2));
  495.       }
  496.  
  497.       return var1;
  498.    }
  499.  
  500.    public Vector getParameterDescriptions() {
  501.       Vector var1 = new Vector();
  502.  
  503.       for(int var2 = 0; var2 < this.paramGrid.getTableRows() && !this.paramGrid.getText(2, var2).equals(""); ++var2) {
  504.          var1.addElement(this.paramGrid.getText(2, var2));
  505.       }
  506.  
  507.       return var1;
  508.    }
  509.  
  510.    public void loadParameterTypes() {
  511.       List var1 = new List();
  512.       var1.addItem("int");
  513.       var1.addItem("boolean");
  514.       var1.addItem("String");
  515.       var1.addItem("long");
  516.       var1.addItem("float");
  517.       var1.addItem("JDPJob");
  518.       this.paramGrid.newTable();
  519.       this.paramGrid.setPullDownColType(0, 3);
  520.       this.paramGrid.setPullDownList(0, 0, var1);
  521.    }
  522.  
  523.    public void setPrivate(boolean var1) {
  524.       this.privateCheck.setState(var1);
  525.    }
  526.  
  527.    public boolean getPrivate() {
  528.       return this.privateCheck.getState();
  529.    }
  530.  
  531.    public void setProtected(boolean var1) {
  532.       this.protectedCheck.setState(var1);
  533.    }
  534.  
  535.    public boolean getProtected() {
  536.       return this.protectedCheck.getState();
  537.    }
  538.  
  539.    public void setStatic(boolean var1) {
  540.       this.staticCheck.setState(var1);
  541.    }
  542.  
  543.    public boolean getStatic() {
  544.       return this.staticCheck.getState();
  545.    }
  546.  
  547.    public void setAbstract(boolean var1) {
  548.       this.abstractCheck.setState(var1);
  549.    }
  550.  
  551.    public boolean getAbstract() {
  552.       return this.abstractCheck.getState();
  553.    }
  554.  
  555.    public void setNative(boolean var1) {
  556.       this.nativeCheck.setState(var1);
  557.    }
  558.  
  559.    public boolean getNative() {
  560.       return this.nativeCheck.getState();
  561.    }
  562.  
  563.    public void setSynchronized(boolean var1) {
  564.       this.synchCheck.setState(var1);
  565.    }
  566.  
  567.    public boolean getSynchronized() {
  568.       return this.synchCheck.getState();
  569.    }
  570.  
  571.    public void setMethodDesc(String var1) {
  572.       this.methodDesc.setText(var1);
  573.    }
  574.  
  575.    public String getMethodDesc() {
  576.       return this.methodDesc.getText();
  577.    }
  578.  
  579.    public void setMethodName(String var1) {
  580.       this.methodName.setText(var1);
  581.    }
  582.  
  583.    public String getMethodName() {
  584.       StringTokenizer var1 = new StringTokenizer(this.methodName.getText(), " ,~!@#$%^&*()+=|\\`'\":;{}[]?/<>");
  585.  
  586.       String var2;
  587.       for(var2 = ""; var1.hasMoreTokens(); var2 = var2 + var1.nextToken()) {
  588.       }
  589.  
  590.       this.methodName.setText(var2);
  591.       return this.methodName.getText();
  592.    }
  593.  
  594.    public void setSourceItem(JDPSourceItem var1) {
  595.       if (var1.type == 2) {
  596.          this.setMethodName(var1.name);
  597.          this.setMethodDesc(var1.description);
  598.          this.setPublic(var1.ispublic);
  599.          this.setPrivate(var1.isprivate);
  600.          this.setProtected(var1.isprotected);
  601.          this.setStatic(var1.isstatic);
  602.          this.setAbstract(var1.isabstract);
  603.          this.setNative(var1.isnative);
  604.          this.setSynchronized(var1.issynchronized);
  605.          this.setParameterTypes(var1.parmTypes);
  606.          this.setParameterNames(var1.parmNames);
  607.          this.setParameterDescriptions(var1.parmDescs);
  608.          this.setReturnType(var1.returnType);
  609.          this.setReturnDesc(var1.returnDesc);
  610.          if (var1.throwsExceptions != null) {
  611.             String var2 = "";
  612.  
  613.             for(int var3 = 0; var3 < var1.throwsExceptions.size(); ++var3) {
  614.                if (var3 > 0) {
  615.                   var2 = var2 + ",";
  616.                }
  617.  
  618.                var2 = var2 + (String)var1.throwsExceptions.elementAt(var3);
  619.             }
  620.  
  621.             this.setThrowsExceptions(var2);
  622.          } else {
  623.             this.setThrowsExceptions("");
  624.          }
  625.       }
  626.    }
  627.  
  628.    public JDPSourceItem getSourceItem() {
  629.       JDPSourceItem var1 = new JDPSourceItem();
  630.       return this.updateSourceItem(var1);
  631.    }
  632.  
  633.    public void setReturnDesc(String var1) {
  634.       this.returnDesc.setText(var1);
  635.    }
  636.  
  637.    public String getReturnDesc() {
  638.       return this.returnDesc.getText();
  639.    }
  640.  
  641.    public void sendLostFocus() {
  642.       Event var1 = new Event(this, 1005, (Object)null);
  643.       ((Component)this).getParent().postEvent(var1);
  644.    }
  645.  
  646.    public JDPSourceItem updateSourceItem(JDPSourceItem var1) {
  647.       var1.type = 2;
  648.       if (!this.user.u.ischaracter(this.methodName, this.user.mainmsg)) {
  649.          return null;
  650.       } else if (!this.user.u.ischaracter(this.returnType, this.user.mainmsg)) {
  651.          return null;
  652.       } else {
  653.          var1.ispublic = this.getPublic();
  654.          var1.isprivate = this.getPrivate();
  655.          var1.isprotected = this.getProtected();
  656.          var1.isstatic = this.getStatic();
  657.          var1.isabstract = this.getAbstract();
  658.          var1.isnative = this.getNative();
  659.          var1.issynchronized = this.getSynchronized();
  660.          var1.name = this.getMethodName();
  661.          var1.description = this.getMethodDesc();
  662.          var1.parmTypes = this.getParameterTypes();
  663.          var1.parmNames = this.getParameterNames();
  664.          var1.parmDescs = this.getParameterDescriptions();
  665.          var1.returnType = this.getReturnType();
  666.          var1.returnDesc = this.getReturnDesc();
  667.          StringTokenizer var2 = new StringTokenizer(this.getThrowsExceptions(), ",");
  668.          var1.throwsExceptions = new Vector();
  669.  
  670.          while(var2.hasMoreTokens()) {
  671.             var1.throwsExceptions.addElement(var2.nextToken());
  672.          }
  673.  
  674.          return var1;
  675.       }
  676.    }
  677.  
  678.    public void setThrowsExceptions(String var1) {
  679.       this.throwsExceptions.setText(var1);
  680.    }
  681.  
  682.    public String getThrowsExceptions() {
  683.       StringTokenizer var1 = new StringTokenizer(this.throwsExceptions.getText(), " ,~!@#$%^&*()+=|\\`'\":;{}[]?/<>");
  684.  
  685.       String var2;
  686.       for(var2 = ""; var1.hasMoreTokens(); var2 = var2 + var1.nextToken()) {
  687.          if (!var2.equals("")) {
  688.             var2 = var2 + ",";
  689.          }
  690.       }
  691.  
  692.       this.throwsExceptions.setText(var2);
  693.       return this.throwsExceptions.getText();
  694.    }
  695.  
  696.    public void returnTypeMain() {
  697.       if (this.returnType == null) {
  698.          this.returnType = new JDPComboBox(this.user);
  699.       }
  700.  
  701.       String[] var1 = new String[]{"void                ", "int", "boolean", "String", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""};
  702.       this.returnType.loadChoice(var1);
  703.    }
  704.  
  705.    public void throwsExceptionsMain() {
  706.       if (this.throwsExceptions == null) {
  707.          this.throwsExceptions = new JDPComboBox(this.user);
  708.       }
  709.  
  710.       String[] var1 = new String[]{"                              ", "Exception", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""};
  711.       this.throwsExceptions.loadChoice(var1);
  712.    }
  713. }
  714.