Class PreferenceController


  • public class PreferenceController
    extends Object
    PreferenceController is a convenience class for displaying a PathPreferenceSelector for the default document to open when the application launches.
    Author:
    tap
    • Constructor Detail

      • PreferenceController

        protected PreferenceController()
        Constructor which is hidden since this class only has static methods.
    • Method Detail

      • getDefaults

        protected static Preferences getDefaults()
        Get the user preferences for this class
        Returns:
        the user preferences for this class
      • getDefaultDocumentURL

        public static URL getDefaultDocumentURL()
                                         throws MalformedURLException
        Get the URL of the default connection dictionary properties file
        Returns:
        the URL of the default connection dictionary properties file
        Throws:
        MalformedURLException - if the default URL spec cannot form a valid URL
      • getDefaultDocumentURLSpec

        public static String getDefaultDocumentURLSpec()
        Get the URL Spec of the default launcher document
        Returns:
        the URL Spec of the default launcher document
      • setDefaultDocumentURLSpec

        public static void setDefaultDocumentURLSpec​(String urlSpec)
        Set the URL Spec of the default launcher document
      • displayPathPreferenceSelector

        public static void displayPathPreferenceSelector​(Frame owner)
        Display the PathPreferenceSelector with the specified Frame as the owner.
        Parameters:
        owner - The owner of the PathPreferenceSelector dialog.
      • displayPathPreferenceSelector

        public static void displayPathPreferenceSelector​(Dialog owner)
        Display the PathPreferenceSelector with the specified Dialog as the owner.
        Parameters:
        owner - The owner of the PathPreferenceSelector dialog.
      • displayPathPreferenceSelector

        public static void displayPathPreferenceSelector()
        Display the PathPreferenceSelector with no owner.