Package jmri.jmrit.beantable
Class SignalMastTableAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.jmrit.beantable.AbstractTableAction<SignalMast>
-
- jmri.jmrit.beantable.SignalMastTableAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action
public class SignalMastTableAction extends AbstractTableAction<SignalMast>
Swing action to create and register a SignalMastTable GUI.- 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 (package private) AddSignalMastJFrameaddFrame(package private) static intSYSNAMECOL(package private) static intVALUECOL-
Fields inherited from class jmri.jmrit.beantable.AbstractTableAction
f, includeAddButton, m
-
-
Constructor Summary
Constructors Constructor Description SignalMastTableAction()SignalMastTableAction(java.lang.String actionName)Create an action with a specific title.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddPressed(java.awt.event.ActionEvent e)protected voidcreateModel()Create the JTable DataModel, along with the changes for the specific case of Signal Masts.java.lang.StringgetClassDescription()protected java.lang.StringgetClassName()protected java.lang.StringhelpTarget()Specify the JavaHelp target for this specific panel.voidsetMenuBar(BeanTableFrame<SignalMast> f)Insert a table specific Tools menu.protected voidsetTitle()Include the correct title.-
Methods inherited from class jmri.jmrit.beantable.AbstractTableAction
actionPerformed, addBottomButtons, addToFrame, addToFrame, addToPanel, columnsVisibleUpdated, configureManagerComboBox, configureTable, displayHwError, dispose, 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
-
addFrame
AddSignalMastJFrame addFrame
-
VALUECOL
static final int VALUECOL
- See Also:
- Constant Field Values
-
SYSNAMECOL
static final int SYSNAMECOL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SignalMastTableAction
public SignalMastTableAction(java.lang.String actionName)
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:
actionName- title of the action
-
SignalMastTableAction
public SignalMastTableAction()
-
-
Method Detail
-
createModel
protected void createModel()
Create the JTable DataModel, along with the changes for the specific case of Signal Masts.- Specified by:
createModelin classAbstractTableAction<SignalMast>
-
setTitle
protected void setTitle()
Description copied from class:AbstractTableActionInclude the correct title.- Specified by:
setTitlein classAbstractTableAction<SignalMast>
-
helpTarget
protected java.lang.String helpTarget()
Description copied from class:AbstractTableActionSpecify the JavaHelp target for this specific panel.- Overrides:
helpTargetin classAbstractTableAction<SignalMast>- 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<SignalMast>
-
setMenuBar
public void setMenuBar(BeanTableFrame<SignalMast> 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:
setMenuBarin classAbstractTableAction<SignalMast>- Parameters:
f- the JFrame of this table
-
getClassName
protected java.lang.String getClassName()
- Specified by:
getClassNamein classAbstractTableAction<SignalMast>
-
getClassDescription
public java.lang.String getClassDescription()
- Overrides:
getClassDescriptionin classAbstractTableAction<SignalMast>
-
-