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 voidenabled(java.lang.Boolean boo)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 voidresetPullUpItems(java.awt.event.ActionEvent e)protected voidsavePullUpItems(java.awt.event.ActionEvent e)BeanItemPanelsensorPullUp(BeanItemPanel basic)voidsetBean(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:
helpTargetin classBeanEditAction<Sensor>
-
getByUserName
public Sensor getByUserName(java.lang.String name)
- Specified by:
getByUserNamein 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>
-
setBean
public void setBean(Sensor bean)
- Overrides:
setBeanin 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)
-
-