Package jmri.jmrit.conditional
Class ConditionalList
- java.lang.Object
-
- jmri.jmrit.conditional.ConditionalEditBase
-
- jmri.jmrit.conditional.ConditionalList
-
- Direct Known Subclasses:
ConditionalListCopy
,ConditionalListEdit
public abstract class ConditionalList extends ConditionalEditBase
Basis for ConditionalListEdit and ConditionalListCopy
-
-
Nested Class Summary
-
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) ConditionalFrame
_conditionalFrame
(package private) Conditional
_curConditional
(package private) boolean
_newConditional
(package private) java.util.TreeSet<java.lang.String>
_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 ConditionalList()
ConditionalList(java.lang.String sName)
Create a new Conditional List View editor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract void
closeConditionalFrame()
(package private) void
closeConditionalFrame(Logix logix)
protected java.lang.String
getClassName()
(package private) ConditionalEditBase.PickSingleListener
getPickSingleListener(javax.swing.JTextField textField, Conditional.ItemType itemType)
(package private) abstract javax.swing.JPanel
makeBottomPanel()
Make the bottom panel for _conditionalFrame to hold buttons for Update/Save, Cancel, Delete/FullEdit(package private) Conditional
makeNewConditional(Logix logix)
(package private) abstract boolean
updateConditional(java.lang.String uName, Conditional.AntecedentOperator logicType, boolean trigger, java.lang.String antecedent)
Update _curConditional, the current Conditional.(package private) boolean
updateConditional(java.lang.String uName, Logix logix, Conditional.AntecedentOperator logicType, boolean trigger, java.lang.String antecedent)
(package private) abstract void
updateConditionalTableModel()
-
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
-
_curConditional
Conditional _curConditional
-
_conditionalFrame
ConditionalFrame _conditionalFrame
-
_newConditional
boolean _newConditional
-
_oldTargetNames
java.util.TreeSet<java.lang.String> _oldTargetNames
-
-
Constructor Detail
-
ConditionalList
public ConditionalList(java.lang.String sName)
Create a new Conditional List View editor.- Parameters:
sName
- name of the Logix being edited
-
ConditionalList
public ConditionalList()
-
-
Method Detail
-
makeNewConditional
Conditional makeNewConditional(Logix logix)
-
makeBottomPanel
abstract javax.swing.JPanel makeBottomPanel()
Make the bottom panel for _conditionalFrame to hold buttons for Update/Save, Cancel, Delete/FullEdit- Returns:
- the panel
-
updateConditionalTableModel
abstract void updateConditionalTableModel()
-
updateConditional
abstract boolean updateConditional(java.lang.String uName, Conditional.AntecedentOperator logicType, boolean trigger, java.lang.String antecedent)
Update _curConditional, the current Conditional. Checks for being well formed rules and registers its usage.- Parameters:
uName
- Conditiona's user namelogicType
- Logic type od antecedenttrigger
- Trigger on variablr change action choiceantecedent
- the antecedent- Returns:
- true, if update is made
-
updateConditional
boolean updateConditional(java.lang.String uName, Logix logix, Conditional.AntecedentOperator logicType, boolean trigger, java.lang.String antecedent)
-
getPickSingleListener
ConditionalEditBase.PickSingleListener getPickSingleListener(javax.swing.JTextField textField, Conditional.ItemType itemType)
-
closeConditionalFrame
abstract void closeConditionalFrame()
-
closeConditionalFrame
void closeConditionalFrame(Logix logix)
-
getClassName
protected java.lang.String getClassName()
- Overrides:
getClassName
in classConditionalEditBase
-
-