Package jmri.jmrit.beantable
Class MemoryTableAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.jmrit.beantable.AbstractTableAction<Memory>
-
- jmri.jmrit.beantable.MemoryTableAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
public class MemoryTableAction extends AbstractTableAction<Memory>
Swing action to create and register a MemoryTable 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) JmriJFrame
addFrame
(package private) javax.swing.JCheckBox
autoSystemNameBox
(package private) javax.swing.JSpinner
numberToAddSpinner
(package private) UserPreferencesManager
p
(package private) javax.swing.JCheckBox
rangeBox
(package private) javax.swing.SpinnerNumberModel
rangeSpinner
(package private) javax.swing.JLabel
statusBarLabel
(package private) javax.swing.JTextField
sysNameField
(package private) javax.swing.JLabel
sysNameLabel
(package private) java.lang.String
systemNameAuto
(package private) javax.swing.JTextField
userNameField
(package private) javax.swing.JLabel
userNameLabel
-
Fields inherited from class jmri.jmrit.beantable.AbstractTableAction
f, includeAddButton, m
-
-
Constructor Summary
Constructors Constructor Description MemoryTableAction()
MemoryTableAction(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 void
addPressed(java.awt.event.ActionEvent e)
(package private) void
cancelPressed(java.awt.event.ActionEvent e)
protected void
createModel()
Create the JTable DataModel, along with the changes for the specific case of Memory objectsjava.lang.String
getClassDescription()
protected java.lang.String
getClassName()
(package private) void
handleCreateException(java.lang.String sysName)
protected java.lang.String
helpTarget()
Specify the JavaHelp target for this specific panel.(package private) void
okPressed(java.awt.event.ActionEvent e)
void
setMessagePreferencesDetails()
protected void
setTitle()
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, setMenuBar
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
addFrame
JmriJFrame addFrame
-
sysNameField
javax.swing.JTextField sysNameField
-
userNameField
javax.swing.JTextField userNameField
-
sysNameLabel
javax.swing.JLabel sysNameLabel
-
userNameLabel
javax.swing.JLabel userNameLabel
-
rangeSpinner
javax.swing.SpinnerNumberModel rangeSpinner
-
numberToAddSpinner
javax.swing.JSpinner numberToAddSpinner
-
rangeBox
javax.swing.JCheckBox rangeBox
-
autoSystemNameBox
javax.swing.JCheckBox autoSystemNameBox
-
statusBarLabel
javax.swing.JLabel statusBarLabel
-
systemNameAuto
java.lang.String systemNameAuto
-
-
Constructor Detail
-
MemoryTableAction
public MemoryTableAction(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
-
MemoryTableAction
public MemoryTableAction()
-
-
Method Detail
-
createModel
protected void createModel()
Create the JTable DataModel, along with the changes for the specific case of Memory objects- Specified by:
createModel
in classAbstractTableAction<Memory>
-
setTitle
protected void setTitle()
Include the correct title.- Specified by:
setTitle
in classAbstractTableAction<Memory>
-
helpTarget
protected java.lang.String helpTarget()
Specify the JavaHelp target for this specific panel.- Overrides:
helpTarget
in classAbstractTableAction<Memory>
- 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<Memory>
-
cancelPressed
void cancelPressed(java.awt.event.ActionEvent e)
-
okPressed
void okPressed(java.awt.event.ActionEvent e)
-
handleCreateException
void handleCreateException(java.lang.String sysName)
-
getClassDescription
public java.lang.String getClassDescription()
- Overrides:
getClassDescription
in classAbstractTableAction<Memory>
-
setMessagePreferencesDetails
public void setMessagePreferencesDetails()
- Overrides:
setMessagePreferencesDetails
in classAbstractTableAction<Memory>
-
getClassName
protected java.lang.String getClassName()
- Specified by:
getClassName
in classAbstractTableAction<Memory>
-
-