Package jmri.jmrit.logixng.tools.swing
Class LogixNGEditor
java.lang.Object
jmri.jmrit.logixng.tools.swing.LogixNGEditor
- All Implemented Interfaces:
AbstractLogixNGEditor<LogixNG>
Editor for LogixNG
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal classTable model for ConditionalNGs in the Edit LogixNG pane.static interfaceCreate a custom listener event.Nested classes/interfaces inherited from interface jmri.jmrit.logixng.tools.swing.AbstractLogixNGEditor
AbstractLogixNGEditor.EditorEventListener -
Field Summary
FieldsModifier and TypeFieldDescription(package private) ConditionalNG_Manager(package private) int(package private) LogixNG(package private) ConditionalNGDebugger(package private) boolean(package private) boolean(package private) boolean(package private) boolean(package private) LogixNG_Manager(package private) int(package private) int(package private) JPanel(package private) JPanel(package private) boolean(package private) boolean(package private) boolean(package private) ConditionalNGEditor(package private) JRadioButton(package private) BeanTableDataModel<LogixNG>(package private) JTextField(package private) List<AbstractLogixNGEditor.EditorEventListener>Maintain a list of listeners -- normally only one.(package private) JLabel -
Constructor Summary
ConstructorsConstructorDescriptionLogixNGEditor(BeanTableDataModel<LogixNG> m, String sName) Create a new ConditionalNG List View editor. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a listener.(package private) voidEnable/disable fields for data entry when user selects to have system name automatically generated.void(package private) booleanCheck validity of ConditionalNG system name.(package private) booleanCheck form of ConditionalNG systemName.(package private) booleancheckConditionalNGUserName(String uName, LogixNG logixNG) (package private) voiddebugConditionalNGPressed(int rx) Respond to Edit Button in the ConditionalNG table of the Edit LogixNG Window.(package private) voidRespond to the Delete button in the Edit LogixNG window.(package private) voidRespond to the Done button in the Edit LogixNG window.(package private) voideditConditionalNGPressed(int rx) Respond to Edit Button in the ConditionalNG table of the Edit LogixNG Window.(package private) voidResponds to the Execute Button in the Edit LogixNG window.(package private) void(package private) voidCreate and/or initialize the Edit Conditional window.(package private) voidCreate and/or initialize the Edit Conditional window.(package private) voidCreate and/or initialize the Edit LogixNG pane.(package private) voidSend a duplicate Conditional user name message for Edit Logix pane.(package private) voidRespond to the New ConditionalNG Button in Edit LogixNG Window.voidRemove a listener -- not used.(package private) voidRespond to the Reorder Button in the Edit LogixNG pane.(package private) voidDisplay reminder to save.(package private) voidswapConditionalNG(int row) Respond to the First/Next (Delete) Button in the Edit LogixNG window.
-
Field Details
-
beanTableDataModel
-
_logixNG_Manager
-
_curLogixNG
-
_conditionalNG_Manager
-
_treeEdit
-
_debugger
-
_numConditionalNGs
-
_inEditMode
boolean _inEditMode -
_showReminder
boolean _showReminder -
_suppressReminder
boolean _suppressReminder -
_suppressIndirectRef
boolean _suppressIndirectRef -
editUserName
-
status
-
_conditionalRowNumber
-
_inReorderMode
boolean _inReorderMode -
_inActReorder
boolean _inActReorder -
_inVarReorder
boolean _inVarReorder -
_nextInOrder
int _nextInOrder -
_selectLogixNGPanel
-
_selectConditionalNGPanel
-
_selectLogixNGMap
-
_selectConditionalNGList
-
_triggerOnChangeButton
-
listenerList
Maintain a list of listeners -- normally only one.
-
-
Constructor Details
-
LogixNGEditor
Create a new ConditionalNG List View editor.- Parameters:
m- the bean table modelsName- name of the LogixNG being edited
-
-
Method Details
-
makeEditLogixNGWindow
void makeEditLogixNGWindow()Create and/or initialize the Edit LogixNG pane. -
bringToFront
- Specified by:
bringToFrontin interfaceAbstractLogixNGEditor<LogixNG>
-
showSaveReminder
void showSaveReminder()Display reminder to save. -
reorderPressed
Respond to the Reorder Button in the Edit LogixNG pane.- Parameters:
e- The event heard
-
swapConditionalNG
Respond to the First/Next (Delete) Button in the Edit LogixNG window.- Parameters:
row- index of the row to put as next in line (instead of the one that was supposed to be next)
-
executePressed
Responds to the Execute Button in the Edit LogixNG window.- Parameters:
e- The event heard
-
donePressed
Respond to the Done button in the Edit LogixNG window.Note: We also get here if the Edit LogixNG window is dismissed, or if the Add button is pressed in the Logic Table with an active Edit LogixNG window.
- Parameters:
e- The event heard
-
finishDone
void finishDone() -
deletePressed
void deletePressed()Respond to the Delete button in the Edit LogixNG window. -
newConditionalNGPressed
Respond to the New ConditionalNG Button in Edit LogixNG Window.- Parameters:
e- The event heard
-
checkConditionalNGSysName
boolean checkConditionalNGSysName()Check validity of ConditionalNG system name.Fixes name if it doesn't start with "IQC" or is missing the $ for alpha suffixes.
- Returns:
- false if the name fails the NameValidity check
-
autoSystemName
void autoSystemName()Enable/disable fields for data entry when user selects to have system name automatically generated. -
makeEditConditionalNGWindow
void makeEditConditionalNGWindow()Create and/or initialize the Edit Conditional window.Note: you can get here via the New Conditional button (newConditionalPressed) or via an Edit button in the Conditional table of the Edit Logix window.
-
makeDebugConditionalNGWindow
void makeDebugConditionalNGWindow()Create and/or initialize the Edit Conditional window.Note: you can get here via the New Conditional button (newConditionalPressed) or via an Edit button in the Conditional table of the Edit Logix window.
-
editConditionalNGPressed
Respond to Edit Button in the ConditionalNG table of the Edit LogixNG Window.- Parameters:
rx- index (row number) of ConditionalNG to be edited
-
debugConditionalNGPressed
Respond to Edit Button in the ConditionalNG table of the Edit LogixNG Window.- Parameters:
rx- index (row number) of ConditionalNG to be edited
-
checkConditionalNGUserName
-
checkConditionalNGSystemName
Check form of ConditionalNG systemName.- Parameters:
sName- system name of bean to be checked- Returns:
- false if sName is empty string or null
-
messageDuplicateConditionalNGUserName
Send a duplicate Conditional user name message for Edit Logix pane.- Parameters:
svName- proposed name that duplicates an existing name
-
addEditorEventListener
Add a listener.- Specified by:
addEditorEventListenerin interfaceAbstractLogixNGEditor<LogixNG>- Parameters:
listener- The recipient
-
removeEditorEventListener
Remove a listener -- not used.- Specified by:
removeEditorEventListenerin interfaceAbstractLogixNGEditor<LogixNG>- Parameters:
listener- The recipient
-