Package jmri.jmrit.beantable
Class SignalMastTableAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
Swing action to create and register a SignalMastTable GUI.
- 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) AddSignalMastJFrame(package private) static final int(package private) static final intFields 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
ConstructorsConstructorDescriptionSignalMastTableAction(String actionName) Create an action with a specific title. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidCreate the JTable DataModel, along with the changes for the specific case of Signal Masts.protected Stringprotected StringSpecify the JavaHelp target for this specific panel.voidInsert a table specific Tools menu.protected voidsetTitle()Include the correct title.Methods inherited from class jmri.jmrit.beantable.AbstractTableAction
actionPerformed, addBottomButtons, addToFrame, addToFrame, addToPanel, columnsVisibleUpdated, configureManagerComboBox, configureTable, displayHwError, dispose, getDataModel, getFrame, getManager, getPanel, getTableDataModel, includeAddButton, nextName, print, removePrefixBoxListener, setFrame, setManager, setMessagePreferencesDetailsMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
addFrame
-
VALUECOL
- See Also:
-
SYSNAMECOL
- See Also:
-
-
Constructor Details
-
SignalMastTableAction
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
-
SignalMastTableAction
public SignalMastTableAction()
-
-
Method Details
-
createModel
Create the JTable DataModel, along with the changes for the specific case of Signal Masts.- Specified by:
createModelin classAbstractTableAction<SignalMast>
-
setTitle
Description copied from class:AbstractTableActionInclude the correct title.- Specified by:
setTitlein classAbstractTableAction<SignalMast>
-
helpTarget
Description copied from class:AbstractTableActionSpecify the JavaHelp target for this specific panel.- Overrides:
helpTargetin classAbstractTableAction<SignalMast>- Returns:
- a fixed default string "index" pointing to to highest level in JMRI Help
-
addPressed
- Specified by:
addPressedin classAbstractTableAction<SignalMast>
-
setMenuBar
Insert a table specific Tools menu. Account for the Window and Help menus, which are already added to the menu bar as part of the creation of the JFrame, by adding the Tools menu 2 places earlier unless the table is part of the ListedTableFrame, that adds the Help menu later on.- Overrides:
setMenuBarin classAbstractTableAction<SignalMast>- Parameters:
f- the JFrame of this table
-
getClassName
- Specified by:
getClassNamein classAbstractTableAction<SignalMast>
-
getClassDescription
- Overrides:
getClassDescriptionin classAbstractTableAction<SignalMast>
-