Package jmri.jmrit.beantable
Class SignalHeadTableAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
Swing action to create and register a SignalHeadTable GUI.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class jmri.jmrit.beantable.AbstractTableAction
AbstractTableAction.TableItem<E extends NamedBean> -
Field Summary
Fields 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
ConstructorsConstructorDescriptionCreate an action with a specific title. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidProvide GUI for adding a new SignalHead.protected voidCreate the JTable DataModel, along with the changes for the specific case of SignalHeads.voiddispose()Dispose of the BeanTableDataModel ( if present ), which removes the DataModel property change listeners from Beans.protected Stringprotected StringSpecify the JavaHelp target for this specific panel.protected voidsetTitle()Include the correct title.Methods inherited from class jmri.jmrit.beantable.AbstractTableAction
actionPerformed, addBottomButtons, addToFrame, addToFrame, addToPanel, columnsVisibleUpdated, configureManagerComboBox, configureTable, displayHwError, getDataModel, getFrame, getManager, getPanel, getTableDataModel, includeAddButton, nextName, print, removePrefixBoxListener, setFrame, setManager, setMenuBar, setMessagePreferencesDetailsMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
SignalHeadTableAction
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:
s- title of the action
-
SignalHeadTableAction
public SignalHeadTableAction()
-
-
Method Details
-
createModel
Create the JTable DataModel, along with the changes for the specific case of SignalHeads.- Specified by:
createModelin classAbstractTableAction<SignalHead>
-
setTitle
Description copied from class:AbstractTableActionInclude the correct title.- Specified by:
setTitlein classAbstractTableAction<SignalHead>
-
helpTarget
Description copied from class:AbstractTableActionSpecify the JavaHelp target for this specific panel.- Overrides:
helpTargetin classAbstractTableAction<SignalHead>- Returns:
- a fixed default string "index" pointing to to highest level in JMRI Help
-
addPressed
Provide GUI for adding a new SignalHead.Creates a new SignalHeadAddEditFrame, or makes an existing frame visible and clearing the SystemName and UserName fields.
- Specified by:
addPressedin classAbstractTableAction<SignalHead>- Parameters:
e- name of the event heard
-
dispose
Description copied from class:AbstractTableActionDispose of the BeanTableDataModel ( if present ), which removes the DataModel property change listeners from Beans.- Overrides:
disposein classAbstractTableAction<SignalHead>
-
getClassName
- Specified by:
getClassNamein classAbstractTableAction<SignalHead>
-
getClassDescription
- Overrides:
getClassDescriptionin classAbstractTableAction<SignalHead>
-