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

  1. //
  2. // (C) Copyright 1995 - 1999 Microsoft Corporation.  All rights reserved.
  3. //
  4. /**
  5. *    Static wrapper class for JNoteSettingsObject. If an application wants one
  6. *    copy of a JNoteSettingsObject that will be shared by all classes in the 
  7. *    application, they can use this class. AppSettings holds an instance
  8. *    of a JNoteSettingsObject, and classes can use a static method to obtain
  9. *    this object and manipulate it as necessary. This is an extension of
  10. *    AppSettings and has identical functionality.
  11. *
  12. *    @version    1.0, 8/17/97
  13. *    @see        SettingsObject
  14. *    @see        JNoteSettings
  15. *    @see        AppSettings
  16. */
  17.  
  18. public class JNoteAppSettings extends AppSettings
  19. {    
  20. /**
  21. *    Initializes the AppSettings class. Sets the internal settingsObj
  22. *    to an instance of JNoteSettings.
  23. *    
  24. *    @param    filename    Filename that the JNoteSettings object will load settings information from
  25.     */
  26.     public static void init(String filename)
  27.     {
  28.         settingsObj = new JNoteSettings(filename);
  29.     }
  30.     
  31.     /**
  32.     *    Returns the application-wide JNoteSettings object.
  33.     */
  34.     public static JNoteSettings getSettingsObj()
  35.     {
  36.         return (JNoteSettings)settingsObj;
  37.     }
  38.     
  39. }
  40.  
  41.  
  42.