Package jmri.jmrit.beantable
Class PropertyAddEditAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.jmrit.beantable.PropertyAddEditAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action
public class PropertyAddEditAction extends javax.swing.AbstractAction
Swing Action to display an Add/Edit dialong for a specific NamedBean- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) javax.swing.JComboBox<java.lang.String>selector(package private) NamedBeanthisBean(package private) javax.swing.JTextFieldvalueField
-
Constructor Summary
Constructors Constructor Description PropertyAddEditAction(NamedBean bean)Ctor captures a reference to the bean to add/edit properties in
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent evt)(package private) voidselectionChanged()(package private) voidsetButtonPressed()-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
selector
javax.swing.JComboBox<java.lang.String> selector
-
valueField
javax.swing.JTextField valueField
-
-
Constructor Detail
-
PropertyAddEditAction
public PropertyAddEditAction(NamedBean bean)
Ctor captures a reference to the bean to add/edit properties in- Parameters:
bean- The NamedBean that will be editied
-
-
Method Detail
-
actionPerformed
@InvokeOnGuiThread public void actionPerformed(java.awt.event.ActionEvent evt)
-
selectionChanged
void selectionChanged()
-
setButtonPressed
void setButtonPressed()
-
-