Package jmri.jmrit.conditional
Class ConditionalListCopy
- java.lang.Object
-
- jmri.jmrit.conditional.ConditionalEditBase
-
- jmri.jmrit.conditional.ConditionalList
-
- jmri.jmrit.conditional.ConditionalListCopy
-
public class ConditionalListCopy extends ConditionalList
Compare with the other Conditional Edit tool
ConditionalTreeEdit
andConditionalListEdit
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
ConditionalListCopy.ConditionalListModel
-
Nested classes/interfaces inherited from class jmri.jmrit.conditional.ConditionalEditBase
ConditionalEditBase.LogixEventListener, ConditionalEditBase.NameBoxListener, ConditionalEditBase.PickSingleListener, ConditionalEditBase.SelectionMode
-
-
Field Summary
Fields Modifier and Type Field Description (package private) javax.swing.JList<Conditional>
_conditionalList
(package private) ConditionalListCopy.ConditionalListModel
_conditionalListModel
(package private) javax.swing.JRadioButton
_fullEditButton
(package private) Logix
_targetLogix
-
Fields inherited from class jmri.jmrit.conditional.ConditionalList
_conditionalFrame, _curConditional, _newConditional, _oldTargetNames
-
Fields inherited from class jmri.jmrit.conditional.ConditionalEditBase
_conditionalManager, _curLogix, _editLogixFrame, _inEditMode, _logixManager, _pickListener, _pickSingleFrame, _pickTable, _pickTables, _pickTabPane, _selectionMode, _showReminder, _suppressIndirectRef, _suppressReminder, listenerList, logixData
-
-
Constructor Summary
Constructors Constructor Description ConditionalListCopy()
ConditionalListCopy(java.lang.String srcLogixName, Logix targetLogix)
Create a new Conditional List View editor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
closeConditionalFrame()
(package private) void
donePressed(java.awt.event.ActionEvent e)
Respond to the Done button in the Edit Logix window.(package private) void
editButtonPressed()
protected java.lang.String
getClassName()
(package private) javax.swing.JPanel
makeBottomPanel()
Make the bottom panel for _conditionalFrame to hold buttons for Update/Save, Cancel, Delete/FullEdit(package private) void
makeChangeItemNameWindow(Conditional srcCond)
Copy a Conditional, but only change item names(package private) void
makeEditConditionalWindow(Conditional srcCond)
Copy a Conditional, with full editing capabilities.(package private) void
makeEditLogixWindow()
(package private) boolean
updateConditional(java.lang.String uName, Conditional.AntecedentOperator logicType, boolean trigger, java.lang.String antecedent)
Update _curConditional, the current Conditional.(package private) void
updateConditionalTableModel()
-
Methods inherited from class jmri.jmrit.conditional.ConditionalList
closeConditionalFrame, getPickSingleListener, makeNewConditional, updateConditional
-
Methods inherited from class jmri.jmrit.conditional.ConditionalEditBase
addLogixEventListener, appendToAntecedent, bringToFront, checkConditionalReferences, checkConditionalUserName, closeSinglePanelPickList, confirmActionAsVariable, confirmIndirectMemory, createNameBox, createSinglePanelPickList, displayBadNumberReference, findPickListTabPane, fireLogixEvent, formatTime, getLight, hidePickListTable, loadReferenceNames, loadSelectionMode, locateAt, makeAntecedent, messageDuplicateConditionalUserName, messageInvalidActionItemName, messageInvalidSignalHeadAppearance, openPickListTable, parseTime, removeLogixEventListener, setPickListTab, showSaveReminder, translateAntecedent, updateWhereUsed, validateAntecedent, validateAudioReference, validateConditionalReference, validateEntryExitReference, validateIntensity, validateIntensityReference, validateLightReference, validateLogixReference, validateMemoryReference, validateOBlockReference, validateRouteReference, validateSensorReference, validateSignalHeadReference, validateSignalMastReference, validateTime, validateTimeReference, validateTurnoutReference, validateWarrantReference
-
-
-
-
Field Detail
-
_targetLogix
Logix _targetLogix
-
_conditionalListModel
ConditionalListCopy.ConditionalListModel _conditionalListModel
-
_conditionalList
javax.swing.JList<Conditional> _conditionalList
-
_fullEditButton
javax.swing.JRadioButton _fullEditButton
-
-
Constructor Detail
-
ConditionalListCopy
public ConditionalListCopy(java.lang.String srcLogixName, Logix targetLogix)
Create a new Conditional List View editor.- Parameters:
srcLogixName
- name of the Logix being copiedtargetLogix
- Logix where Conditional copies are placed
-
ConditionalListCopy
public ConditionalListCopy()
-
-
Method Detail
-
makeEditLogixWindow
void makeEditLogixWindow()
-
editButtonPressed
void editButtonPressed()
-
makeEditConditionalWindow
void makeEditConditionalWindow(Conditional srcCond)
Copy a Conditional, with full editing capabilities.- Parameters:
srcCond
- conditional to be copied.
-
makeBottomPanel
javax.swing.JPanel makeBottomPanel()
Make the bottom panel for _conditionalFrame to hold buttons for Update/Save, Cancel, Delete/FullEdit- Specified by:
makeBottomPanel
in classConditionalList
- Returns:
- the panel
-
updateConditional
boolean updateConditional(java.lang.String uName, Conditional.AntecedentOperator logicType, boolean trigger, java.lang.String antecedent)
Description copied from class:ConditionalList
Update _curConditional, the current Conditional. Checks for being well formed rules and registers its usage.- Specified by:
updateConditional
in classConditionalList
- Parameters:
uName
- Conditiona's user namelogicType
- Logic type od antecedenttrigger
- Trigger on variablr change action choiceantecedent
- the antecedent- Returns:
- true, if update is made
-
updateConditionalTableModel
void updateConditionalTableModel()
- Specified by:
updateConditionalTableModel
in classConditionalList
-
closeConditionalFrame
void closeConditionalFrame()
- Specified by:
closeConditionalFrame
in classConditionalList
-
makeChangeItemNameWindow
void makeChangeItemNameWindow(Conditional srcCond)
Copy a Conditional, but only change item names- Parameters:
srcCond
- conditional to be copied.
-
donePressed
void donePressed(java.awt.event.ActionEvent e)
Respond to the Done button in the Edit Logix window.- Parameters:
e
- The event heard
-
getClassName
protected java.lang.String getClassName()
- Overrides:
getClassName
in classConditionalList
-
-