Class InstallDecoderURLAction

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) javax.swing.JPanel _who  
      • Fields inherited from class javax.swing.AbstractAction

        changeSupport, enabled
      • Fields inherited from interface javax.swing.Action

        ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(java.awt.event.ActionEvent e)  
      (package private) boolean checkFile​(java.net.URL url, javax.swing.JPanel who)  
      (package private) void copyAndInstall​(java.net.URL from, javax.swing.JPanel who)  
      (package private) boolean copyfile​(java.net.URL from, java.io.File toFile, javax.swing.JPanel who)  
      JmriPanel makePanel()  
      (package private) java.net.URL pickURL​(javax.swing.JPanel who)  
      (package private) org.jdom2.Element readFile​(java.net.URL url)
      Read and verify an XML file.
      • Methods inherited from class javax.swing.AbstractAction

        addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface javax.swing.Action

        accept
    • Field Detail

      • _who

        javax.swing.JPanel _who
    • Method Detail

      • pickURL

        java.net.URL pickURL​(javax.swing.JPanel who)
      • copyAndInstall

        void copyAndInstall​(java.net.URL from,
                            javax.swing.JPanel who)
      • copyfile

        boolean copyfile​(java.net.URL from,
                         java.io.File toFile,
                         javax.swing.JPanel who)
      • checkFile

        boolean checkFile​(java.net.URL url,
                          javax.swing.JPanel who)
      • readFile

        org.jdom2.Element readFile​(java.net.URL url)
                            throws org.jdom2.JDOMException,
                                   java.io.IOException
        Read and verify an XML file.
        Parameters:
        url - the URL of the file
        Returns:
        the root element in the file
        Throws:
        org.jdom2.JDOMException - if the file cannot be parsed
        java.io.IOException - if the file cannot be read