jmri.jmrit.beantable
Class AudioTableAction.AudioTableDataModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by jmri.jmrit.beantable.BeanTableDataModel
          extended by jmri.jmrit.beantable.AudioTableAction.AudioTableDataModel
All Implemented Interfaces:
PropertyChangeListener, Serializable, EventListener, TableModel
Direct Known Subclasses:
AudioTableAction.AudioBufferTableDataModel, AudioTableAction.AudioListenerTableDataModel, AudioTableAction.AudioSourceTableDataModel
Enclosing class:
AudioTableAction

public abstract class AudioTableAction.AudioTableDataModel
extends BeanTableDataModel
implements PropertyChangeListener

Define abstract AudioTableDataModel

See Also:
Serialized Form

Field Summary
static int EDITCOL
           
 
Fields inherited from class jmri.jmrit.beantable.BeanTableDataModel
COMMENTCOL, DELETECOL, NUMCOLUMN, SYSNAMECOL, sysNameList, USERNAMECOL, VALUECOL
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
AudioTableAction.AudioTableDataModel(char subType)
           
 
Method Summary
protected  void clickOn(NamedBean t)
           
protected  void configEditColumn(JTable table)
           
protected  void configValueColumn(JTable table)
           
protected  String getBeanType()
           
 Audio getBySystemName(String name)
           
 Audio getByUserName(String name)
           
 Class<?> getColumnClass(int col)
           
 int getColumnCount()
           
 String getColumnName(int col)
           
 AudioManager getManager()
           
protected  String getMasterClassName()
           
 int getPreferredWidth(int col)
           
 String getValue(String systemName)
           
 Object getValueAt(int row, int col)
           
 boolean isCellEditable(int row, int col)
           
 void setValueAt(Object value, int row, int col)
           
protected  void updateSpecificNameList(char subType)
          Update the NamedBean list for the specific sub-type
 
Methods inherited from class jmri.jmrit.beantable.BeanTableDataModel
configDeleteColumn, configureButton, configureTable, deleteBean, dispose, getDisplayDeleteMsg, getRowCount, makeJTable, matchPropertyName, moveBean, printColumns, printTable, propertyChange, removeName, renameBean, setColumnToHoldButton, setDisplayDeleteMsg, setManager, showPopup, updateNameList
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 

Field Detail

EDITCOL

public static final int EDITCOL
See Also:
Constant Field Values
Constructor Detail

AudioTableAction.AudioTableDataModel

public AudioTableAction.AudioTableDataModel(char subType)
Method Detail

getManager

public AudioManager getManager()
Specified by:
getManager in class BeanTableDataModel

getMasterClassName

protected String getMasterClassName()
Specified by:
getMasterClassName in class BeanTableDataModel

getBySystemName

public Audio getBySystemName(String name)
Specified by:
getBySystemName in class BeanTableDataModel

getByUserName

public Audio getByUserName(String name)
Specified by:
getByUserName in class BeanTableDataModel

updateSpecificNameList

protected void updateSpecificNameList(char subType)
Update the NamedBean list for the specific sub-type

Parameters:
subType - Audio sub-type to update

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface TableModel
Overrides:
getColumnCount in class BeanTableDataModel

getColumnName

public String getColumnName(int col)
Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class BeanTableDataModel

getColumnClass

public Class<?> getColumnClass(int col)
Specified by:
getColumnClass in interface TableModel
Overrides:
getColumnClass in class BeanTableDataModel

getValue

public String getValue(String systemName)
Specified by:
getValue in class BeanTableDataModel

getValueAt

public Object getValueAt(int row,
                         int col)
Specified by:
getValueAt in interface TableModel
Overrides:
getValueAt in class BeanTableDataModel

setValueAt

public void setValueAt(Object value,
                       int row,
                       int col)
Specified by:
setValueAt in interface TableModel
Overrides:
setValueAt in class BeanTableDataModel

getPreferredWidth

public int getPreferredWidth(int col)
Overrides:
getPreferredWidth in class BeanTableDataModel

isCellEditable

public boolean isCellEditable(int row,
                              int col)
Specified by:
isCellEditable in interface TableModel
Overrides:
isCellEditable in class BeanTableDataModel

clickOn

protected void clickOn(NamedBean t)
Specified by:
clickOn in class BeanTableDataModel

configValueColumn

protected void configValueColumn(JTable table)
Overrides:
configValueColumn in class BeanTableDataModel

configEditColumn

protected void configEditColumn(JTable table)

getBeanType

protected String getBeanType()
Specified by:
getBeanType in class BeanTableDataModel


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