Class LoadXmlConfigAction

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

    public class LoadXmlConfigAction
    extends LoadStoreBaseAction
    Load configuration information from an XML file.

    The file context for this is the "config" file chooser.

    This will load whatever information types are present in the file. See ConfigureManager for information on the various types of information stored in configuration files.

    See Also:
    XmlFile, Serialized Form
    • Field Summary

      • 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 Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(java.awt.event.ActionEvent e)  
      static java.io.File getFile​(javax.swing.JFileChooser fileChooser)  
      static java.io.File getFileCustom​(javax.swing.JFileChooser fileChooser)  
      protected boolean loadFile​(javax.swing.JFileChooser fileChooser)  
      • 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
    • Method Detail

      • actionPerformed

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

        protected boolean loadFile​(javax.swing.JFileChooser fileChooser)
        Parameters:
        fileChooser - JFileChooser to use for file selection
        Returns:
        true if successful
      • getFile

        public static java.io.File getFile​(javax.swing.JFileChooser fileChooser)
      • getFileCustom

        public static java.io.File getFileCustom​(javax.swing.JFileChooser fileChooser)