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 class
AudioTableAction.AudioBufferTableDataModel
Specific AudioTableDataModel for Audio Buffer sub-typeclass
AudioTableAction.AudioListenerTableDataModel
Specific AudioTableDataModel for Audio Listener sub-typeclass
AudioTableAction.AudioSourceTableDataModel
Specific AudioTableDataModel for Audio Source sub-typeclass
AudioTableAction.AudioTableDataModel
Define 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) AudioTableFrame
atf
(package private) AudioTablePanel
atp
(package private) AudioBufferFrame
bufferFrame
(package private) AudioTableAction.AudioTableDataModel
buffers
(package private) AudioListenerFrame
listenerFrame
(package private) AudioTableAction.AudioTableDataModel
listeners
(package private) AudioSourceFrame
sourceFrame
(package private) AudioTableAction.AudioTableDataModel
sources
-
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 void
actionPerformed(java.awt.event.ActionEvent e)
(package private) void
addBufferPressed(java.awt.event.ActionEvent e)
protected void
addPressed(java.awt.event.ActionEvent e)
(package private) void
addSourcePressed(java.awt.event.ActionEvent e)
void
addToFrame(BeanTableFrame<Audio> f)
Allow subclasses to add to the frame without having to actually subclass the BeanTableDataFrame.protected void
createModel()
Create the JTable DataModels, along with the changes for the specific case of Audio objectsprotected void
editAudio(Audio a)
java.lang.String
getClassDescription()
protected java.lang.String
getClassName()
javax.swing.JPanel
getPanel()
protected java.lang.String
helpTarget()
Specify the JavaHelp target for this specific panel.void
setMenuBar(BeanTableFrame<Audio> f)
Allow subclasses to alter the frame's Menubar without having to actually subclass the BeanTableDataFrame.void
setMessagePreferencesDetails()
protected void
setTitle()
Include the correct title.-
Methods inherited from class jmri.jmrit.beantable.AbstractTableAction
addBottomButtons, addToFrame, addToPanel, columnsVisibleUpdated, configureManagerComboBox, configureTable, displayHwError, dispose, 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:AbstractTableAction
Allow subclasses to add to the frame without having to actually subclass the BeanTableDataFrame.- Overrides:
addToFrame
in classAbstractTableAction<Audio>
- Parameters:
f
- the Frame to add to
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
- Overrides:
actionPerformed
in classAbstractTableAction<Audio>
-
createModel
protected void createModel()
Create the JTable DataModels, along with the changes for the specific case of Audio objects- Specified by:
createModel
in classAbstractTableAction<Audio>
-
getPanel
public javax.swing.JPanel getPanel()
- Overrides:
getPanel
in classAbstractTableAction<Audio>
-
setTitle
protected void setTitle()
Description copied from class:AbstractTableAction
Include the correct title.- Specified by:
setTitle
in classAbstractTableAction<Audio>
-
helpTarget
protected java.lang.String helpTarget()
Description copied from class:AbstractTableAction
Specify the JavaHelp target for this specific panel.- Overrides:
helpTarget
in 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:
addPressed
in 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:AbstractTableAction
Allow subclasses to alter the frame's Menubar without having to actually subclass the BeanTableDataFrame.- Overrides:
setMenuBar
in classAbstractTableAction<Audio>
- Parameters:
f
- the Frame to attach the menubar to
-
setMessagePreferencesDetails
public void setMessagePreferencesDetails()
- Overrides:
setMessagePreferencesDetails
in classAbstractTableAction<Audio>
-
getClassDescription
public java.lang.String getClassDescription()
- Overrides:
getClassDescription
in classAbstractTableAction<Audio>
-
getClassName
protected java.lang.String getClassName()
- Specified by:
getClassName
in classAbstractTableAction<Audio>
-
-