Package jmri.jmrit.beantable
Class ReporterTableAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.jmrit.beantable.AbstractTableAction<Reporter>
-
- jmri.jmrit.beantable.ReporterTableAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action
public class ReporterTableAction extends AbstractTableAction<Reporter>
Swing action to create and register a ReporterTable 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 protected ReporterManagerreporterManager-
Fields inherited from class jmri.jmrit.beantable.AbstractTableAction
f, includeAddButton, m
-
-
Constructor Summary
Constructors Constructor Description ReporterTableAction()ReporterTableAction(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)(package private) voidcancelPressed(java.awt.event.ActionEvent e)protected voidcreateModel()Create the JTable DataModel, along with the changes for the specific case of Reporters.(package private) voidcreatePressed(java.awt.event.ActionEvent e)Respond to Create new item button pressed on Add Reporter pane.java.lang.StringgetClassDescription()protected java.lang.StringgetClassName()(package private) voidhandleCreateException(java.lang.Exception ex, java.lang.String sysName)protected java.lang.StringhelpTarget()Specify the JavaHelp target for this specific panel.voidsetManager(Manager<Reporter> 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.voidsetMessagePreferencesDetails()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, setMenuBar
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
reporterManager
protected ReporterManager reporterManager
-
-
Constructor Detail
-
ReporterTableAction
public ReporterTableAction(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
-
ReporterTableAction
public ReporterTableAction()
-
-
Method Detail
-
setManager
public void setManager(@Nonnull Manager<Reporter> 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.- Overrides:
setManagerin classAbstractTableAction<Reporter>- Parameters:
man- Manager for this table tab
-
createModel
protected void createModel()
Create the JTable DataModel, along with the changes for the specific case of Reporters.- Specified by:
createModelin classAbstractTableAction<Reporter>
-
setTitle
protected void setTitle()
Include the correct title.- Specified by:
setTitlein classAbstractTableAction<Reporter>
-
helpTarget
protected java.lang.String helpTarget()
Specify the JavaHelp target for this specific panel.- Overrides:
helpTargetin classAbstractTableAction<Reporter>- 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<Reporter>
-
cancelPressed
void cancelPressed(java.awt.event.ActionEvent e)
-
createPressed
void createPressed(java.awt.event.ActionEvent e)
Respond to Create new item button pressed on Add Reporter pane.- Parameters:
e- the click event
-
handleCreateException
void handleCreateException(java.lang.Exception ex, java.lang.String sysName)
-
getClassName
protected java.lang.String getClassName()
- Specified by:
getClassNamein classAbstractTableAction<Reporter>
-
getClassDescription
public java.lang.String getClassDescription()
- Overrides:
getClassDescriptionin classAbstractTableAction<Reporter>
-
setMessagePreferencesDetails
public void setMessagePreferencesDetails()
- Overrides:
setMessagePreferencesDetailsin classAbstractTableAction<Reporter>
-
-