jmri.configurexml
Class LoadXmlConfigAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by jmri.configurexml.LoadStoreBaseAction
          extended by jmri.configurexml.LoadXmlConfigAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, 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.

Author:
Bob Jacobsen Copyright (C) 2002
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, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
LoadXmlConfigAction()
           
LoadXmlConfigAction(String s)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
static File getFile(JFileChooser fileChooser)
           
protected  boolean loadFile(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
 

Constructor Detail

LoadXmlConfigAction

public LoadXmlConfigAction()

LoadXmlConfigAction

public LoadXmlConfigAction(String s)
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)

loadFile

protected boolean loadFile(JFileChooser fileChooser)
Parameters:
fileChooser -
Returns:
true if successful

getFile

public static File getFile(JFileChooser fileChooser)


Copyright © 1997 - 2009 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads