home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 14 / IOPROG_14.ISO / soft / sdkjava / sdkjava.exe / SDKJava.cab / Samples / AFC / JNotepad / src / JNoteAppCommandFeature.java < prev    next >
Encoding:
Java Source  |  1998-03-05  |  948 b   |  32 lines

  1. //
  2. // (c) 1998 Microsoft Corporation.  All rights reserved.
  3. //
  4. import AppCommandFeature;
  5.  
  6. /**
  7. *    Static abstract wrapper class for CommandFeature.
  8. *    AppCommandFeature provides methods to get at the interfaces in CommandFeature,
  9. *    and now this class actually links those interfaces to the actual class. 
  10. *
  11. *    @version    1.0, 8/18/97
  12. *    @see        CommandFeature
  13. *    @see        AppCommandFeature
  14. */
  15.  
  16. public class JNoteAppCommandFeature extends AppCommandFeature
  17. {
  18. /**
  19. *    Initializes the interfaces which AppCommandFeature delivers to 
  20. *    classes in this application. We pass the same CommandFeature to 
  21. *    both interfaces since CommandFeature implements    both. 
  22.     */
  23.     public static void init(CommandFeature commFeature)
  24.     {
  25.         // We call the protected init() function in AppCommandFeature
  26.         // to set the data correctly. AppCommandFeature then returns
  27.         // whichever interface needed.
  28.         AppCommandFeature.init(commFeature, commFeature);
  29.     }
  30. }
  31.  
  32.