Class EcosLocoTableAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.jmrit.beantable.AbstractTableAction<NamedBean>
-
- jmri.jmrix.ecos.swing.locodatabase.EcosLocoTableAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
public class EcosLocoTableAction extends AbstractTableAction<NamedBean>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
EcosLocoTableAction.RosterBoxRenderer
(package private) static class
EcosLocoTableAction.RosterComboBoxEditor
-
Nested classes/interfaces inherited from class jmri.jmrit.beantable.AbstractTableAction
AbstractTableAction.TableItem<E extends NamedBean>
-
-
Field Summary
Fields Modifier and Type Field Description protected EcosSystemConnectionMemo
adaptermemo
static int
ADDTOROSTERCOL
(package private) java.util.List<java.lang.String>
ecosObjectIdList
protected EcosLocoAddressManager
locoManager
static int
PROTOCOL
protected java.lang.String
rosterAttribute
(package private) boolean
showLocoMonitor
(package private) javax.swing.JCheckBox
showMonitorLoco
static int
SPEEDDIR
static int
STOP
(package private) javax.swing.JTable
table
-
Fields inherited from class jmri.jmrit.beantable.AbstractTableAction
f, includeAddButton, m
-
-
Constructor Summary
Constructors Constructor Description EcosLocoTableAction()
EcosLocoTableAction(java.lang.String s)
Create an action with a specific title.EcosLocoTableAction(java.lang.String s, EcosSystemConnectionMemo memo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
protected void
addPressed(java.awt.event.ActionEvent e)
void
addToPanel(EcosLocoTableTabAction f)
(package private) void
addToRoster(int row, int col)
protected void
createModel()
Create the JTable DataModel, along with the changes for the specific NamedBean type.protected EcosLocoAddress
getByEcosObject(java.lang.String object)
protected java.lang.String
getClassName()
protected java.lang.String
helpTarget()
Specify the JavaHelp target for this specific panel.void
setAdapterMemo(EcosSystemConnectionMemo memo)
void
setManager(Manager<NamedBean> man)
If the subClass is being included in a greater tabbed frame, then this is used to specify which manager the subclass should be using.protected void
setTitle()
Include the correct title.(package private) void
showMonitorChanged()
protected javax.swing.JButton
stopButton()
Create a JButton to edit a turnout operation.(package private) void
stopLoco(int row, int col)
-
Methods inherited from class jmri.jmrit.beantable.AbstractTableAction
addBottomButtons, addToFrame, addToFrame, addToPanel, columnsVisibleUpdated, configureManagerComboBox, configureTable, displayHwError, dispose, getClassDescription, getDataModel, getFrame, getManager, getPanel, getTableDataModel, includeAddButton, nextName, print, removePrefixBoxListener, setFrame, setMenuBar, setMessagePreferencesDetails
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
adaptermemo
protected EcosSystemConnectionMemo adaptermemo
-
locoManager
protected EcosLocoAddressManager locoManager
-
rosterAttribute
protected java.lang.String rosterAttribute
-
ecosObjectIdList
java.util.List<java.lang.String> ecosObjectIdList
-
table
javax.swing.JTable table
-
PROTOCOL
public static final int PROTOCOL
- See Also:
- Constant Field Values
-
ADDTOROSTERCOL
public static final int ADDTOROSTERCOL
- See Also:
- Constant Field Values
-
SPEEDDIR
public static final int SPEEDDIR
- See Also:
- Constant Field Values
-
STOP
public static final int STOP
- See Also:
- Constant Field Values
-
showLocoMonitor
boolean showLocoMonitor
-
showMonitorLoco
javax.swing.JCheckBox showMonitorLoco
-
-
Constructor Detail
-
EcosLocoTableAction
public EcosLocoTableAction(java.lang.String s)
Create an action with a specific title.Note that the argument is the Action title, not the title of the resulting frame. Perhaps this should be changed?
- Parameters:
s
- Action title string.
-
EcosLocoTableAction
public EcosLocoTableAction()
-
EcosLocoTableAction
public EcosLocoTableAction(java.lang.String s, EcosSystemConnectionMemo memo)
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
- Overrides:
actionPerformed
in classAbstractTableAction<NamedBean>
-
setManager
public void setManager(Manager<NamedBean> man)
Description copied from class:AbstractTableAction
If the subClass is being included in a greater tabbed frame, then this is used to specify which manager the subclass should be using.- Overrides:
setManager
in classAbstractTableAction<NamedBean>
- Parameters:
man
- Manager for this table tab
-
setAdapterMemo
public void setAdapterMemo(EcosSystemConnectionMemo memo)
-
getByEcosObject
protected EcosLocoAddress getByEcosObject(java.lang.String object)
-
createModel
protected void createModel()
Description copied from class:AbstractTableAction
Create the JTable DataModel, along with the changes for the specific NamedBean type.- Specified by:
createModel
in classAbstractTableAction<NamedBean>
-
showMonitorChanged
void showMonitorChanged()
-
stopButton
protected javax.swing.JButton stopButton()
Create a JButton to edit a turnout operation.- Returns:
- the JButton
-
stopLoco
void stopLoco(int row, int col)
-
addToPanel
public void addToPanel(EcosLocoTableTabAction f)
-
addToRoster
void addToRoster(int row, int col)
-
setTitle
protected void setTitle()
Description copied from class:AbstractTableAction
Include the correct title.- Specified by:
setTitle
in classAbstractTableAction<NamedBean>
-
helpTarget
protected java.lang.String helpTarget()
Description copied from class:AbstractTableAction
Specify the JavaHelp target for this specific panel.- Overrides:
helpTarget
in classAbstractTableAction<NamedBean>
- Returns:
- a fixed default string "index" pointing to to highest level in JMRI Help
-
addPressed
protected void addPressed(java.awt.event.ActionEvent e)
- Specified by:
addPressed
in classAbstractTableAction<NamedBean>
-
getClassName
protected java.lang.String getClassName()
- Specified by:
getClassName
in classAbstractTableAction<NamedBean>
-
-