Package jmri.jmrit.beantable
Class AudioTableAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
Swing action to create and register an AudioTable GUI.
This file is part of JMRI.
This file is part of JMRI.
JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.
JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassSpecific AudioTableDataModel for Audio Buffer sub-typeclassSpecific AudioTableDataModel for Audio Listener sub-typeclassSpecific AudioTableDataModel for Audio Source sub-typeclassDefine abstract AudioTableDataModelNested classes/interfaces inherited from class jmri.jmrit.beantable.AbstractTableAction
AbstractTableAction.TableItem<E extends NamedBean> -
Field Summary
FieldsModifier and TypeFieldDescription(package private) AudioTableFrame(package private) AudioTablePanel(package private) AudioBufferFrame(package private) AudioTableAction.AudioTableDataModel(package private) AudioListenerFrame(package private) AudioTableAction.AudioTableDataModel(package private) AudioSourceFrame(package private) AudioTableAction.AudioTableDataModelFields 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
ConstructorsConstructorDescriptionDefault constructorAudioTableAction(String actionName) Create an action with a specific title. -
Method Summary
Modifier and TypeMethodDescriptionvoid(package private) voidprotected void(package private) voidvoidAllow subclasses to add to the frame without having to actually subclass the BeanTableDataFrame.protected voidCreate the JTable DataModels, along with the changes for the specific case of Audio objectsprotected voidprotected StringgetPanel()protected StringSpecify the JavaHelp target for this specific panel.voidAllow subclasses to alter the frame's Menubar without having to actually subclass the BeanTableDataFrame.voidprotected voidsetTitle()Include the correct title.Methods inherited from class jmri.jmrit.beantable.AbstractTableAction
addBottomButtons, addToFrame, addToPanel, columnsVisibleUpdated, configureManagerComboBox, configureTable, displayHwError, dispose, getDataModel, getFrame, getManager, getTableDataModel, includeAddButton, nextName, print, removePrefixBoxListener, setFrame, setManagerMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
listeners
-
buffers
-
sources
-
sourceFrame
-
bufferFrame
-
listenerFrame
-
atf
-
atp
-
-
Constructor Details
-
AudioTableAction
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
-
AudioTableAction
public AudioTableAction()Default constructor
-
-
Method Details
-
addToFrame
Description copied from class:AbstractTableActionAllow subclasses to add to the frame without having to actually subclass the BeanTableDataFrame.- Overrides:
addToFramein classAbstractTableAction<Audio>- Parameters:
f- the Frame to add to
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener- Overrides:
actionPerformedin classAbstractTableAction<Audio>
-
createModel
Create the JTable DataModels, along with the changes for the specific case of Audio objects- Specified by:
createModelin classAbstractTableAction<Audio>
-
getPanel
- Overrides:
getPanelin classAbstractTableAction<Audio>
-
setTitle
Description copied from class:AbstractTableActionInclude the correct title.- Specified by:
setTitlein classAbstractTableAction<Audio>
-
helpTarget
Description copied from class:AbstractTableActionSpecify the JavaHelp target for this specific panel.- Overrides:
helpTargetin classAbstractTableAction<Audio>- Returns:
- a fixed default string "index" pointing to to highest level in JMRI Help
-
addPressed
- Specified by:
addPressedin classAbstractTableAction<Audio>
-
addSourcePressed
-
addBufferPressed
-
setMenuBar
Description copied from class:AbstractTableActionAllow subclasses to alter the frame's Menubar without having to actually subclass the BeanTableDataFrame.- Overrides:
setMenuBarin classAbstractTableAction<Audio>- Parameters:
f- the Frame to attach the menubar to
-
editAudio
-
setMessagePreferencesDetails
- Overrides:
setMessagePreferencesDetailsin classAbstractTableAction<Audio>
-
getClassDescription
- Overrides:
getClassDescriptionin classAbstractTableAction<Audio>
-
getClassName
- Specified by:
getClassNamein classAbstractTableAction<Audio>
-