Package jmri.jmrit
Class XmlFileCheckAction
java.lang.Object
javax.swing.AbstractAction
jmri.util.swing.JmriAbstractAction
jmri.jmrit.XmlFileCheckAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
Make sure an XML file is readable, without doing a DTD or Schema validation.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Component(package private) JFileChooser(package private) XmlFileFields inherited from class jmri.util.swing.JmriAbstractAction
context, hint, wiFields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoid(package private) voidRead and verify a file is XML.Methods inherited from class jmri.util.swing.JmriAbstractAction
dispose, setContext, setHint, setName, setParameter, setParameter, setWindowInterface, toStringMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
fci
-
_who
-
xmlfile
-
-
Constructor Details
-
XmlFileCheckAction
-
XmlFileCheckAction
-
-
Method Details
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener- Overrides:
actionPerformedin classJmriAbstractAction
-
readFile
Read and verify a file is XML.- Parameters:
file- the file to read- Throws:
org.jdom2.JDOMException- if file is not XMLIOException- if unable to read file
-
makePanel
- Specified by:
makePanelin classJmriAbstractAction
-