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

  1. Save Format v2.3(19971110)
  2. @begin Form "Form_Application"
  3.  
  4.  @begin Object "Powersoft Java AWT 1.10::java.awt.Frame"
  5.   DesignName Form_Application;
  6.   @begin ClassProperties
  7. @begin-code BaseClassList
  8.  
  9. extends java.awt.Frame
  10.  
  11. @end-code;
  12.   @end;
  13.   @begin Properties
  14.    @begin DesignProperties
  15.     Style "cf0000";
  16.     ResID 0;
  17.     DesignRect 74,13,262,240;
  18.    @end;
  19.    @begin ObjectProperties
  20.     font "Dialog-Plain-12";
  21.     LayoutManager "powersoft.powerj.ui.ResizePercentageLayout";
  22.     FormPositionType "DesignTime";
  23.     foreground "java.awt.Color.black";
  24.     background "java.awt.Color.lightGray";
  25.     SerializationData "";
  26.     title "Application";
  27.    @end;
  28.   @end;
  29.   @begin Events
  30.    @begin Event "java.awt.event.Window.windowClosing"
  31. @begin-code SourceCode "java.awt.event.Window.windowClosing"
  32.  
  33.     public boolean Form_Application_windowClosing(java.awt.event.WindowEvent event)
  34.     {
  35.  
  36.         hide();
  37.         destroy();
  38.         return false;
  39.     }
  40.  
  41. @end-code;
  42.    @end;
  43.   @end;
  44.   @begin UserFunctions
  45.    @begin UserFunction "Form_Application()"
  46.     @begin Definition
  47.      FunctionScope 3;
  48. @begin-code SourceCode "Form_Application()"
  49.  
  50.     public Form_Application()
  51.     {
  52.         super();
  53.     }
  54.  
  55. @end-code;
  56.     @end;
  57.    @end;
  58.    @begin UserFunction "handleEvent(java.awt.Event event)"
  59.     @begin Prototype
  60.      FunctionScope 1;
  61. @begin-code SourceCode "Prototype for handleEvent(java.awt.Event event)"
  62.  
  63. // Placeholder for Prototype for handleEvent(java.awt.Event event)
  64. //     you should move the prototype here from the Class Contents section
  65.  
  66. @end-code;
  67.     @end;
  68.     @begin Definition
  69. @begin-code SourceCode "handleEvent(java.awt.Event event)"
  70.  
  71.     public boolean handleEvent(java.awt.Event event)
  72.     {
  73.  
  74.         return defaultHandleEvent(event);
  75.     }
  76.  
  77. @end-code;
  78.     @end;
  79.    @end;
  80.    @begin UserFunction "unhandledEvent( String listenerName, String methodName, java.lang.Object event )"
  81.     @begin Prototype
  82.      FunctionScope 1;
  83. @begin-code SourceCode "Prototype for unhandledEvent( String listenerName, String methodName, java.lang.Object event )"
  84.  
  85. // Placeholder for Prototype for unhandledEvent( String listenerName, String methodName, java.lang.Object event )
  86. //     you should move the prototype here from the Class Contents section
  87.  
  88. @end-code;
  89.     @end;
  90.     @begin Definition
  91. @begin-code SourceCode "unhandledEvent( String listenerName, String methodName, java.lang.Object event )"
  92.  
  93.     public void unhandledEvent( String listenerName, String methodName, java.lang.Object event )
  94.     {
  95.  
  96.     }
  97.  
  98. @end-code;
  99.     @end;
  100.    @end;
  101.    @begin UserFunction "processEvent(java.awt.AWTEvent event)"
  102.     @begin Definition
  103.      FunctionScope 3;
  104. @begin-code SourceCode "processEvent(java.awt.AWTEvent event)"
  105.  
  106.     public void processEvent(java.awt.AWTEvent event)
  107.     {
  108.  
  109.         defaultProcessEvent(event);
  110.     }
  111.  
  112. @end-code;
  113.     @end;
  114.    @end;
  115.    @begin UserFunction "getContentPane()"
  116.     @begin Definition
  117.      FunctionScope 3;
  118. @begin-code SourceCode "getContentPane()"
  119.  
  120.     public java.awt.Container getContentPane()
  121.     {
  122.         //  Use the following if you inherit from a JFC container such as com.sun.java.swing.JFrame
  123.         //  return super.getContentPane();
  124.         return this;
  125.     }
  126.  
  127. @end-code;
  128.     @end;
  129.    @end;
  130.   @end;
  131.   @begin CodeBlocks
  132.    @begin CodeBlock "HppPrefix"
  133.     FunctionScope 1;
  134. @begin-code SourceCode "Imports()"
  135.  
  136. // add your custom import statements here
  137. import java.util.*;
  138.  
  139. @end-code;
  140.    @end;
  141.    @begin CodeBlock "ClassContents"
  142.     FunctionScope 1;
  143. @begin-code SourceCode "Data Members()"
  144.  
  145.     // add your data members here
  146.     private Properties _systemProperties;
  147.  
  148. @end-code;
  149.    @end;
  150.    @begin CodeBlock "GeneratedClassContents"
  151.     FunctionScope 1;
  152. @begin-code SourceCode "GeneratedClassContents()"
  153.  
  154.  
  155. @end-code;
  156.    @end;
  157.    @begin CodeBlock "CppPrefix"
  158.     FunctionScope 1;
  159. @begin-code SourceCode "()"
  160.  
  161.  
  162. @end-code;
  163.    @end;
  164.   @end;
  165.   @begin Objects
  166.    @begin Object "Powersoft Java AWT 1.10::java.awt.List"
  167.     DesignName lb_systemProperties;
  168.     @begin Properties
  169.      @begin DesignProperties
  170.       ResID 0;
  171.       DesignRect 5,25,246,195;
  172.      @end;
  173.      @begin ObjectProperties
  174.       font "Dialog-Plain-12";
  175.       dataTrackRow "0";
  176.       foreground "java.awt.Color.black";
  177.       background "java.awt.Color.white";
  178.       ResizePercentages "[ 0 0 100 100 ]";
  179.       SerializationData "";
  180.      @end;
  181.      @begin ComponentProperties "lb_systemProperties"
  182.      @end;
  183.     @end;
  184.    @end;
  185.    @begin Object "Powersoft Java AWT 1.10::java.awt.Button"
  186.     DesignName cb_showSystemProperties;
  187.     @begin Properties
  188.      @begin DesignProperties
  189.       ResID 0;
  190.       TabIndex 1;
  191.       DesignRect 5,5,110,15;
  192.      @end;
  193.      @begin ObjectProperties
  194.       font "Dialog-Plain-12";
  195.       foreground "java.awt.Color.black";
  196.       background "java.awt.Color.lightGray";
  197.       SerializationData "";
  198.       label "Show System Properties";
  199.      @end;
  200.     @end;
  201.     @begin Events
  202.      @begin Event "java.awt.event.Action.actionPerformed"
  203. @begin-code SourceCode "java.awt.event.Action.actionPerformed"
  204.  
  205.     public boolean cb_showSystemProperties_actionPerformed(java.awt.event.ActionEvent event)
  206.     {        
  207.         _systemProperties = System.getProperties();
  208.  
  209.         for ( Enumeration e = _systemProperties.propertyNames(); e.hasMoreElements(); ) 
  210.         {
  211.             String propertyName = new String( (String)e.nextElement() );
  212.  
  213.             String propertyValue = 
  214.                 new String( _systemProperties.getProperty( propertyName ) );
  215.  
  216.             lb_systemProperties.addItem( 
  217.                 "[ " + propertyName + " ]    " + propertyValue );
  218.         }
  219.  
  220.         return false;
  221.     }
  222.  
  223. @end-code;
  224.      @end;
  225.     @end;
  226.    @end;
  227.   @end;
  228.  @end;
  229. @end;
  230.