Package jmri.jmrit.beantable.beanedit
Class TurnoutEditAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.jmrit.beantable.beanedit.BeanEditAction<Turnout>
-
- jmri.jmrit.beantable.beanedit.TurnoutEditAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action
public class TurnoutEditAction extends BeanEditAction<Turnout>
Provides an edit panel for a turnout object.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.awt.event.ActionListenerautomationSelectionListener-
Fields inherited from class jmri.jmrit.beantable.beanedit.BeanEditAction
applyBut, bean, bei, commentField, commentFieldScroller, f, nbMan, selectedTab, userNameField
-
-
Constructor Summary
Constructors Constructor Description TurnoutEditAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)protected BeanItemPanelbasicDetails()Create a generic panel that holds the basic bean information System Name, User Name, and Comment.protected voidcancelButtonAction(java.awt.event.ActionEvent e)TurnoutgetByUserName(java.lang.String name)java.lang.StringhelpTarget()protected voidinitPanels()Call to create all the different tabs that will be added to the frame.protected BeanItemPanellock()protected voidresetBasicItems(java.awt.event.ActionEvent e)protected voidsaveBasicItems(java.awt.event.ActionEvent e)protected BeanItemPanelspeed()-
Methods inherited from class jmri.jmrit.beantable.beanedit.BeanEditAction
addToPanel, allowBlockNameChange, applyButtonAction, 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
-
automationSelectionListener
transient java.awt.event.ActionListener automationSelectionListener
-
-
Constructor Detail
-
TurnoutEditAction
public TurnoutEditAction()
-
-
Method Detail
-
helpTarget
public java.lang.String helpTarget()
- Specified by:
helpTargetin classBeanEditAction<Turnout>
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener- Overrides:
actionPerformedin classBeanEditAction<Turnout>
-
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<Turnout>
-
getByUserName
public Turnout getByUserName(java.lang.String name)
- Specified by:
getByUserNamein classBeanEditAction<Turnout>
-
basicDetails
protected 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<Turnout>- Returns:
- a new panel
-
saveBasicItems
protected void saveBasicItems(java.awt.event.ActionEvent e)
- Overrides:
saveBasicItemsin classBeanEditAction<Turnout>
-
resetBasicItems
protected void resetBasicItems(java.awt.event.ActionEvent e)
- Overrides:
resetBasicItemsin classBeanEditAction<Turnout>
-
cancelButtonAction
protected void cancelButtonAction(java.awt.event.ActionEvent e)
- Overrides:
cancelButtonActionin classBeanEditAction<Turnout>
-
lock
protected BeanItemPanel lock()
-
speed
protected BeanItemPanel speed()
-
-