Package xal.app.launcher
Class PreferenceController
- java.lang.Object
-
- xal.app.launcher.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 Summary
Constructors Modifier Constructor Description protectedPreferenceController()Constructor which is hidden since this class only has static methods.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddisplayPathPreferenceSelector()Display the PathPreferenceSelector with no owner.static voiddisplayPathPreferenceSelector(Dialog owner)Display the PathPreferenceSelector with the specified Dialog as the owner.static voiddisplayPathPreferenceSelector(Frame owner)Display the PathPreferenceSelector with the specified Frame as the owner.static URLgetDefaultDocumentURL()Get the URL of the default connection dictionary properties filestatic StringgetDefaultDocumentURLSpec()Get the URL Spec of the default launcher documentprotected static PreferencesgetDefaults()Get the user preferences for this classstatic voidsetDefaultDocumentURLSpec(String urlSpec)Set the URL Spec of the default launcher document
-
-
-
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.
-
-