Package jmri.jmrit.beantable
Class IdTagTableAction
- java.lang.Object
- 
- javax.swing.AbstractAction
- 
- jmri.jmrit.beantable.AbstractTableAction<IdTag>
- 
- jmri.jmrit.beantable.IdTagTableAction
 
 
 
- 
- All Implemented Interfaces:
- java.awt.event.ActionListener,- java.beans.PropertyChangeListener,- java.io.Serializable,- java.lang.Cloneable,- java.util.EventListener,- javax.swing.Action
 
 public class IdTagTableAction extends AbstractTableAction<IdTag> implements java.beans.PropertyChangeListener Swing action to create and register a IdTagTable GUI.- Since:
- 2.11.4
- See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class jmri.jmrit.beantable.AbstractTableActionAbstractTableAction.TableItem<E extends NamedBean>
 
- 
 - 
Field SummaryFields Modifier and Type Field Description (package private) JmriJFrameaddFrame(package private) javax.swing.JCheckBoxisFastClockUsed(package private) javax.swing.JCheckBoxisStateStored(package private) javax.swing.JTextFieldsysNameprotected IdTagManagertagManager(package private) javax.swing.JTextFielduserName- 
Fields inherited from class jmri.jmrit.beantable.AbstractTableActionf, includeAddButton, m
 
- 
 - 
Constructor SummaryConstructors Constructor Description IdTagTableAction()IdTagTableAction(java.lang.String actionName)Create an action with a specific title.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddPressed(java.awt.event.ActionEvent e)voidaddToFrame(BeanTableFrame<IdTag> f)Allow subclasses to add to the frame without having to actually subclass the BeanTableDataFrame.voidaddToPanel(AbstractTableTabAction<IdTag> f)If the subClass is being included in a greater tabbed frame, then this method is used to add the details to the tabbed frame.(package private) voidcancelPressed(java.awt.event.ActionEvent e)protected voidcreateModel()Create the JTable DataModel, along with the changes for the specific case of IdTag objects.voiddispose()Dispose of the BeanTableDataModel ( if present ), which removes the DataModel property change listeners from Beans.java.lang.StringgetClassDescription()protected java.lang.StringgetClassName()(package private) voidhandleCreateException(java.lang.String sysName, java.lang.IllegalArgumentException ex)protected java.lang.StringhelpTarget()Specify the JavaHelp target for this specific panel.(package private) voidinit()(package private) voidokPressed(java.awt.event.ActionEvent e)voidpropertyChange(java.beans.PropertyChangeEvent e)voidsetManager(Manager<IdTag> t)If the subClass is being included in a greater tabbed frame, then this is used to specify which manager the subclass should be using.protected voidsetTitle()Include the correct title.- 
Methods inherited from class jmri.jmrit.beantable.AbstractTableActionactionPerformed, addBottomButtons, addToFrame, columnsVisibleUpdated, configureManagerComboBox, configureTable, displayHwError, getDataModel, getFrame, getManager, getPanel, getTableDataModel, includeAddButton, nextName, print, removePrefixBoxListener, setFrame, setMenuBar, setMessagePreferencesDetails
 - 
Methods inherited from class javax.swing.AbstractActionaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
- 
 
- 
- 
- 
Field Detail- 
tagManager@Nonnull protected IdTagManager tagManager 
 - 
addFrameJmriJFrame addFrame 
 - 
sysNamejavax.swing.JTextField sysName 
 - 
userNamejavax.swing.JTextField userName 
 - 
isStateStoredjavax.swing.JCheckBox isStateStored 
 - 
isFastClockUsedjavax.swing.JCheckBox isFastClockUsed 
 
- 
 - 
Constructor Detail- 
IdTagTableActionpublic IdTagTableAction(java.lang.String actionName) Create an action with a specific title.Note that the argument is the Action title, not the title of the resulting frame. Perhaps this should be changed? - Parameters:
- actionName- title of the action
 
 - 
IdTagTableActionpublic IdTagTableAction() 
 
- 
 - 
Method Detail- 
initfinal void init() 
 - 
setManagerpublic void setManager(@Nonnull Manager<IdTag> t) If the subClass is being included in a greater tabbed frame, then this is used to specify which manager the subclass should be using.- Overrides:
- setManagerin class- AbstractTableAction<IdTag>
- Parameters:
- t- Manager for this table tab
 
 - 
createModelprotected void createModel() Create the JTable DataModel, along with the changes for the specific case of IdTag objects.- Specified by:
- createModelin class- AbstractTableAction<IdTag>
 
 - 
setTitleprotected void setTitle() Description copied from class:AbstractTableActionInclude the correct title.- Specified by:
- setTitlein class- AbstractTableAction<IdTag>
 
 - 
helpTargetprotected java.lang.String helpTarget() Description copied from class:AbstractTableActionSpecify the JavaHelp target for this specific panel.- Overrides:
- helpTargetin class- AbstractTableAction<IdTag>
- Returns:
- a fixed default string "index" pointing to to highest level in JMRI Help
 
 - 
addPressedprotected void addPressed(java.awt.event.ActionEvent e) - Specified by:
- addPressedin class- AbstractTableAction<IdTag>
 
 - 
cancelPressedvoid cancelPressed(java.awt.event.ActionEvent e) 
 - 
okPressedvoid okPressed(java.awt.event.ActionEvent e) 
 - 
handleCreateExceptionvoid handleCreateException(java.lang.String sysName, java.lang.IllegalArgumentException ex) 
 - 
getClassDescriptionpublic java.lang.String getClassDescription() - Overrides:
- getClassDescriptionin class- AbstractTableAction<IdTag>
 
 - 
addToFramepublic void addToFrame(BeanTableFrame<IdTag> f) Description copied from class:AbstractTableActionAllow subclasses to add to the frame without having to actually subclass the BeanTableDataFrame.- Overrides:
- addToFramein class- AbstractTableAction<IdTag>
- Parameters:
- f- the Frame to add to
 
 - 
addToPanelpublic void addToPanel(AbstractTableTabAction<IdTag> f) Description copied from class:AbstractTableActionIf the subClass is being included in a greater tabbed frame, then this method is used to add the details to the tabbed frame.- Overrides:
- addToPanelin class- AbstractTableAction<IdTag>
- Parameters:
- f- AbstractTableTabAction for the containing frame containing these and other tabs
 
 - 
propertyChangepublic void propertyChange(java.beans.PropertyChangeEvent e) - Specified by:
- propertyChangein interface- java.beans.PropertyChangeListener
 
 - 
getClassNameprotected java.lang.String getClassName() - Specified by:
- getClassNamein class- AbstractTableAction<IdTag>
 
 - 
disposepublic void dispose() Description copied from class:AbstractTableActionDispose of the BeanTableDataModel ( if present ), which removes the DataModel property change listeners from Beans.- Overrides:
- disposein class- AbstractTableAction<IdTag>
 
 
- 
 
-