Class OpticsSwitcher


  • public final class OpticsSwitcher
    extends Object
    Singleton class to retrieve and update Open XAL default optics and update the GUI elements accordingly
    Author:
    Juan F. Esteban Müller
    • Method Detail

      • setDefaultPath

        public boolean setDefaultPath​(javafx.scene.control.ListView<String> opticsListView)
      • revertDefaultPath

        public void revertDefaultPath​(javafx.scene.control.ListView<String> opticsListView)
        This method allows to revert a setDefaultPath() call and update the ListView tree
        Parameters:
        opticsListView -
      • setOpticsLibraryPath

        public void setOpticsLibraryPath​(String opticsPath)
      • getDefaultOpticsLibraryPath

        public String getDefaultOpticsLibraryPath()
      • getOpticsLibraryPath

        public String getOpticsLibraryPath()
      • setDefaultOpticsPathDialog

        public String setDefaultOpticsPathDialog​(javafx.scene.Scene scene,
                                                 String initialDirectory)
      • refreshList

        public void refreshList​(javafx.scene.control.ListView<String> opticsListView)
        Refreshes the ListView element with the list of optics available, indicating which one is the default accelerator.
        Parameters:
        opticsListView -