Package jmri.jmrit.beantable
Class LRouteTableAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
Swing action to create and register groups of Logix Condtionals to perform a
railroad control task.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) class(package private) class(package private) static classBase class for all the output (ConditionalAction) and input (ConditionalVariable) elementsstatic classSorts RouteElement(package private) classBase Table model for selecting Route elements(package private) class(package private) classNested classes/interfaces inherited from class jmri.jmrit.beantable.AbstractTableAction
AbstractTableAction.TableItem<E extends NamedBean> -
Field Summary
FieldsModifier and TypeFieldDescription(package private) JmriJFrame(package private) ArrayList<LRouteTableAction.AlignElement>(package private) ArrayList<LRouteTableAction.RouteInputElement>(package private) ArrayList<LRouteTableAction.RouteOutputElement>static final intstatic final intstatic final intstatic final Stringstatic final intstatic final int(package private) static final ResourceBundlestatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class jmri.jmrit.beantable.AbstractTableAction
f, includeAddButton, mFields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields 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
ConstructorsConstructorDescriptionCreate an action with a specific title. -
Method Summary
Modifier and TypeMethodDescriptionprotected void(package private) voidprotected voidCreate the JTable DataModel, along with the changes for the specific case of Road Conditionals.(package private) voidResponds to the Add Route button.(package private) voideditPressed(String sName) Edit button in Logix Route table pressed.protected String(package private) voidgetControlsAndActions(String cSysName) Extract the Control (input) and Action (output) elements and their states.static String(package private) chargetRouteConditionalType(String logixSysName, String cSysName) Get the type letter from the possible LRoute conditional.protected StringSpecify the JavaHelp target for this specific panel.voidprotected voidsetTitle()Include the correct title.(package private) voidInterprets 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, setMenuBarMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
rbx
-
_addFrame
-
_inputList
-
_outputList
-
_alignList
-
CONDITIONAL_USER_PREFIX
- See Also:
-
SENSOR_TYPE
- See Also:
-
TURNOUT_TYPE
- See Also:
-
LIGHT_TYPE
- See Also:
-
SIGNAL_TYPE
- See Also:
-
CONDITIONAL_TYPE
- See Also:
-
ALL_TYPE
- See Also:
-
VETO
- See Also:
-
OFFSET
- See Also:
-
SET_SIGNAL_HELD
- See Also:
-
CLEAR_SIGNAL_HELD
- See Also:
-
SET_SIGNAL_DARK
- See Also:
-
SET_SIGNAL_LIT
- See Also:
-
-
Constructor Details
-
LRouteTableAction
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 Details
-
createModel
Create the JTable DataModel, along with the changes for the specific case of Road Conditionals.- Specified by:
createModelin classAbstractTableAction<Logix>
-
setTitle
Description copied from class:AbstractTableActionInclude the correct title.- Specified by:
setTitlein classAbstractTableAction<Logix>
-
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
Edit button in Logix Route table pressed.- Parameters:
sName- system name of Logix to edit
-
setupEdit
Interprets the conditionals from the Logix that was selected for editing and attempts to reconstruct the window entries.- Parameters:
e- the action event
-
getRouteConditionalType
Get the type letter from the possible LRoute conditional.- Parameters:
logixSysName- logix system namecSysName- conditional system name- Returns:
- the type letter
-
getControlsAndActions
Extract the Control (input) and Action (output) elements and their states.- Parameters:
cSysName- the conditional system name
-
addPressed
- Specified by:
addPressedin classAbstractTableAction<Logix>
-
createPressed
Responds to the Add Route button.- Parameters:
e- the action event
-
getLogixInitializer
-
setMessagePreferencesDetails
- Overrides:
setMessagePreferencesDetailsin classAbstractTableAction<Logix>
-
getClassName
- Specified by:
getClassNamein classAbstractTableAction<Logix>
-
getClassDescription
- Overrides:
getClassDescriptionin classAbstractTableAction<Logix>
-