Package jmri.jmrit.beantable.beanedit
Class SensorPullUpEditAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.jmrit.beantable.beanedit.BeanEditAction<Sensor>
-
- jmri.jmrit.beantable.beanedit.SensorPullUpEditAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
public class SensorPullUpEditAction extends BeanEditAction<Sensor>
Provides an edit panel for the sensor pull up/pull down configuration. This is designed so that it can be re-used in other panels. This is based on the SensorDebounceEditAction class.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) javax.swing.JComboBox<Sensor.PullResistance>
sensorPullUpComboBox
-
Fields inherited from class jmri.jmrit.beantable.beanedit.BeanEditAction
applyBut, bean, bei, commentField, commentFieldScroller, f, nbMan, selectedTab, userNameField
-
-
Constructor Summary
Constructors Constructor Description SensorPullUpEditAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
enabled(java.lang.Boolean boo)
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
resetPullUpItems(java.awt.event.ActionEvent e)
protected void
savePullUpItems(java.awt.event.ActionEvent e)
BeanItemPanel
sensorPullUp(BeanItemPanel basic)
void
setBean(Sensor bean)
-
Methods inherited from class jmri.jmrit.beantable.beanedit.BeanEditAction
actionPerformed, addToPanel, allowBlockNameChange, applyButtonAction, basicDetails, cancelButtonAction, formatTextAreaAsLabel, initPanelsFirst, initPanelsLast, propertiesDetails, removeName, renameBean, resetBasicItems, save, saveBasicItems, setSelectedComponent, usageDetails, validateNumericalInput
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
sensorPullUpComboBox
javax.swing.JComboBox<Sensor.PullResistance> sensorPullUpComboBox
-
-
Constructor Detail
-
SensorPullUpEditAction
public SensorPullUpEditAction()
-
-
Method Detail
-
helpTarget
public java.lang.String helpTarget()
- Specified by:
helpTarget
in classBeanEditAction<Sensor>
-
getByUserName
public Sensor getByUserName(java.lang.String name)
- Specified by:
getByUserName
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>
-
setBean
public void setBean(Sensor bean)
- Overrides:
setBean
in classBeanEditAction<Sensor>
-
sensorPullUp
public BeanItemPanel sensorPullUp(BeanItemPanel basic)
-
savePullUpItems
protected void savePullUpItems(java.awt.event.ActionEvent e)
-
resetPullUpItems
protected void resetPullUpItems(java.awt.event.ActionEvent e)
-
enabled
public void enabled(java.lang.Boolean boo)
-
-