Package jmri.jmrit.conditional
Class ConditionalEditBase.PickSingleListener
- java.lang.Object
-
- jmri.jmrit.conditional.ConditionalEditBase.PickSingleListener
-
- All Implemented Interfaces:
java.util.EventListener
,javax.swing.event.ListSelectionListener
- Enclosing class:
- ConditionalEditBase
class ConditionalEditBase.PickSingleListener extends java.lang.Object implements javax.swing.event.ListSelectionListener
Listen for Pick Single table click events.When a table row is selected, the user/system name is copied to the Action or Variable name field.
- Since:
- 4.7.3
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Conditional.ItemType
saveItemType
(package private) javax.swing.JTextField
saveTextField
-
Constructor Summary
Constructors Constructor Description PickSingleListener(javax.swing.JTextField textField, Conditional.ItemType itemType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Conditional.ItemType
getItemType()
void
valueChanged(javax.swing.event.ListSelectionEvent e)
-
-
-
Field Detail
-
saveTextField
javax.swing.JTextField saveTextField
-
saveItemType
Conditional.ItemType saveItemType
-
-
Constructor Detail
-
PickSingleListener
public PickSingleListener(javax.swing.JTextField textField, Conditional.ItemType itemType)
- Parameters:
textField
- The target field object when an entry is selecteditemType
- The current selected table type number
-
-
Method Detail
-
valueChanged
public void valueChanged(javax.swing.event.ListSelectionEvent e)
- Specified by:
valueChanged
in interfacejavax.swing.event.ListSelectionListener
-
getItemType
public Conditional.ItemType getItemType()
-
-