home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1998 September / dppcpro0998.iso / Rwc / Sybase / Install.exe / samples.z / Application.wxc < prev    next >
Encoding:
Text File  |  1998-03-25  |  2.7 KB  |  136 lines

  1. Save Format v2.3(19971110)
  2. @begin ClassFile "Application"
  3.  
  4.  @begin Object "Powersoft Java AWT 1.02::powersoft.painter.Class"
  5.   DesignName Application;
  6.   @begin ClassProperties
  7. @begin-code BaseClassList
  8.  
  9. extends Object
  10.  
  11. @end-code;
  12.   @end;
  13.   @begin UserFunctions
  14.    @begin UserFunction "Application()"
  15.     @begin Definition
  16.      FunctionScope 3;
  17. @begin-code SourceCode "Application()"
  18.  
  19.     public Application()
  20.     {
  21.         super();
  22.     }
  23.  
  24. @end-code;
  25.     @end;
  26.    @end;
  27.    @begin UserFunction "main(String args[])"
  28.     @begin Definition
  29.      FunctionScope 3;
  30.      GeneratedFunction 1;
  31. @begin-code SourceCode "main(String args[])"
  32.  
  33.     public static void main(String args[])
  34.     {
  35.         Application app = new Application();
  36.         app.StartApp(args);
  37.         app.RunApp(args);
  38.         app.EndApp(args);
  39.     }
  40.  
  41. @end-code;
  42.     @end;
  43.    @end;
  44.    @begin UserFunction "StartApp(String args[])"
  45.     @begin Definition
  46.      FunctionScope 3;
  47. @begin-code SourceCode "StartApp(String args[])"
  48.  
  49.     public void StartApp(String args[])
  50.     {
  51.     }
  52.  
  53. @end-code;
  54.     @end;
  55.    @end;
  56.    @begin UserFunction "RunApp(String args[])"
  57.     @begin Definition
  58.      FunctionScope 3;
  59. @begin-code SourceCode "RunApp(String args[])"
  60.  
  61.     public void RunApp(String args[])
  62.     {
  63.         CreateMainForm();
  64.     }
  65.  
  66. @end-code;
  67.     @end;
  68.    @end;
  69.    @begin UserFunction "EndApp(String args[])"
  70.     @begin Definition
  71.      FunctionScope 3;
  72. @begin-code SourceCode "EndApp(String args[])"
  73.  
  74.     public void EndApp(String args[])
  75.     {
  76.     }
  77.  
  78. @end-code;
  79.     @end;
  80.    @end;
  81.    @begin UserFunction "CreateMainForm()"
  82.     @begin Definition
  83.      FunctionScope 3;
  84.      GeneratedFunction 1;
  85. @begin-code SourceCode "CreateMainForm()"
  86.  
  87.     public Form_Application CreateMainForm()
  88.     {
  89.         Form_Application form = new Form_Application();
  90.         form.setMainForm(true);
  91.         try {
  92.             form.create();
  93.         } catch ( java.lang.Exception __e ) {}
  94.         return form;
  95.     }
  96.  
  97. @end-code;
  98.     @end;
  99.    @end;
  100.   @end;
  101.   @begin CodeBlocks
  102.    @begin CodeBlock "HppPrefix"
  103.     FunctionScope 1;
  104. @begin-code SourceCode "Imports()"
  105.  
  106. // add your custom import statements here
  107.  
  108. @end-code;
  109.    @end;
  110.    @begin CodeBlock "ClassContents"
  111.     FunctionScope 1;
  112. @begin-code SourceCode "Data Members()"
  113.  
  114.     // add your data members here
  115.  
  116. @end-code;
  117.    @end;
  118.    @begin CodeBlock "GeneratedClassContents"
  119.     FunctionScope 1;
  120. @begin-code SourceCode "GeneratedClassContents()"
  121.  
  122.  
  123. @end-code;
  124.    @end;
  125.    @begin CodeBlock "CppPrefix"
  126.     FunctionScope 6;
  127.     GeneratedFunction 1;
  128. @begin-code SourceCode "Not Applicable for Java()"
  129.  
  130.  
  131. @end-code;
  132.    @end;
  133.   @end;
  134.  @end;
  135. @end;
  136.