Package jmri.jmrit.beantable
Class IdTagTableAction
- All Implemented Interfaces:
ActionListener,PropertyChangeListener,Serializable,Cloneable,EventListener,Action
Swing action to create and register a IdTagTable GUI.
- Since:
- 2.11.4
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class jmri.jmrit.beantable.AbstractTableAction
AbstractTableAction.TableItem<E extends NamedBean> -
Field Summary
FieldsModifier and TypeFieldDescription(package private) JmriJFrame(package private) JCheckBox(package private) JCheckBox(package private) JTextFieldprotected IdTagManager(package private) JTextFieldFields inherited from class jmri.jmrit.beantable.AbstractTableAction
f, includeAddButton, mFields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidAllow subclasses to add to the frame without having to actually subclass the BeanTableDataFrame.voidIf 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) voidprotected voidCreate 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.protected String(package private) voidhandleCreateException(String sysName, IllegalArgumentException ex) protected StringSpecify the JavaHelp target for this specific panel.(package private) final voidinit()(package private) voidvoidvoidsetManager(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.AbstractTableAction
actionPerformed, addBottomButtons, addToFrame, columnsVisibleUpdated, configureManagerComboBox, configureTable, displayHwError, getDataModel, getFrame, getManager, getPanel, getTableDataModel, includeAddButton, nextName, print, removePrefixBoxListener, setFrame, setMenuBar, setMessagePreferencesDetailsMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
tagManager
-
addFrame
-
sysName
-
userName
-
isStateStored
-
isFastClockUsed
-
-
Constructor Details
-
IdTagTableAction
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 Details
-
init
-
setManager
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 classAbstractTableAction<IdTag>- Parameters:
t- Manager for this table tab
-
createModel
Create the JTable DataModel, along with the changes for the specific case of IdTag objects.- Specified by:
createModelin classAbstractTableAction<IdTag>
-
setTitle
Description copied from class:AbstractTableActionInclude the correct title.- Specified by:
setTitlein classAbstractTableAction<IdTag>
-
helpTarget
Description copied from class:AbstractTableActionSpecify the JavaHelp target for this specific panel.- Overrides:
helpTargetin classAbstractTableAction<IdTag>- Returns:
- a fixed default string "index" pointing to to highest level in JMRI Help
-
addPressed
- Specified by:
addPressedin classAbstractTableAction<IdTag>
-
cancelPressed
-
okPressed
-
handleCreateException
-
getClassDescription
- Overrides:
getClassDescriptionin classAbstractTableAction<IdTag>
-
addToFrame
Description copied from class:AbstractTableActionAllow subclasses to add to the frame without having to actually subclass the BeanTableDataFrame.- Overrides:
addToFramein classAbstractTableAction<IdTag>- Parameters:
f- the Frame to add to
-
addToPanel
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 classAbstractTableAction<IdTag>- Parameters:
f- AbstractTableTabAction for the containing frame containing these and other tabs
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-
getClassName
- Specified by:
getClassNamein classAbstractTableAction<IdTag>
-
dispose
Description copied from class:AbstractTableActionDispose of the BeanTableDataModel ( if present ), which removes the DataModel property change listeners from Beans.- Overrides:
disposein classAbstractTableAction<IdTag>
-