Package jmri.jmrit.beantable
Class AudioTableAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.jmrit.beantable.AbstractTableAction<Audio>
-
- jmri.jmrit.beantable.AudioTableAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action
public class AudioTableAction extends AbstractTableAction<Audio>
Swing action to create and register an AudioTable GUI.
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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classAudioTableAction.AudioBufferTableDataModelSpecific AudioTableDataModel for Audio Buffer sub-typeclassAudioTableAction.AudioListenerTableDataModelSpecific AudioTableDataModel for Audio Listener sub-typeclassAudioTableAction.AudioSourceTableDataModelSpecific AudioTableDataModel for Audio Source sub-typeclassAudioTableAction.AudioTableDataModelDefine abstract AudioTableDataModel-
Nested classes/interfaces inherited from class jmri.jmrit.beantable.AbstractTableAction
AbstractTableAction.TableItem<E extends NamedBean>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) AudioTableFrameatf(package private) AudioTablePanelatp(package private) AudioBufferFramebufferFrame(package private) AudioTableAction.AudioTableDataModelbuffers(package private) AudioListenerFramelistenerFrame(package private) AudioTableAction.AudioTableDataModellisteners(package private) AudioSourceFramesourceFrame(package private) AudioTableAction.AudioTableDataModelsources-
Fields inherited from class jmri.jmrit.beantable.AbstractTableAction
f, includeAddButton, m
-
-
Constructor Summary
Constructors Constructor Description AudioTableAction()Default constructorAudioTableAction(java.lang.String actionName)Create an action with a specific title.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)(package private) voidaddBufferPressed(java.awt.event.ActionEvent e)protected voidaddPressed(java.awt.event.ActionEvent e)(package private) voidaddSourcePressed(java.awt.event.ActionEvent e)voidaddToFrame(BeanTableFrame<Audio> f)Allow subclasses to add to the frame without having to actually subclass the BeanTableDataFrame.protected voidcreateModel()Create the JTable DataModels, along with the changes for the specific case of Audio objectsprotected voideditAudio(Audio a)java.lang.StringgetClassDescription()protected java.lang.StringgetClassName()javax.swing.JPanelgetPanel()protected java.lang.StringhelpTarget()Specify the JavaHelp target for this specific panel.voidsetMenuBar(BeanTableFrame<Audio> f)Allow subclasses to alter the frame's Menubar without having to actually subclass the BeanTableDataFrame.voidsetMessagePreferencesDetails()protected 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, setManager
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
sourceFrame
AudioSourceFrame sourceFrame
-
bufferFrame
AudioBufferFrame bufferFrame
-
listenerFrame
AudioListenerFrame listenerFrame
-
atf
AudioTableFrame atf
-
atp
AudioTablePanel atp
-
-
Constructor Detail
-
AudioTableAction
public AudioTableAction(java.lang.String actionName)
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 Detail
-
addToFrame
public void addToFrame(@Nonnull BeanTableFrame<Audio> f)
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
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener- Overrides:
actionPerformedin classAbstractTableAction<Audio>
-
createModel
protected void createModel()
Create the JTable DataModels, along with the changes for the specific case of Audio objects- Specified by:
createModelin classAbstractTableAction<Audio>
-
getPanel
public javax.swing.JPanel getPanel()
- Overrides:
getPanelin classAbstractTableAction<Audio>
-
setTitle
protected void setTitle()
Description copied from class:AbstractTableActionInclude the correct title.- Specified by:
setTitlein classAbstractTableAction<Audio>
-
helpTarget
protected java.lang.String 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
protected void addPressed(java.awt.event.ActionEvent e)
- Specified by:
addPressedin classAbstractTableAction<Audio>
-
addSourcePressed
void addSourcePressed(java.awt.event.ActionEvent e)
-
addBufferPressed
void addBufferPressed(java.awt.event.ActionEvent e)
-
setMenuBar
public void setMenuBar(BeanTableFrame<Audio> f)
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
-
setMessagePreferencesDetails
public void setMessagePreferencesDetails()
- Overrides:
setMessagePreferencesDetailsin classAbstractTableAction<Audio>
-
getClassDescription
public java.lang.String getClassDescription()
- Overrides:
getClassDescriptionin classAbstractTableAction<Audio>
-
getClassName
protected java.lang.String getClassName()
- Specified by:
getClassNamein classAbstractTableAction<Audio>
-
-