Package jmri.jmrit.beantable
Class SignalMastLogicTableAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.jmrit.beantable.AbstractTableAction<SignalMastLogic>
-
- jmri.jmrit.beantable.SignalMastLogicTableAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
public class SignalMastLogicTableAction extends AbstractTableAction<SignalMastLogic>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jmri.jmrit.beantable.AbstractTableAction
AbstractTableAction.TableItem<E extends NamedBean>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.beans.PropertyChangeListener
propertyGenerateListener
(package private) JmriJFrame
signalMastLogicFrame
(package private) javax.swing.JLabel
sourceLabel
-
Fields inherited from class jmri.jmrit.beantable.AbstractTableAction
f, includeAddButton, m
-
-
Constructor Summary
Constructors Constructor Description SignalMastLogicTableAction()
SignalMastLogicTableAction(java.lang.String s)
Create an action with a specific title.
-
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)
(package private) void
autoCreatePairs(JmriJFrame f)
protected void
createModel()
Create the JTable DataModel, along with the changes for the specific NamedBean type.protected java.lang.String
getClassName()
protected java.lang.String
helpTarget()
Specify the JavaHelp target for this specific panel.void
setMenuBar(BeanTableFrame<SignalMastLogic> f)
Insert a table specific Tools menu.protected void
setTitle()
Include the correct title.-
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, setManager, setMessagePreferencesDetails
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
signalMastLogicFrame
JmriJFrame signalMastLogicFrame
-
sourceLabel
javax.swing.JLabel sourceLabel
-
propertyGenerateListener
protected transient java.beans.PropertyChangeListener propertyGenerateListener
-
-
Constructor Detail
-
SignalMastLogicTableAction
public SignalMastLogicTableAction(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
- title of the action
-
SignalMastLogicTableAction
public SignalMastLogicTableAction()
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
- Overrides:
actionPerformed
in classAbstractTableAction<SignalMastLogic>
-
setMenuBar
public void setMenuBar(BeanTableFrame<SignalMastLogic> f)
Insert a table specific Tools menu. Account for the Window and Help menus, which are already added to the menu bar as part of the creation of the JFrame, by adding the Tools menu 2 places earlier unless the table is part of the ListedTableFrame, that adds the Help menu later on.- Overrides:
setMenuBar
in classAbstractTableAction<SignalMastLogic>
- Parameters:
f
- the JFrame of this table
-
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<SignalMastLogic>
-
setTitle
protected void setTitle()
Description copied from class:AbstractTableAction
Include the correct title.- Specified by:
setTitle
in classAbstractTableAction<SignalMastLogic>
-
helpTarget
protected java.lang.String helpTarget()
Description copied from class:AbstractTableAction
Specify the JavaHelp target for this specific panel.- Overrides:
helpTarget
in classAbstractTableAction<SignalMastLogic>
- 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<SignalMastLogic>
-
autoCreatePairs
void autoCreatePairs(JmriJFrame f)
-
getClassName
protected java.lang.String getClassName()
- Specified by:
getClassName
in classAbstractTableAction<SignalMastLogic>
-
-