jmri.jmrit.beantable
Class TransitTableAction

Show UML class diagram
java.lang.Object
  extended by javax.swing.AbstractAction
      extended by jmri.jmrit.beantable.AbstractTableAction
          extended by jmri.jmrit.beantable.TransitTableAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public class TransitTableAction
extends AbstractTableAction

Swing action to create and register a TransitTable GUI.

See Also:
Serialized Form

Nested Class Summary
 class TransitTableAction.SectionTableModel
          Table model for Sections in Create/Edit Transit window
 class TransitTableAction.SpecialActionTableModel
          Table model for Actions in Special Actions window
 
Field Summary
(package private)  JCheckBox _autoSystemName
           
(package private)  JButton addAlternateForSequence
           
(package private)  JButton addAlternateSection
           
(package private)  JmriJFrame addFrame
           
(package private)  JButton addNextSection
           
(package private)  JComboBox alternateSectionBox
           
(package private)  JButton create
           
(package private)  JButton deleteAlternateForSequence
           
(package private)  JButton deleteSections
           
(package private)  JButton insertAtBeginning
           
(package private)  JComboBox insertAtBeginningBox
           
(package private) static org.slf4j.Logger log
           
(package private)  UserPreferencesManager pref
           
(package private)  JComboBox primarySectionBox
           
(package private) static ResourceBundle rbx
           
(package private)  JButton removeFirstSection
           
(package private)  JButton removeLastSection
           
(package private)  JButton replacePrimaryForSequence
           
(package private)  JTextField seqNum
           
(package private)  JLabel seqNumLabel
           
(package private)  JTextField sysName
           
(package private)  JLabel sysNameFixed
           
(package private)  JLabel sysNameLabel
           
(package private)  String systemNameAuto
           
(package private)  JButton update
           
(package private)  JTextField userName
           
(package private)  JLabel userNameLabel
           
 
Fields inherited from class jmri.jmrit.beantable.AbstractTableAction
f, includeAddButton, m, rb, rbean
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
TransitTableAction()
           
TransitTableAction(String actionName)
          Create an action with a specific title.
 
Method Summary
(package private)  void addAlternateForSeqPressed(ActionEvent e)
           
(package private)  void addAlternateSectionPressed(ActionEvent e)
           
(package private)  void addEditPressed()
           
(package private)  void addNextSectionPressed(ActionEvent e)
           
protected  void addPressed(ActionEvent e)
          Responds to the Add... button and the Edit buttons in Transit Table
(package private)  void cancelPressed(ActionEvent e)
           
protected  void createModel()
          Create the JTable DataModel, along with the changes for the specific case of Transit objects
(package private)  void createPressed(ActionEvent e)
           
(package private)  void deleteAlternateForSeqPressed(ActionEvent e)
           
(package private)  void duplicatePressed(String sName)
           
(package private)  void editPressed(String sName)
           
 String getClassDescription()
           
protected  String getClassName()
           
(package private)  int getSeqNum()
           
protected  String helpTarget()
          Specify the JavaHelp target for this specific panel
(package private)  boolean inSectionList(Section s, ArrayList<Section> sList)
           
(package private)  void insertAtBeginningPressed(ActionEvent e)
           
(package private)  void removeFirstSectionPressed(ActionEvent e)
           
(package private)  void removeLastSectionPressed(ActionEvent e)
           
(package private)  void replacePrimaryForSeqPressed(ActionEvent e)
           
protected  void setTitle()
          Include the correct title
(package private)  void updatePressed(ActionEvent e)
           
 
Methods inherited from class jmri.jmrit.beantable.AbstractTableAction
actionPerformed, addToFrame, addToPanel, dispose, getPanel, getTableDataModel, includeAddButton, print, setFrame, setManager, setMenuBar, setMessagePreferencesDetails
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rbx

static final ResourceBundle rbx

addFrame

JmriJFrame addFrame

sysName

JTextField sysName

sysNameFixed

JLabel sysNameFixed

userName

JTextField userName

sysNameLabel

JLabel sysNameLabel

userNameLabel

JLabel userNameLabel

create

JButton create

update

JButton update

deleteSections

JButton deleteSections

primarySectionBox

JComboBox primarySectionBox

addNextSection

JButton addNextSection

removeLastSection

JButton removeLastSection

removeFirstSection

JButton removeFirstSection

insertAtBeginning

JButton insertAtBeginning

insertAtBeginningBox

JComboBox insertAtBeginningBox

seqNumLabel

JLabel seqNumLabel

seqNum

JTextField seqNum

replacePrimaryForSequence

JButton replacePrimaryForSequence

deleteAlternateForSequence

JButton deleteAlternateForSequence

addAlternateForSequence

JButton addAlternateForSequence

alternateSectionBox

JComboBox alternateSectionBox

addAlternateSection

JButton addAlternateSection

_autoSystemName

JCheckBox _autoSystemName

pref

UserPreferencesManager pref

systemNameAuto

String systemNameAuto

log

static final org.slf4j.Logger log
Constructor Detail

TransitTableAction

public TransitTableAction(String actionName)
Create an action with a specific title.

Parameters:
actionName -

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 class AbstractTableAction

setTitle

protected void setTitle()
Description copied from class: AbstractTableAction
Include the correct title

Specified by:
setTitle in class AbstractTableAction

helpTarget

protected String helpTarget()
Description copied from class: AbstractTableAction
Specify the JavaHelp target for this specific panel

Overrides:
helpTarget in class AbstractTableAction

addPressed

protected void addPressed(ActionEvent e)
Responds to the Add... button and the Edit buttons in Transit Table

Specified by:
addPressed in class AbstractTableAction

editPressed

void editPressed(String sName)

duplicatePressed

void duplicatePressed(String sName)

addEditPressed

void addEditPressed()

addNextSectionPressed

void addNextSectionPressed(ActionEvent e)

removeLastSectionPressed

void removeLastSectionPressed(ActionEvent e)

insertAtBeginningPressed

void insertAtBeginningPressed(ActionEvent e)

removeFirstSectionPressed

void removeFirstSectionPressed(ActionEvent e)

replacePrimaryForSeqPressed

void replacePrimaryForSeqPressed(ActionEvent e)

inSectionList

boolean inSectionList(Section s,
                      ArrayList<Section> sList)

getSeqNum

int getSeqNum()

deleteAlternateForSeqPressed

void deleteAlternateForSeqPressed(ActionEvent e)

addAlternateForSeqPressed

void addAlternateForSeqPressed(ActionEvent e)

addAlternateSectionPressed

void addAlternateSectionPressed(ActionEvent e)

createPressed

void createPressed(ActionEvent e)

cancelPressed

void cancelPressed(ActionEvent e)

updatePressed

void updatePressed(ActionEvent e)

getClassName

protected String getClassName()
Specified by:
getClassName in class AbstractTableAction

getClassDescription

public String getClassDescription()
Overrides:
getClassDescription in class AbstractTableAction


Copyright © 1997-2013 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads