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.AbstractTableAction
AbstractTableAction.TableItem<E extends NamedBean>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) JmriJFrame
addFrame
(package private) javax.swing.JCheckBox
isFastClockUsed
(package private) javax.swing.JCheckBox
isStateStored
(package private) javax.swing.JTextField
sysName
protected IdTagManager
tagManager
(package private) javax.swing.JTextField
userName
-
Fields inherited from class jmri.jmrit.beantable.AbstractTableAction
f, includeAddButton, m
-
-
Constructor Summary
Constructors Constructor Description IdTagTableAction()
IdTagTableAction(java.lang.String actionName)
Create an action with a specific title.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addPressed(java.awt.event.ActionEvent e)
void
addToFrame(BeanTableFrame<IdTag> f)
Allow subclasses to add to the frame without having to actually subclass the BeanTableDataFrame.void
addToPanel(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) void
cancelPressed(java.awt.event.ActionEvent e)
protected void
createModel()
Create the JTable DataModel, along with the changes for the specific case of IdTag objects.void
dispose()
Dispose of the BeanTableDataModel ( if present ), which removes the DataModel property change listeners from Beans.java.lang.String
getClassDescription()
protected java.lang.String
getClassName()
(package private) void
handleCreateException(java.lang.String sysName, java.lang.IllegalArgumentException ex)
protected java.lang.String
helpTarget()
Specify the JavaHelp target for this specific panel.(package private) void
init()
(package private) void
okPressed(java.awt.event.ActionEvent e)
void
propertyChange(java.beans.PropertyChangeEvent e)
void
setManager(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 void
setTitle()
Include the correct title.-
Methods inherited from class jmri.jmrit.beantable.AbstractTableAction
actionPerformed, addBottomButtons, addToFrame, columnsVisibleUpdated, configureManagerComboBox, configureTable, displayHwError, getFrame, getManager, getPanel, getTableDataModel, includeAddButton, nextName, print, removePrefixBoxListener, setFrame, setMenuBar, setMessagePreferencesDetails
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
tagManager
@Nonnull protected IdTagManager tagManager
-
addFrame
JmriJFrame addFrame
-
sysName
javax.swing.JTextField sysName
-
userName
javax.swing.JTextField userName
-
isStateStored
javax.swing.JCheckBox isStateStored
-
isFastClockUsed
javax.swing.JCheckBox isFastClockUsed
-
-
Constructor Detail
-
IdTagTableAction
public 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
-
IdTagTableAction
public IdTagTableAction()
-
-
Method Detail
-
init
final void init()
-
setManager
public 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:
setManager
in classAbstractTableAction<IdTag>
- Parameters:
t
- Manager for this table tab
-
createModel
protected void createModel()
Create the JTable DataModel, along with the changes for the specific case of IdTag objects.- Specified by:
createModel
in classAbstractTableAction<IdTag>
-
setTitle
protected void setTitle()
Description copied from class:AbstractTableAction
Include the correct title.- Specified by:
setTitle
in classAbstractTableAction<IdTag>
-
helpTarget
protected java.lang.String helpTarget()
Description copied from class:AbstractTableAction
Specify the JavaHelp target for this specific panel.- Overrides:
helpTarget
in classAbstractTableAction<IdTag>
- Returns:
- a fixed default string "index" pointing to to highest level in JMRI Help
-
addPressed
protected void addPressed(java.awt.event.ActionEvent e)
- Specified by:
addPressed
in classAbstractTableAction<IdTag>
-
cancelPressed
void cancelPressed(java.awt.event.ActionEvent e)
-
okPressed
void okPressed(java.awt.event.ActionEvent e)
-
handleCreateException
void handleCreateException(java.lang.String sysName, java.lang.IllegalArgumentException ex)
-
getClassDescription
public java.lang.String getClassDescription()
- Overrides:
getClassDescription
in classAbstractTableAction<IdTag>
-
addToFrame
public void addToFrame(BeanTableFrame<IdTag> f)
Description copied from class:AbstractTableAction
Allow subclasses to add to the frame without having to actually subclass the BeanTableDataFrame.- Overrides:
addToFrame
in classAbstractTableAction<IdTag>
- Parameters:
f
- the Frame to add to
-
addToPanel
public void addToPanel(AbstractTableTabAction<IdTag> f)
Description copied from class:AbstractTableAction
If the subClass is being included in a greater tabbed frame, then this method is used to add the details to the tabbed frame.- Overrides:
addToPanel
in classAbstractTableAction<IdTag>
- Parameters:
f
- AbstractTableTabAction for the containing frame containing these and other tabs
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent e)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
-
getClassName
protected java.lang.String getClassName()
- Specified by:
getClassName
in classAbstractTableAction<IdTag>
-
dispose
public void dispose()
Description copied from class:AbstractTableAction
Dispose of the BeanTableDataModel ( if present ), which removes the DataModel property change listeners from Beans.- Overrides:
dispose
in classAbstractTableAction<IdTag>
-
-