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 classEcosLocoTableAction.RosterBoxRenderer(package private) static classEcosLocoTableAction.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 EcosSystemConnectionMemoadaptermemostatic intADDTOROSTERCOL(package private) java.util.List<java.lang.String>ecosObjectIdListprotected EcosLocoAddressManagerlocoManagerstatic intPROTOCOLprotected java.lang.StringrosterAttribute(package private) booleanshowLocoMonitor(package private) javax.swing.JCheckBoxshowMonitorLocostatic intSPEEDDIRstatic intSTOP(package private) javax.swing.JTabletable-
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 voidactionPerformed(java.awt.event.ActionEvent e)protected voidaddPressed(java.awt.event.ActionEvent e)voidaddToPanel(EcosLocoTableTabAction f)(package private) voidaddToRoster(int row, int col)protected voidcreateModel()Create the JTable DataModel, along with the changes for the specific NamedBean type.protected EcosLocoAddressgetByEcosObject(java.lang.String object)protected java.lang.StringgetClassName()protected java.lang.StringhelpTarget()Specify the JavaHelp target for this specific panel.voidsetAdapterMemo(EcosSystemConnectionMemo memo)voidsetManager(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 voidsetTitle()Include the correct title.(package private) voidshowMonitorChanged()protected javax.swing.JButtonstopButton()Create a JButton to edit a turnout operation.(package private) voidstopLoco(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:
actionPerformedin interfacejava.awt.event.ActionListener- Overrides:
actionPerformedin classAbstractTableAction<NamedBean>
-
setManager
public void setManager(Manager<NamedBean> man)
Description copied from class:AbstractTableActionIf the subClass is being included in a greater tabbed frame, then this is used to specify which manager the subclass should be using.- Overrides:
setManagerin 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:AbstractTableActionCreate the JTable DataModel, along with the changes for the specific NamedBean type.- Specified by:
createModelin 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:AbstractTableActionInclude the correct title.- Specified by:
setTitlein classAbstractTableAction<NamedBean>
-
helpTarget
protected java.lang.String helpTarget()
Description copied from class:AbstractTableActionSpecify the JavaHelp target for this specific panel.- Overrides:
helpTargetin 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:
addPressedin classAbstractTableAction<NamedBean>
-
getClassName
protected java.lang.String getClassName()
- Specified by:
getClassNamein classAbstractTableAction<NamedBean>
-
-