Package jmri.jmrit.beantable.beanedit
Class SensorEditAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.jmrit.beantable.beanedit.BeanEditAction<Sensor>
-
- jmri.jmrit.beantable.beanedit.SensorEditAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action
public class SensorEditAction extends BeanEditAction<Sensor>
Provides an edit panel for a Sensor object.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) SensorDebounceEditActiondebounce(package private) javax.swing.JCheckBoxinverted(package private) SensorPullUpEditActionpullup-
Fields inherited from class jmri.jmrit.beantable.beanedit.BeanEditAction
applyBut, bean, bei, commentField, commentFieldScroller, f, nbMan, selectedTab, userNameField
-
-
Constructor Summary
Constructors Constructor Description SensorEditAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) BeanItemPanelbasicDetails()Create a generic panel that holds the basic bean information System Name, User Name, and Comment.SensorgetByUserName(java.lang.String name)java.lang.StringhelpTarget()protected voidinitPanels()Call to create all the different tabs that will be added to the frame.protected voidresetBasicItems(java.awt.event.ActionEvent e)protected voidsaveBasicItems(java.awt.event.ActionEvent e)-
Methods inherited from class jmri.jmrit.beantable.beanedit.BeanEditAction
actionPerformed, addToPanel, allowBlockNameChange, applyButtonAction, cancelButtonAction, formatTextAreaAsLabel, initPanelsFirst, initPanelsLast, propertiesDetails, removeName, renameBean, save, setBean, setSelectedComponent, usageDetails, validateNumericalInput
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
debounce
SensorDebounceEditAction debounce
-
pullup
SensorPullUpEditAction pullup
-
inverted
javax.swing.JCheckBox inverted
-
-
Constructor Detail
-
SensorEditAction
public SensorEditAction()
-
-
Method Detail
-
helpTarget
public java.lang.String helpTarget()
- Specified by:
helpTargetin classBeanEditAction<Sensor>
-
initPanels
protected void initPanels()
Description copied from class:BeanEditActionCall to create all the different tabs that will be added to the frame.- Overrides:
initPanelsin classBeanEditAction<Sensor>
-
getByUserName
public Sensor getByUserName(java.lang.String name)
- Specified by:
getByUserNamein classBeanEditAction<Sensor>
-
basicDetails
BeanItemPanel basicDetails()
Description copied from class:BeanEditActionCreate a generic panel that holds the basic bean information System Name, User Name, and Comment.- Overrides:
basicDetailsin classBeanEditAction<Sensor>- Returns:
- a new panel
-
saveBasicItems
protected void saveBasicItems(java.awt.event.ActionEvent e)
- Overrides:
saveBasicItemsin classBeanEditAction<Sensor>
-
resetBasicItems
protected void resetBasicItems(java.awt.event.ActionEvent e)
- Overrides:
resetBasicItemsin classBeanEditAction<Sensor>
-
-