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:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
public class FullBackupImportAction extends ImportRosterItemAction
Reload the entire JMRI Roster (Roster
) from a file previously stored byFullBackupExportAction
.Does not currently handle importing the group(s) that the entry belongs to.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
acceptAll
(package private) boolean
acceptAllDup
-
Fields inherited from class jmri.jmrit.roster.AbstractRosterItemAction
fileChooser, mFromEntry, mFromFile, mFromFilename, mFromID, mFullFromFilename, mFullToFilename, mParent, mToEntry, mToFile, mToFilename, mToID
-
Fields inherited from class jmri.util.swing.JmriAbstractAction
context, hint, wi
-
-
Constructor Summary
Constructors Constructor Description FullBackupImportAction(java.lang.String title, java.awt.Component parent)
FullBackupImportAction(java.lang.String s, javax.swing.Icon i, WindowInterface wi)
FullBackupImportAction(java.lang.String s, WindowInterface wi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
(package private) void
processImageFile(java.util.zip.ZipInputStream zipper, java.util.zip.ZipEntry entry, java.lang.String path)
protected boolean
processRosterFile(java.util.zip.ZipInputStream zipper)
-
Methods inherited from class jmri.jmrit.roster.ImportRosterItemAction
doTransfer, loadEntryFromElement, makePanel, selectFrom, selectTo
-
Methods inherited from class jmri.jmrit.roster.AbstractRosterItemAction
addToEntryToRoster, selectExistingFromEntry, selectNewFromFile, selectNewToEntryID, selectNewToFile, setExistingEntry, updateRoster
-
Methods inherited from class jmri.util.swing.JmriAbstractAction
dispose, setContext, setHint, setName, setParameter, setParameter, setWindowInterface, toString
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
acceptAll
boolean acceptAll
-
acceptAllDup
boolean acceptAllDup
-
-
Constructor Detail
-
FullBackupImportAction
public FullBackupImportAction(java.lang.String s, WindowInterface wi)
-
FullBackupImportAction
public FullBackupImportAction(java.lang.String s, javax.swing.Icon i, WindowInterface wi)
-
FullBackupImportAction
public FullBackupImportAction(java.lang.String title, java.awt.Component parent)
- 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 Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
- Overrides:
actionPerformed
in classAbstractRosterItemAction
-
processImageFile
void processImageFile(java.util.zip.ZipInputStream zipper, java.util.zip.ZipEntry entry, java.lang.String path) throws java.io.IOException
- Throws:
java.io.IOException
-
processRosterFile
protected boolean processRosterFile(java.util.zip.ZipInputStream zipper) throws java.io.IOException
- Parameters:
zipper
- Stream to receive output- Returns:
- true if OK to continue to next entry
- Throws:
java.io.IOException
- from underlying operations
-
-