jmri.jmrit.beantable
Class SignalHeadTableAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by jmri.jmrit.beantable.AbstractTableAction
          extended by jmri.jmrit.beantable.SignalHeadTableAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public class SignalHeadTableAction
extends AbstractTableAction

Swing action to create and register a SignalHeadTable GUI.

Author:
Bob Jacobsen Copyright (C) 2003,2006,2007, 2008, 2009, Petr Koud'a Copyright (C) 2007
See Also:
Serialized Form

Field Summary
 
Fields inherited from class jmri.jmrit.beantable.AbstractTableAction
f, 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
SignalHeadTableAction()
           
SignalHeadTableAction(String s)
          Create an action with a specific title.
 
Method Summary
protected  void addPressed(ActionEvent e)
          Provide GUI for adding a new SignalHead.
 boolean checkIntegerOnly(String s)
           
protected  void createModel()
          Create the JTable DataModel, along with the changes for the specific case of SignalHeads
 void dispose()
           
 String getClassDescription()
           
protected  String getClassName()
           
protected  Turnout getTurnoutFromPanel(BeanSelectCreatePanel bp, String reference)
           
protected  String helpTarget()
          Specify the JavaHelp target for this specific panel
protected  void setTitle()
          Include the correct title
protected  Turnout updateTurnoutFromPanel(BeanSelectCreatePanel bp, String reference, Turnout oldTurnout, String title)
           
 
Methods inherited from class jmri.jmrit.beantable.AbstractTableAction
actionPerformed, addToFrame, addToPanel, getPanel, getTableDataModel, makeJTable, 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
 

Constructor Detail

SignalHeadTableAction

public SignalHeadTableAction(String s)
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:
s -

SignalHeadTableAction

public SignalHeadTableAction()
Method Detail

createModel

protected void createModel()
Create the JTable DataModel, along with the changes for the specific case of SignalHeads

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)
Provide GUI for adding a new SignalHead.

Because there are multiple options, each of which requires different inputs, we directly manipulate which parts of the GUI are displayed when the selected type is changed.

Specified by:
addPressed in class AbstractTableAction

checkIntegerOnly

public boolean checkIntegerOnly(String s)

dispose

public void dispose()
Overrides:
dispose in class AbstractTableAction

updateTurnoutFromPanel

protected Turnout updateTurnoutFromPanel(BeanSelectCreatePanel bp,
                                         String reference,
                                         Turnout oldTurnout,
                                         String title)

getTurnoutFromPanel

protected Turnout getTurnoutFromPanel(BeanSelectCreatePanel bp,
                                      String reference)

getClassName

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

getClassDescription

public String getClassDescription()
Overrides:
getClassDescription in class AbstractTableAction


Copyright © 1997 - 2011 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