Package jmri.jmrix.ecos.swing
Class EcosNamedPaneAction
java.lang.Object
javax.swing.AbstractAction
jmri.util.swing.JmriAbstractAction
jmri.util.swing.JmriNamedPaneAction
jmri.jmrix.swing.SystemConnectionNamedPaneAction<EcosSystemConnectionMemo>
jmri.jmrix.ecos.swing.EcosNamedPaneAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action,SystemConnectionAction<EcosSystemConnectionMemo>
- Direct Known Subclasses:
EcosMonPane.Default,StatusPanel.Default
Action to create and load a JmriPanel from just its name.
- See Also:
-
Field Summary
Fields inherited from class jmri.jmrix.swing.SystemConnectionNamedPaneAction
memoFields inherited from class jmri.util.swing.JmriNamedPaneAction
paneClassFields 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
ConstructorsConstructorDescriptionEcosNamedPaneAction(String s, Icon i, WindowInterface wi, String paneClass, EcosSystemConnectionMemo memo) EcosNamedPaneAction(String s, WindowInterface wi, String paneClass, EcosSystemConnectionMemo memo) Enhanced constructor for placing the pane in various GUIs. -
Method Summary
Modifier and TypeMethodDescriptionSet<Class<? extends SystemConnectionMemo>>Get a list ofSystemConnectionMemosubclasses that the implementing class accepts.Invoked as part of the action being invoked, e.g. when button pressed or menu item selected, this runs the panel through the initial part of its life cycle and installs in the given window interface.Methods inherited from class jmri.jmrix.swing.SystemConnectionNamedPaneAction
getSystemConnectionMemo, setSystemConnectionMemoMethods inherited from class jmri.util.swing.JmriAbstractAction
actionPerformed, dispose, setContext, setHint, setName, setParameter, setParameter, setWindowInterface, toStringMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
EcosNamedPaneAction
public EcosNamedPaneAction(String s, WindowInterface wi, String paneClass, EcosSystemConnectionMemo memo) Enhanced constructor for placing the pane in various GUIs.- Parameters:
s- action title string.wi- window interface.paneClass- pane class string.memo- system connection.
-
EcosNamedPaneAction
public EcosNamedPaneAction(String s, Icon i, WindowInterface wi, String paneClass, EcosSystemConnectionMemo memo)
-
-
Method Details
-
makePanel
Description copied from class:JmriNamedPaneActionInvoked as part of the action being invoked, e.g. when button pressed or menu item selected, this runs the panel through the initial part of its life cycle and installs in the given window interface.If different or additional initialization is needed, inherit from this class and override this method to do it.
- Overrides:
makePanelin classJmriNamedPaneAction
-
getSystemConnectionMemoClasses
Description copied from interface:SystemConnectionActionGet a list ofSystemConnectionMemosubclasses that the implementing class accepts.If the implementing class is a subclass of a class that does accept SystemConnectionMemos, but the implementing class does not accept any, return an empty array instead of null.
- Returns:
- Set of SystemConnectionMemo subclasses or empty array.
-