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) SensorDebounceEditAction
debounce
(package private) javax.swing.JCheckBox
inverted
(package private) SensorPullUpEditAction
pullup
-
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) BeanItemPanel
basicDetails()
Create a generic panel that holds the basic bean information System Name, User Name, and Comment.Sensor
getByUserName(java.lang.String name)
java.lang.String
helpTarget()
protected void
initPanels()
Call to create all the different tabs that will be added to the frame.protected void
resetBasicItems(java.awt.event.ActionEvent e)
protected void
saveBasicItems(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:
helpTarget
in classBeanEditAction<Sensor>
-
initPanels
protected void initPanels()
Description copied from class:BeanEditAction
Call to create all the different tabs that will be added to the frame.- Overrides:
initPanels
in classBeanEditAction<Sensor>
-
getByUserName
public Sensor getByUserName(java.lang.String name)
- Specified by:
getByUserName
in classBeanEditAction<Sensor>
-
basicDetails
BeanItemPanel basicDetails()
Description copied from class:BeanEditAction
Create a generic panel that holds the basic bean information System Name, User Name, and Comment.- Overrides:
basicDetails
in classBeanEditAction<Sensor>
- Returns:
- a new panel
-
saveBasicItems
protected void saveBasicItems(java.awt.event.ActionEvent e)
- Overrides:
saveBasicItems
in classBeanEditAction<Sensor>
-
resetBasicItems
protected void resetBasicItems(java.awt.event.ActionEvent e)
- Overrides:
resetBasicItems
in classBeanEditAction<Sensor>
-
-