Package jmri.jmrit.roster
Class FullBackupImportAction
java.lang.Object
javax.swing.AbstractAction
jmri.util.swing.JmriAbstractAction
jmri.jmrit.roster.AbstractRosterItemAction
jmri.jmrit.roster.ImportRosterItemAction
jmri.jmrit.roster.FullBackupImportAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
Reload the entire JMRI Roster (
Roster) from a file
previously stored by FullBackupExportAction.
Does not currently handle importing the group(s) that the entry belongs to.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) boolean(package private) booleanFields inherited from class jmri.jmrit.roster.AbstractRosterItemAction
fileChooser, mFromEntry, mFromFile, mFromFilename, mFromID, mFullFromFilename, mFullToFilename, mParent, mToEntry, mToFile, mToFilename, mToIDFields 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
ConstructorsConstructorDescriptionFullBackupImportAction(String title, Component parent) FullBackupImportAction(String s, Icon i, WindowInterface wi) -
Method Summary
Modifier and TypeMethodDescriptionvoid(package private) voidprocessImageFile(ZipInputStream zipper, ZipEntry entry, String path) protected booleanprocessRosterFile(ZipInputStream zipper) Methods inherited from class jmri.jmrit.roster.ImportRosterItemAction
doTransfer, loadEntryFromElement, makePanel, selectFrom, selectToMethods inherited from class jmri.jmrit.roster.AbstractRosterItemAction
addToEntryToRoster, selectExistingFromEntry, selectNewFromFile, selectNewToEntryID, selectNewToFile, setExistingEntry, updateRosterMethods 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
-
acceptAll
boolean acceptAll -
acceptAllDup
boolean acceptAllDup
-
-
Constructor Details
-
FullBackupImportAction
-
FullBackupImportAction
-
FullBackupImportAction
- Parameters:
title- Name of this action, e.g. in menusparent- Component that action is associated with, used to ensure proper position in of dialog boxes
-
-
Method Details
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener- Overrides:
actionPerformedin classAbstractRosterItemAction
-
processImageFile
- Throws:
IOException
-
processRosterFile
- Parameters:
zipper- Stream to receive output- Returns:
- true if OK to continue to next entry
- Throws:
IOException- from underlying operations
-