Package jmri.jmrit.beantable
Class AbstractTableTabAction<E extends NamedBean>
java.lang.Object
javax.swing.AbstractAction
jmri.jmrit.beantable.AbstractTableAction<E>
jmri.jmrit.beantable.AbstractTableTabAction<E>
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
- Direct Known Subclasses:
EcosLocoTableTabAction,IdTagTableTabAction,LightTableTabAction,ReporterTableTabAction,SensorTableTabAction,StringIOTableTabAction,TurnoutTableTabAction
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classNested classes/interfaces inherited from class jmri.jmrit.beantable.AbstractTableAction
AbstractTableAction.TableItem<E extends NamedBean> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JTabbedPaneprotected booleanprotected ArrayList<AbstractTableTabAction.TabbedTableItem<E>>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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidaddToBottomBox(JComponent c, String str) voidAllow subclasses to add to the frame without having to actually subclass the BeanTableDataFrame.protected voidCreate the JTable DataModel, along with the changes for the specific NamedBean type.voiddispose()Dispose of the BeanTableDataModel ( if present ), which removes the DataModel property change listeners from Beans.Get the relevant data model for the current table.Get the Bean Manager in use by the TableAction.protected abstract AbstractTableAction<E>getNewTableAction(String choice) getPanel()protected abstract StringSpecify the JavaHelp target for this specific panel.voidprint(JTable.PrintMode mode, MessageFormat headerFormat, MessageFormat footerFormat) Used with the Tabbed instances of table action, so that the print option is handled via that on the appropriate tab.voidAllow subclasses to alter the frame's Menubar without having to actually subclass the BeanTableDataFrame.protected voidsetTitle()Include the correct title.Methods inherited from class jmri.jmrit.beantable.AbstractTableAction
actionPerformed, addBottomButtons, addToFrame, addToPanel, columnsVisibleUpdated, configureManagerComboBox, configureTable, displayHwError, getClassDescription, getClassName, getFrame, getTableDataModel, includeAddButton, nextName, removePrefixBoxListener, setFrame, setManager, setMessagePreferencesDetailsMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
dataTabs
-
init
-
tabbedTableArray
-
-
Constructor Details
-
AbstractTableTabAction
-
-
Method Details
-
createModel
Description copied from class:AbstractTableActionCreate the JTable DataModel, along with the changes for the specific NamedBean type.- Specified by:
createModelin classAbstractTableAction<E extends NamedBean>
-
getManager
Description copied from class:AbstractTableActionGet the Bean Manager in use by the TableAction.- Overrides:
getManagerin classAbstractTableAction<E extends NamedBean>- Returns:
- Bean Manager, could be Proxy or normal Manager, may be null.
-
getNewTableAction
-
getPanel
- Overrides:
getPanelin classAbstractTableAction<E extends NamedBean>
-
setTitle
Description copied from class:AbstractTableActionInclude the correct title.- Specified by:
setTitlein classAbstractTableAction<E extends NamedBean>
-
helpTarget
Description copied from class:AbstractTableActionSpecify the JavaHelp target for this specific panel.- Overrides:
helpTargetin classAbstractTableAction<E extends NamedBean>- Returns:
- a fixed default string "index" pointing to to highest level in JMRI Help
-
addPressed
- Specified by:
addPressedin classAbstractTableAction<E extends NamedBean>
-
addToFrame
Description copied from class:AbstractTableActionAllow subclasses to add to the frame without having to actually subclass the BeanTableDataFrame.- Overrides:
addToFramein classAbstractTableAction<E extends NamedBean>- Parameters:
f- the Frame to add to
-
setMenuBar
Description copied from class:AbstractTableActionAllow subclasses to alter the frame's Menubar without having to actually subclass the BeanTableDataFrame.- Overrides:
setMenuBarin classAbstractTableAction<E extends NamedBean>- Parameters:
f- the Frame to attach the menubar to
-
addToBottomBox
-
getDataModel
Description copied from class:AbstractTableActionGet the relevant data model for the current table.This is overridden in the tabbed-table classes to return their own local data model.
Unlike
AbstractTableAction.getTableDataModel(), this therefore doesn't attempt to (re)-create the model.- Overrides:
getDataModelin classAbstractTableAction<E extends NamedBean>
-
print
Description copied from class:AbstractTableActionUsed with the Tabbed instances of table action, so that the print option is handled via that on the appropriate tab.- Overrides:
printin classAbstractTableAction<E extends NamedBean>- Parameters:
mode- table print modeheaderFormat- messageFormat for headerfooterFormat- messageFormat for footer
-
dispose
Description copied from class:AbstractTableActionDispose of the BeanTableDataModel ( if present ), which removes the DataModel property change listeners from Beans.- Overrides:
disposein classAbstractTableAction<E extends NamedBean>
-