jmri.jmrit.beantable
Class LRouteTableAction

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

public class LRouteTableAction
extends AbstractTableAction

Swing action to create and register groups of Logix Condtionals to perform a railroad control task.

Author:
Pete Cressman Copyright (C) 2009
See Also:
Serialized Form

Nested Class Summary
 class LRouteTableAction.ComboBoxCellEditor
           
static class LRouteTableAction.RouteElementComparator
          Sorts RouteElement
 class LRouteTableAction.RouteElementModel
          Base Table model for selecting Route elements
 
Field Summary
static int ALL_TYPE
           
static int CLEAR_SIGNAL_HELD
           
static String CONDITIONAL_SYS_PREFIX
           
static int CONDITIONAL_TYPE
           
static String CONDITIONAL_USER_PREFIX
           
static int LIGHT_TYPE
           
static String LOGIX_INITIALIZER
           
static String LOGIX_SYS_NAME
           
static int OFFSET
           
static int SENSOR_TYPE
           
static int SET_SIGNAL_DARK
           
static int SET_SIGNAL_HELD
           
static int SET_SIGNAL_LIT
           
static int SIGNAL_TYPE
           
static int TURNOUT_TYPE
           
static int VETO
           
 
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
LRouteTableAction()
           
LRouteTableAction(String s)
          Create an action with a specific title.
 
Method Summary
protected  void addPressed(ActionEvent e)
           
protected  void createModel()
          Create the JTable DataModel, along with the changes for the specific case of Road Condtionals
 String getClassDescription()
           
protected  String getClassName()
           
protected  String helpTarget()
          Specify the JavaHelp target for this specific panel
 void setMessagePreferencesDetails()
           
protected  void setTitle()
          Include the correct title
 
Methods inherited from class jmri.jmrit.beantable.AbstractTableAction
actionPerformed, addToFrame, addToPanel, dispose, getPanel, getTableDataModel, makeJTable, print, setFrame, setManager, setMenuBar
 
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

LOGIX_SYS_NAME

public static final String LOGIX_SYS_NAME
See Also:
Constant Field Values

LOGIX_INITIALIZER

public static final String LOGIX_INITIALIZER
See Also:
Constant Field Values

CONDITIONAL_SYS_PREFIX

public static final String CONDITIONAL_SYS_PREFIX
See Also:
Constant Field Values

CONDITIONAL_USER_PREFIX

public static final String CONDITIONAL_USER_PREFIX
See Also:
Constant Field Values

SENSOR_TYPE

public static final int SENSOR_TYPE
See Also:
Constant Field Values

TURNOUT_TYPE

public static final int TURNOUT_TYPE
See Also:
Constant Field Values

LIGHT_TYPE

public static final int LIGHT_TYPE
See Also:
Constant Field Values

SIGNAL_TYPE

public static final int SIGNAL_TYPE
See Also:
Constant Field Values

CONDITIONAL_TYPE

public static final int CONDITIONAL_TYPE
See Also:
Constant Field Values

ALL_TYPE

public static final int ALL_TYPE
See Also:
Constant Field Values

VETO

public static final int VETO
See Also:
Constant Field Values

OFFSET

public static final int OFFSET
See Also:
Constant Field Values

SET_SIGNAL_HELD

public static final int SET_SIGNAL_HELD
See Also:
Constant Field Values

CLEAR_SIGNAL_HELD

public static final int CLEAR_SIGNAL_HELD
See Also:
Constant Field Values

SET_SIGNAL_DARK

public static final int SET_SIGNAL_DARK
See Also:
Constant Field Values

SET_SIGNAL_LIT

public static final int SET_SIGNAL_LIT
See Also:
Constant Field Values
Constructor Detail

LRouteTableAction

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

LRouteTableAction

public LRouteTableAction()
Method Detail

createModel

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

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

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