jmri.jmrit.beantable
Class SensorTableAction

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

public class SensorTableAction
extends AbstractTableAction

Swing action to create and register a SensorTable GUI.

See Also:
Serialized Form

Field Summary
(package private)  JmriJFrame addFrame
           
(package private) static org.slf4j.Logger log
           
(package private)  JTextField numberToAdd
           
(package private)  UserPreferencesManager p
           
(package private)  JComboBox prefixBox
           
(package private)  JCheckBox range
           
protected  SensorManager senManager
           
(package private)  JCheckBox showDebounceBox
           
(package private)  JTextField sysName
           
(package private)  JLabel sysNameLabel
           
(package private)  String systemSelectionCombo
           
(package private)  JTextField userName
           
(package private)  String userNameError
           
(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
SensorTableAction()
           
SensorTableAction(String actionName)
          Create an action with a specific title.
 
Method Summary
protected  void addPressed(ActionEvent e)
           
 void addToFrame(BeanTableFrame f)
          Allow subclasses to add to the frame without have to actually subclass the BeanTableDataFrame
 void addToPanel(AbstractTableTabAction f)
          If the subClass is being included in a greater tabbed frame, then this method is used to add the details to the tabbed frame
protected  void createModel()
          Create the JTable DataModel, along with the changes for the specific case of Sensors
 String getClassDescription()
           
protected  String getClassName()
           
(package private)  void handleCreateException(String sysName)
           
protected  String helpTarget()
          Specify the JavaHelp target for this specific panel
(package private)  void okPressed(ActionEvent e)
           
protected  void setDefaultDebounce(JFrame _who)
           
protected  void setDefaultState(JFrame _who)
           
 void setManager(Manager 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.
 void setMenuBar(BeanTableFrame f)
          Allow subclasses to add alter the frames Menubar without have to actually subclass the BeanTableDataFrame
 void setMessagePreferencesDetails()
           
protected  void setTitle()
          Include the correct title
(package private)  void showDebounceChanged()
           
 
Methods inherited from class jmri.jmrit.beantable.AbstractTableAction
actionPerformed, dispose, getPanel, getTableDataModel, includeAddButton, print, setFrame
 
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

senManager

protected SensorManager senManager

addFrame

JmriJFrame addFrame

sysName

JTextField sysName

userName

JTextField userName

prefixBox

JComboBox prefixBox

numberToAdd

JTextField numberToAdd

range

JCheckBox range

sysNameLabel

JLabel sysNameLabel

userNameLabel

JLabel userNameLabel

systemSelectionCombo

String systemSelectionCombo

userNameError

String userNameError

p

UserPreferencesManager p

showDebounceBox

JCheckBox showDebounceBox

log

static final org.slf4j.Logger log
Constructor Detail

SensorTableAction

public SensorTableAction(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 -

SensorTableAction

public SensorTableAction()
Method Detail

setManager

public void setManager(Manager man)
Description copied from class: AbstractTableAction
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:
setManager in class AbstractTableAction

createModel

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

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)
Specified by:
addPressed in class AbstractTableAction

okPressed

void okPressed(ActionEvent e)

handleCreateException

void handleCreateException(String sysName)

setDefaultDebounce

protected void setDefaultDebounce(JFrame _who)

setDefaultState

protected void setDefaultState(JFrame _who)

setMenuBar

public void setMenuBar(BeanTableFrame f)
Description copied from class: AbstractTableAction
Allow subclasses to add alter the frames Menubar without have to actually subclass the BeanTableDataFrame

Overrides:
setMenuBar in class AbstractTableAction

showDebounceChanged

void showDebounceChanged()

addToFrame

public void addToFrame(BeanTableFrame f)
Description copied from class: AbstractTableAction
Allow subclasses to add to the frame without have to actually subclass the BeanTableDataFrame

Overrides:
addToFrame in class AbstractTableAction

addToPanel

public void addToPanel(AbstractTableTabAction f)
Description copied from class: AbstractTableAction
If the subClass is being included in a greater tabbed frame, then this method is used to add the details to the tabbed frame

Overrides:
addToPanel in class AbstractTableAction

setMessagePreferencesDetails

public void setMessagePreferencesDetails()
Overrides:
setMessagePreferencesDetails in class AbstractTableAction

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