Class ScanDocument1D

  • All Implemented Interfaces:
    Pageable

    public class ScanDocument1D
    extends xal.extension.application.smf.AcceleratorDocument
    ScanDocument1D is a custom XalDocument for 1D scan application. The document manages the data that is displayed in the window.
    Author:
    shishlo
    • Constructor Detail

      • ScanDocument1D

        public ScanDocument1D()
        Create a new empty ScanDocument1D
      • ScanDocument1D

        public ScanDocument1D​(URL url)
        Create a new document loaded from the URL file
        Parameters:
        url - The URL of the file to load into the new document.
    • Method Detail

      • readScanDocument

        public void readScanDocument​(URL url)
        Reads the content of the document from the specified URL.
        Parameters:
        url - Description of the Parameter
      • makeMainWindow

        public void makeMainWindow()
        Make a main window by instantiating the ScanWindow1D window.
      • freeCustomResources

        public void freeCustomResources()
        Dispose of ScanDocument1D resources. This method overrides an empty superclass method.
      • saveDocumentAs

        public void saveDocumentAs​(URL url)
        Save the ScanDocument1D document to the specified URL.
        Parameters:
        url - Description of the Parameter
      • customizeCommands

        public void customizeCommands​(xal.extension.application.Commander commander)
        Register actions for the menu items and toolbar.
        Parameters:
        commander - Description of the Parameter
      • acceleratorChanged

        public void acceleratorChanged()
        Overrides:
        acceleratorChanged in class xal.extension.application.smf.AcceleratorDocument
      • writableDocumentTypes

        public String[] writableDocumentTypes()
      • getCustomMenuDefinitionResource

        public String getCustomMenuDefinitionResource()
      • getTitle

        public String getTitle()
      • getSource

        public URL getSource()
      • getDefaultFolder

        public File getDefaultFolder()
      • getDefaultFolderURL

        public URL getDefaultFolderURL()
      • setSource

        public void setSource​(URL arg0)
      • isEmpty

        public boolean isEmpty()
      • getDisplayFilePath

        public String getDisplayFilePath()
      • getFileNameForSaving

        public String getFileNameForSaving()
      • getNewFileName

        public String getNewFileName()
      • getNewDocumentName

        public String getNewDocumentName​(String arg0)
      • getEmptyDocumentPath

        public String getEmptyDocumentPath()
      • hasChanges

        public boolean hasChanges()
      • saveDocument

        public void saveDocument()
      • writeDataTo

        public void writeDataTo​(xal.tools.data.DataListener arg0,
                                URL arg1)
      • handleDataWrittenTo

        public void handleDataWrittenTo​(xal.tools.data.DataListener arg0,
                                        URL arg1)
      • warnUserOfUnsavedChangesWhenClosing

        public boolean warnUserOfUnsavedChangesWhenClosing()
      • willClose

        public void willClose()
      • windowWillOpen

        public void windowWillOpen()
      • windowOpened

        public void windowOpened()
      • showDocument

        public void showDocument()
      • hideDocument

        public void hideDocument()
      • displayConfirmDialog

        public int displayConfirmDialog​(String arg0,
                                        String arg1)
      • displayWarning

        public void displayWarning​(String arg0,
                                   String arg1)
      • displayWarning

        public void displayWarning​(Exception arg0)
      • displayError

        public void displayError​(String arg0,
                                 String arg1)
      • displayError

        public void displayError​(Exception arg0)