Package jmri.jmrit.roster
Class AbstractRosterItemAction
java.lang.Object
javax.swing.AbstractAction
jmri.util.swing.JmriAbstractAction
jmri.jmrit.roster.AbstractRosterItemAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
- Direct Known Subclasses:
CopyRosterItemAction,ExportRosterItemAction,ImportRosterItemAction
Base class for Actions to copy, export and import RosterEntry objects.
Note that DeleteRosterItemAction is sufficiently different that it
doesn't use this base class.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) JFileChooser(package private) RosterEntry(package private) File(package private) String(package private) String(package private) String(package private) String(package private) Component(package private) RosterEntry(package private) File(package private) String(package private) StringFields 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
ConstructorsConstructorDescriptionAbstractRosterItemAction(String pName, Component pWho) AbstractRosterItemAction(String s, Icon i, WindowInterface wi) -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent event) (package private) void(package private) abstract boolean(package private) booleanprotected abstract boolean(package private) boolean(package private) boolean(package private) boolean(package private) abstract booleanselectTo()voidsetExistingEntry(RosterEntry mFromEntry) Set the roster entry this action acts upon.(package private) voidCommon, but not unique implementation to add the "To" entry to the Roster and rewrite the roster file.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
-
mParent
-
mFromID
-
mFromEntry
-
mFromFile
-
mFromFilename
-
mFullFromFilename
-
mToID
-
mToEntry
-
mToFile
-
mToFilename
-
mFullToFilename
-
fileChooser
-
-
Constructor Details
-
AbstractRosterItemAction
-
AbstractRosterItemAction
-
AbstractRosterItemAction
-
-
Method Details
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener- Overrides:
actionPerformedin classJmriAbstractAction
-
selectFrom
-
selectTo
-
doTransfer
-
updateRoster
void updateRoster()Common, but not unique implementation to add the "To" entry to the Roster and rewrite the roster file. -
selectExistingFromEntry
boolean selectExistingFromEntry() -
setExistingEntry
Set the roster entry this action acts upon.- Parameters:
mFromEntry- the roster entry to act upon
-
selectNewToEntryID
boolean selectNewToEntryID() -
selectNewFromFile
boolean selectNewFromFile() -
selectNewToFile
boolean selectNewToFile() -
addToEntryToRoster
void addToEntryToRoster() -
makePanel
- Specified by:
makePanelin classJmriAbstractAction
-