jmri.jmrit.beantable
Class AudioTableAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by jmri.jmrit.beantable.AbstractTableAction
          extended by jmri.jmrit.beantable.AudioTableAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public class AudioTableAction
extends AbstractTableAction

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.

Author:
Bob Jacobsen Copyright (C) 2003, Matthew Harris copyright (c) 2009
See Also:
Serialized Form

Nested Class Summary
 class AudioTableAction.AudioBufferTableDataModel
          Specific AudioTableDataModel for Audio Buffer sub-type
 class AudioTableAction.AudioListenerTableDataModel
          Specific AudioTableDataModel for Audio Listener sub-type
 class AudioTableAction.AudioSourceTableDataModel
          Specific AudioTableDataModel for Audio Source sub-type
 class AudioTableAction.AudioTableDataModel
          Define abstract AudioTableDataModel
 
Field Summary
 
Fields inherited from class jmri.jmrit.beantable.AbstractTableAction
f, m, rb, rbean
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields 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
AudioTableAction()
          Default constructor
AudioTableAction(String actionName)
          Create an action with a specific title.
 
Method Summary
 void actionPerformed(ActionEvent e)
           
protected  void addPressed(ActionEvent e)
           
 void addToFrame(BeanTableFrame f)
          Allow subclasses to add to the frame without have to actually subclass the BeanTableDataFrame
protected  void createModel()
          Create the JTable DataModels, along with the changes for the specific case of Audio objects
protected  void editAudio(Audio a)
           
 String getClassDescription()
           
protected  String getClassName()
           
 JPanel getPanel()
           
protected  String helpTarget()
          Specify the JavaHelp target for this specific panel
 void setMenuBar(BeanTableFrame f)
          Allow subclasses to add alter the frames Menubar without have to actually subclass the BeanTableDataFrame
protected  void setTitle()
          Include the correct title
 
Methods inherited from class jmri.jmrit.beantable.AbstractTableAction
addToPanel, dispose, getTableDataModel, makeJTable, print, setFrame, setManager, setMessagePreferencesDetails
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AudioTableAction

public AudioTableAction(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 -

AudioTableAction

public AudioTableAction()
Default constructor

Method Detail

addToFrame

public void addToFrame(BeanTableFrame f)
Description copied from class: AbstractTableAction
Allow subclasses to add to the frame without have to actually subclass the BeanTableDataFrame

Overrides:
addToFrame in class AbstractTableAction

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener
Overrides:
actionPerformed in class AbstractTableAction

createModel

protected void createModel()
Create the JTable DataModels, along with the changes for the specific case of Audio objects

Specified by:
createModel in class AbstractTableAction

getPanel

public JPanel getPanel()
Overrides:
getPanel in class AbstractTableAction

setTitle

protected void setTitle()
Description copied from class: AbstractTableAction
Include the correct title

Specified by:
setTitle in class AbstractTableAction

helpTarget

protected String helpTarget()
Description copied from class: AbstractTableAction
Specify the JavaHelp target for this specific panel

Overrides:
helpTarget in class AbstractTableAction

addPressed

protected void addPressed(ActionEvent e)
Specified by:
addPressed in class AbstractTableAction

setMenuBar

public void setMenuBar(BeanTableFrame f)
Description copied from class: AbstractTableAction
Allow subclasses to add alter the frames Menubar without have to actually subclass the BeanTableDataFrame

Overrides:
setMenuBar in class AbstractTableAction

editAudio

protected void editAudio(Audio a)

getClassDescription

public String getClassDescription()
Overrides:
getClassDescription in class AbstractTableAction

getClassName

protected String getClassName()
Specified by:
getClassName in class AbstractTableAction


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads