Package jmri.jmrit.roster.swing
Class RosterFrameAction
java.lang.Object
javax.swing.AbstractAction
jmri.util.swing.JmriAbstractAction
jmri.jmrit.roster.swing.RosterFrameAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
AbstractAction for the RosterFrane so that multiple windows can be opened
- See Also:
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionDefault constructor used when instantiating via startup action or button configured in user preferencesRosterFrameAction(String pName, boolean allowQuit) Method for opening a new window via the classic JMRI interface.RosterFrameAction(String s, Icon i, WindowInterface wi) RosterFrameAction(String s, WindowInterface wi, boolean allowQuit) -
Method Summary
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
-
allowQuit
boolean allowQuit
-
-
Constructor Details
-
RosterFrameAction
-
RosterFrameAction
-
RosterFrameAction
-
RosterFrameAction
public RosterFrameAction()Default constructor used when instantiating via startup action or button configured in user preferences -
RosterFrameAction
Method for opening a new window via the classic JMRI interface.- Parameters:
pName- action name.allowQuit- Set state to either close JMRI or just the roster window.
-
-
Method Details
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener- Overrides:
actionPerformedin classJmriAbstractAction
-
makePanel
- Specified by:
makePanelin classJmriAbstractAction
-