jmri.jmrit.roster
Class AbstractRosterItemAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by jmri.util.swing.JmriAbstractAction
          extended by jmri.jmrit.roster.AbstractRosterItemAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Direct Known Subclasses:
CopyRosterItemAction, ExportRosterItemAction, ImportRosterItemAction

public abstract class AbstractRosterItemAction
extends JmriAbstractAction

Base class for Actions to copy, export and import RosterEntrys.

Note that DeleteRosterItemAction is sufficiently different that it doesn't use this base class.

Author:
Bob Jacobsen Copyright (C) 2001, 2002, 2007, 2008
See Also:
XmlFile, Serialized Form

Field Summary
 
Fields inherited from class jmri.util.swing.JmriAbstractAction
context, wi
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields 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
AbstractRosterItemAction(String pName, Component pWho)
           
AbstractRosterItemAction(String s, Icon i, WindowInterface wi)
           
AbstractRosterItemAction(String s, WindowInterface wi)
           
 
Method Summary
 void actionPerformed(ActionEvent event)
           
 JmriPanel makePanel()
           
protected abstract  boolean selectFrom()
           
 void setExistingEntry(RosterEntry mFromEntry)
          method added for DP3 where the existing roster entry is selected from a table
 
Methods inherited from class jmri.util.swing.JmriAbstractAction
dispose, setContext, setHint, setName, setParameter, setWindowInterface, toString
 
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, wait, wait, wait
 

Constructor Detail

AbstractRosterItemAction

public AbstractRosterItemAction(String pName,
                                Component pWho)

AbstractRosterItemAction

public AbstractRosterItemAction(String s,
                                WindowInterface wi)

AbstractRosterItemAction

public AbstractRosterItemAction(String s,
                                Icon i,
                                WindowInterface wi)
Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
Specified by:
actionPerformed in interface ActionListener
Overrides:
actionPerformed in class JmriAbstractAction

selectFrom

protected abstract boolean selectFrom()

setExistingEntry

public void setExistingEntry(RosterEntry mFromEntry)
method added for DP3 where the existing roster entry is selected from a table


makePanel

public JmriPanel makePanel()
Specified by:
makePanel in class JmriAbstractAction


Copyright © 1997 - 2011 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