home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 39 / IOPROG_39.ISO / SOFT / sdkjava40.exe / data1.cab / fg_Samples / Samples / afc11 / JNotepad / src / JNoteAppCommandFeature.java < prev    next >
Encoding:
Java Source  |  2000-05-04  |  965 b   |  32 lines

  1. //
  2. // (C) Copyright 1995 - 1999 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.