jmri.jmrit.beantable
Class BlockTableAction

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

public class BlockTableAction
extends AbstractTableAction

Swing action to create and register a BlockTable GUI.

See Also:
Serialized Form

Field Summary
(package private)  JCheckBox _autoSystemName
           
(package private)  JmriJFrame addFrame
           
(package private)  JTextField blockSpeed
           
(package private)  JCheckBox centimeterBox
           
(package private)  JCheckBox checkPerm
           
(package private)  JComboBox cur
           
(package private)  String defaultBlockSpeedText
           
(package private)  JCheckBox inchBox
           
(package private)  JTextField lengthField
           
(package private) static org.slf4j.Logger log
           
(package private)  JTextField numberToAdd
           
(package private)  UserPreferencesManager pref
           
(package private)  JCheckBox range
           
(package private)  JComboBox speeds
           
(package private)  JTextField sysName
           
(package private)  JLabel sysNameLabel
           
(package private)  String systemNameAuto
           
(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
BlockTableAction()
           
BlockTableAction(String actionName)
          Create an action with a specific title.
 
Method Summary
(package private)  JPanel additionalAddOption()
           
protected  void addPressed(ActionEvent e)
           
 void addToFrame(BeanTableFrame f)
          Add the checkboxes
protected  void createModel()
          Create the JTable DataModel, along with the changes for the specific case of Block objects
(package private)  void deletePaths(JmriJFrame f)
           
 void dispose()
           
(package private)  void editButton(Block b)
           
 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 setDefaultSpeeds(JFrame _who)
           
 void setMenuBar(BeanTableFrame f)
          Allow subclasses to add alter the frames Menubar without have to actually subclass the BeanTableDataFrame
protected  void setTitle()
          Include the correct title
(package private)  boolean validateNumericalInput(String text)
           
 
Methods inherited from class jmri.jmrit.beantable.AbstractTableAction
actionPerformed, addToPanel, getPanel, getTableDataModel, includeAddButton, print, setFrame, setManager, 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

defaultBlockSpeedText

String defaultBlockSpeedText

inchBox

JCheckBox inchBox

centimeterBox

JCheckBox centimeterBox

addFrame

JmriJFrame addFrame

sysName

JTextField sysName

userName

JTextField userName

sysNameLabel

JLabel sysNameLabel

userNameLabel

JLabel userNameLabel

cur

JComboBox cur

lengthField

JTextField lengthField

blockSpeed

JTextField blockSpeed

checkPerm

JCheckBox checkPerm

numberToAdd

JTextField numberToAdd

range

JCheckBox range

_autoSystemName

JCheckBox _autoSystemName

pref

UserPreferencesManager pref

speeds

JComboBox speeds

systemNameAuto

String systemNameAuto

log

static final org.slf4j.Logger log
Constructor Detail

BlockTableAction

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

BlockTableAction

public BlockTableAction()
Method Detail

createModel

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

Specified by:
createModel in class AbstractTableAction

editButton

void editButton(Block b)

setTitle

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

Specified by:
setTitle in class AbstractTableAction

addToFrame

public void addToFrame(BeanTableFrame f)
Add the checkboxes

Overrides:
addToFrame in class AbstractTableAction

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

setDefaultSpeeds

protected void setDefaultSpeeds(JFrame _who)

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

additionalAddOption

JPanel additionalAddOption()

validateNumericalInput

boolean validateNumericalInput(String text)

okPressed

void okPressed(ActionEvent e)

handleCreateException

void handleCreateException(String sysName)

deletePaths

void deletePaths(JmriJFrame f)

dispose

public void dispose()
Overrides:
dispose in class AbstractTableAction

getClassDescription

public String getClassDescription()
Overrides:
getClassDescription in class AbstractTableAction

getClassName

protected String getClassName()
Specified by:
getClassName 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