Class NameCheckAction

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

    public class NameCheckAction
    extends javax.swing.AbstractAction
    Check the names in an XML decoder file against the names.xml definitions
    See Also:
    XmlFile, Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) javax.swing.JPanel _who  
      (package private) javax.swing.JFileChooser fci  
      • 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
    • Constructor Summary

      Constructors 
      Constructor Description
      NameCheckAction​(java.lang.String s, javax.swing.JPanel who)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(java.awt.event.ActionEvent e)  
      (package private) org.jdom2.Element readFile​(java.io.File file)
      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, toString, wait, wait, wait
      • Methods inherited from interface javax.swing.Action

        accept
    • Field Detail

      • fci

        javax.swing.JFileChooser fci
      • _who

        javax.swing.JPanel _who
    • Constructor Detail

      • NameCheckAction

        public NameCheckAction​(java.lang.String s,
                               javax.swing.JPanel who)
    • Method Detail

      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent e)
      • readFile

        org.jdom2.Element readFile​(java.io.File file)
                            throws org.jdom2.JDOMException,
                                   java.io.IOException
        Read and verify an XML file.
        Parameters:
        file - the file to read
        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