Package jmri.jmrit.beantable
Class LRouteTableAction
- java.lang.Object
 - 
- javax.swing.AbstractAction
 - 
- jmri.jmrit.beantable.AbstractTableAction<Logix>
 - 
- jmri.jmrit.beantable.LRouteTableAction
 
 
 
 
- 
- All Implemented Interfaces:
 java.awt.event.ActionListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action
public class LRouteTableAction extends AbstractTableAction<Logix>
Swing action to create and register groups of Logix Condtionals to perform a railroad control task.- See Also:
 - Serialized Form
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classLRouteTableAction.AlignElement(package private) classLRouteTableAction.LBeanTableDataModel(package private) static classLRouteTableAction.RouteElementBase class for all the output (ConditionalAction) and input (ConditionalVariable) elementsstatic classLRouteTableAction.RouteElementComparatorSorts RouteElement(package private) classLRouteTableAction.RouteElementModelBase Table model for selecting Route elements(package private) classLRouteTableAction.RouteInputElement(package private) classLRouteTableAction.RouteOutputElement- 
Nested classes/interfaces inherited from class jmri.jmrit.beantable.AbstractTableAction
AbstractTableAction.TableItem<E extends NamedBean> 
 - 
 
- 
Field Summary
Fields Modifier and Type Field Description (package private) JmriJFrame_addFrame(package private) java.util.ArrayList<LRouteTableAction.AlignElement>_alignList(package private) java.util.ArrayList<LRouteTableAction.RouteInputElement>_inputList(package private) java.util.ArrayList<LRouteTableAction.RouteOutputElement>_outputListstatic intALL_TYPEstatic intCLEAR_SIGNAL_HELDstatic intCONDITIONAL_TYPEstatic java.lang.StringCONDITIONAL_USER_PREFIXstatic intLIGHT_TYPEstatic intOFFSET(package private) static java.util.ResourceBundlerbxstatic intSENSOR_TYPEstatic intSET_SIGNAL_DARKstatic intSET_SIGNAL_HELDstatic intSET_SIGNAL_LITstatic intSIGNAL_TYPEstatic intTURNOUT_TYPEstatic intVETO- 
Fields inherited from class jmri.jmrit.beantable.AbstractTableAction
f, includeAddButton, m 
 - 
 
- 
Constructor Summary
Constructors Constructor Description LRouteTableAction()LRouteTableAction(java.lang.String s)Create an action with a specific title. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddPressed(java.awt.event.ActionEvent e)(package private) voidbuildLists()protected voidcreateModel()Create the JTable DataModel, along with the changes for the specific case of Road Conditionals.(package private) voidcreatePressed(java.awt.event.ActionEvent e)Responds to the Add Route button.(package private) voideditPressed(java.lang.String sName)Edit button in Logix Route table pressed.java.lang.StringgetClassDescription()protected java.lang.StringgetClassName()(package private) voidgetControlsAndActions(java.lang.String cSysName)Extract the Control (input) and Action (output) elements and their states.static java.lang.StringgetLogixInitializer()(package private) chargetRouteConditionalType(java.lang.String logixSysName, java.lang.String cSysName)Get the type letter from the possible LRoute conditional.protected java.lang.StringhelpTarget()Specify the JavaHelp target for this specific panel.voidsetMessagePreferencesDetails()protected voidsetTitle()Include the correct title.(package private) voidsetupEdit(java.awt.event.ActionEvent e)Interprets the conditionals from the Logix that was selected for editing and attempts to reconstruct the window entries.- 
Methods inherited from class jmri.jmrit.beantable.AbstractTableAction
actionPerformed, addBottomButtons, addToFrame, addToFrame, addToPanel, columnsVisibleUpdated, configureManagerComboBox, configureTable, displayHwError, dispose, getDataModel, getFrame, getManager, getPanel, getTableDataModel, includeAddButton, nextName, print, removePrefixBoxListener, setFrame, setManager, setMenuBar 
- 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled 
 - 
 
 - 
 
- 
- 
Field Detail
- 
rbx
static final java.util.ResourceBundle rbx
 
- 
_addFrame
JmriJFrame _addFrame
 
- 
_inputList
java.util.ArrayList<LRouteTableAction.RouteInputElement> _inputList
 
- 
_outputList
java.util.ArrayList<LRouteTableAction.RouteOutputElement> _outputList
 
- 
_alignList
java.util.ArrayList<LRouteTableAction.AlignElement> _alignList
 
- 
CONDITIONAL_USER_PREFIX
public static final java.lang.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(java.lang.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- title of the action
 
- 
LRouteTableAction
public LRouteTableAction()
 
 - 
 
- 
Method Detail
- 
createModel
protected void createModel()
Create the JTable DataModel, along with the changes for the specific case of Road Conditionals.- Specified by:
 createModelin classAbstractTableAction<Logix>
 
- 
setTitle
protected void setTitle()
Description copied from class:AbstractTableActionInclude the correct title.- Specified by:
 setTitlein classAbstractTableAction<Logix>
 
- 
helpTarget
protected java.lang.String helpTarget()
Description copied from class:AbstractTableActionSpecify the JavaHelp target for this specific panel.- Overrides:
 helpTargetin classAbstractTableAction<Logix>- Returns:
 - a fixed default string "index" pointing to to highest level in JMRI Help
 
 
- 
buildLists
void buildLists()
 
- 
editPressed
void editPressed(java.lang.String sName)
Edit button in Logix Route table pressed.- Parameters:
 sName- system name of Logix to edit
 
- 
setupEdit
void setupEdit(java.awt.event.ActionEvent e)
Interprets the conditionals from the Logix that was selected for editing and attempts to reconstruct the window entries.- Parameters:
 e- the action event
 
- 
getRouteConditionalType
char getRouteConditionalType(java.lang.String logixSysName, java.lang.String cSysName)
Get the type letter from the possible LRoute conditional.- Parameters:
 logixSysName- logix system namecSysName- conditional system name- Returns:
 - the type letter
 
 
- 
getControlsAndActions
void getControlsAndActions(java.lang.String cSysName)
Extract the Control (input) and Action (output) elements and their states.- Parameters:
 cSysName- the conditional system name
 
- 
addPressed
protected void addPressed(java.awt.event.ActionEvent e)
- Specified by:
 addPressedin classAbstractTableAction<Logix>
 
- 
createPressed
void createPressed(java.awt.event.ActionEvent e)
Responds to the Add Route button.- Parameters:
 e- the action event
 
- 
getLogixInitializer
public static java.lang.String getLogixInitializer()
 
- 
setMessagePreferencesDetails
public void setMessagePreferencesDetails()
- Overrides:
 setMessagePreferencesDetailsin classAbstractTableAction<Logix>
 
- 
getClassName
protected java.lang.String getClassName()
- Specified by:
 getClassNamein classAbstractTableAction<Logix>
 
- 
getClassDescription
public java.lang.String getClassDescription()
- Overrides:
 getClassDescriptionin classAbstractTableAction<Logix>
 
 - 
 
 -