Package jmri.jmrit.beantable
Class TransitTableAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.jmrit.beantable.AbstractTableAction<Transit>
-
- jmri.jmrit.beantable.TransitTableAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
public class TransitTableAction extends AbstractTableAction<Transit>
Swing action to create and register a TransitTable GUI.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
TransitTableAction.SectionTableModel
Table model for Sections in Create/Edit Transit window.class
TransitTableAction.SpecialActionTableModel
Table model for Actions in Special Actions window.-
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) javax.swing.JCheckBox
_autoSystemName
(package private) javax.swing.JButton
addAlternateForSequence
(package private) javax.swing.JButton
addAlternateSection
(package private) javax.swing.JCheckBox
addAsSafe
(package private) JmriJFrame
addFrame
(package private) javax.swing.JButton
addNextSection
(package private) javax.swing.JComboBox<java.lang.String>
alternateSectionBox
(package private) javax.swing.JButton
create
(package private) javax.swing.JButton
deleteAlternateForSequence
(package private) javax.swing.JButton
deleteSections
(package private) javax.swing.JButton
insertAtBeginning
(package private) javax.swing.JComboBox<java.lang.String>
insertAtBeginningBox
(package private) UserPreferencesManager
pref
(package private) javax.swing.JComboBox<java.lang.String>
primarySectionBox
(package private) static java.util.ResourceBundle
rbx
(package private) javax.swing.JButton
removeFirstSection
(package private) javax.swing.JButton
removeLastSection
(package private) javax.swing.JButton
replacePrimaryForSequence
(package private) javax.swing.JSpinner
seqNum
(package private) javax.swing.JLabel
seqNumLabel
(package private) javax.swing.JComboBox<java.lang.String>
stopAllocatingSensorBox
(package private) javax.swing.JTextField
sysName
(package private) javax.swing.JLabel
sysNameFixed
(package private) javax.swing.JLabel
sysNameLabel
(package private) java.lang.String
systemNameAuto
(package private) javax.swing.JButton
update
(package private) javax.swing.JTextField
userName
(package private) javax.swing.JLabel
userNameLabel
-
Fields inherited from class jmri.jmrit.beantable.AbstractTableAction
f, includeAddButton, m
-
-
Constructor Summary
Constructors Constructor Description TransitTableAction()
TransitTableAction(java.lang.String actionName)
Create an action with a specific title.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
addAlternateForSeqPressed(java.awt.event.ActionEvent e)
(package private) void
addAlternateSectionPressed(java.awt.event.ActionEvent e)
(package private) void
addEditPressed()
(package private) void
addNextSectionPressed(java.awt.event.ActionEvent e)
protected void
addPressed(java.awt.event.ActionEvent e)
Responds to the Add...button and the Edit buttons in Transit Table.(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 Transit objects.(package private) void
createPressed(java.awt.event.ActionEvent e)
(package private) void
deleteAlternateForSeqPressed(java.awt.event.ActionEvent e)
(package private) void
duplicatePressed(java.lang.String sName)
(package private) void
editPressed(java.lang.String sName)
java.lang.String
getClassDescription()
protected java.lang.String
getClassName()
(package private) int
getSeqNum()
protected java.lang.String
helpTarget()
Specify the JavaHelp target for this specific panel.(package private) boolean
inSectionList(Section s, java.util.List<Section> sList)
(package private) void
insertAtBeginningPressed(java.awt.event.ActionEvent e)
(package private) void
removeFirstSectionPressed(java.awt.event.ActionEvent e)
(package private) void
removeLastSectionPressed(java.awt.event.ActionEvent e)
(package private) void
replacePrimaryForSeqPressed(java.awt.event.ActionEvent e)
protected void
setTitle()
Include the correct title.(package private) void
updatePressed(java.awt.event.ActionEvent e)
(package private) void
updateSeqNum()
After any add, delete etc the section sequence numbers need to be rebuilt.-
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, setMessagePreferencesDetails
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
rbx
static final java.util.ResourceBundle rbx
-
addFrame
JmriJFrame addFrame
-
sysName
javax.swing.JTextField sysName
-
sysNameFixed
javax.swing.JLabel sysNameFixed
-
userName
javax.swing.JTextField userName
-
sysNameLabel
javax.swing.JLabel sysNameLabel
-
userNameLabel
javax.swing.JLabel userNameLabel
-
create
javax.swing.JButton create
-
update
javax.swing.JButton update
-
deleteSections
javax.swing.JButton deleteSections
-
primarySectionBox
javax.swing.JComboBox<java.lang.String> primarySectionBox
-
addNextSection
javax.swing.JButton addNextSection
-
addAsSafe
javax.swing.JCheckBox addAsSafe
-
stopAllocatingSensorBox
javax.swing.JComboBox<java.lang.String> stopAllocatingSensorBox
-
removeLastSection
javax.swing.JButton removeLastSection
-
removeFirstSection
javax.swing.JButton removeFirstSection
-
insertAtBeginning
javax.swing.JButton insertAtBeginning
-
insertAtBeginningBox
javax.swing.JComboBox<java.lang.String> insertAtBeginningBox
-
seqNumLabel
javax.swing.JLabel seqNumLabel
-
seqNum
javax.swing.JSpinner seqNum
-
replacePrimaryForSequence
javax.swing.JButton replacePrimaryForSequence
-
deleteAlternateForSequence
javax.swing.JButton deleteAlternateForSequence
-
addAlternateForSequence
javax.swing.JButton addAlternateForSequence
-
alternateSectionBox
javax.swing.JComboBox<java.lang.String> alternateSectionBox
-
addAlternateSection
javax.swing.JButton addAlternateSection
-
_autoSystemName
javax.swing.JCheckBox _autoSystemName
-
systemNameAuto
java.lang.String systemNameAuto
-
-
Constructor Detail
-
TransitTableAction
public TransitTableAction(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
- action title
-
TransitTableAction
public TransitTableAction()
-
-
Method Detail
-
createModel
protected void createModel()
Create the JTable DataModel, along with the changes for the specific case of Transit objects.- Specified by:
createModel
in classAbstractTableAction<Transit>
-
setTitle
protected void setTitle()
Description copied from class:AbstractTableAction
Include the correct title.- Specified by:
setTitle
in classAbstractTableAction<Transit>
-
helpTarget
protected java.lang.String helpTarget()
Description copied from class:AbstractTableAction
Specify the JavaHelp target for this specific panel.- Overrides:
helpTarget
in classAbstractTableAction<Transit>
- Returns:
- a fixed default string "index" pointing to to highest level in JMRI Help
-
addPressed
protected void addPressed(java.awt.event.ActionEvent e)
Responds to the Add...button and the Edit buttons in Transit Table.- Specified by:
addPressed
in classAbstractTableAction<Transit>
- Parameters:
e
- Event causing method call.
-
editPressed
void editPressed(java.lang.String sName)
-
duplicatePressed
void duplicatePressed(java.lang.String sName)
-
addEditPressed
void addEditPressed()
-
addNextSectionPressed
void addNextSectionPressed(java.awt.event.ActionEvent e)
-
removeLastSectionPressed
void removeLastSectionPressed(java.awt.event.ActionEvent e)
-
insertAtBeginningPressed
void insertAtBeginningPressed(java.awt.event.ActionEvent e)
-
removeFirstSectionPressed
void removeFirstSectionPressed(java.awt.event.ActionEvent e)
-
replacePrimaryForSeqPressed
void replacePrimaryForSeqPressed(java.awt.event.ActionEvent e)
-
inSectionList
boolean inSectionList(Section s, java.util.List<Section> sList)
-
getSeqNum
int getSeqNum()
-
updateSeqNum
void updateSeqNum()
After any add, delete etc the section sequence numbers need to be rebuilt. After which we update sequence Number spinner on pane. Limit spinner to highest sequence index in section table (column 0).
-
deleteAlternateForSeqPressed
void deleteAlternateForSeqPressed(java.awt.event.ActionEvent e)
-
addAlternateForSeqPressed
void addAlternateForSeqPressed(java.awt.event.ActionEvent e)
-
addAlternateSectionPressed
void addAlternateSectionPressed(java.awt.event.ActionEvent e)
-
createPressed
void createPressed(java.awt.event.ActionEvent e)
-
cancelPressed
void cancelPressed(java.awt.event.ActionEvent e)
-
updatePressed
void updatePressed(java.awt.event.ActionEvent e)
-
getClassName
protected java.lang.String getClassName()
- Specified by:
getClassName
in classAbstractTableAction<Transit>
-
getClassDescription
public java.lang.String getClassDescription()
- Overrides:
getClassDescription
in classAbstractTableAction<Transit>
-
-