jmri.jmrit.beantable.signalmast
Class SignalMastTableDataModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by jmri.jmrit.beantable.BeanTableDataModel
          extended by jmri.jmrit.beantable.signalmast.SignalMastTableDataModel
All Implemented Interfaces:
PropertyChangeListener, Serializable, EventListener, TableModel

public class SignalMastTableDataModel
extends BeanTableDataModel

Data model for a SignalMastTable

Author:
Bob Jacobsen Copyright (C) 2003, 2009
See Also:
Serialized Form

Field Summary
static int EDITLOGICCOL
           
static int HELDCOL
           
static int LITCOL
           
static ResourceBundle rb
           
 
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
SignalMastTableDataModel()
           
 
Method Summary
protected  void clickOn(NamedBean t)
           
protected  String getBeanType()
           
protected  NamedBean getBySystemName(String name)
           
protected  NamedBean getByUserName(String name)
           
 String getClassDescription()
           
protected  String getClassName()
           
 Class<?> getColumnClass(int col)
           
 int getColumnCount()
           
 String getColumnName(int col)
           
protected  Manager getManager()
           
protected  String getMasterClassName()
           
 int getPreferredWidth(int col)
           
 String getValue(String name)
           
 Object getValueAt(int row, int col)
           
 boolean isCellEditable(int row, int col)
           
protected  JTable makeJTable(TableSorter srtr)
           
protected  boolean matchPropertyName(PropertyChangeEvent e)
          Is this property event announcing a change this table should display?
 void setValueAt(Object value, int row, int col)
           
 
Methods inherited from class jmri.jmrit.beantable.BeanTableDataModel
configDeleteColumn, configureButton, configureTable, configValueColumn, deleteBean, dispose, getDisplayDeleteMsg, getRowCount, 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
 

Field Detail

EDITLOGICCOL

public static final int EDITLOGICCOL
See Also:
Constant Field Values

LITCOL

public static final int LITCOL
See Also:
Constant Field Values

HELDCOL

public static final int HELDCOL
See Also:
Constant Field Values

rb

public static final ResourceBundle rb
Constructor Detail

SignalMastTableDataModel

public SignalMastTableDataModel()
Method Detail

getValue

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

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

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

getManager

protected Manager getManager()
Specified by:
getManager in class BeanTableDataModel

getBySystemName

protected NamedBean getBySystemName(String name)
Specified by:
getBySystemName in class BeanTableDataModel

getByUserName

protected NamedBean getByUserName(String name)
Specified by:
getByUserName in class BeanTableDataModel

getMasterClassName

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

clickOn

protected void clickOn(NamedBean t)
Specified by:
clickOn 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

makeJTable

protected JTable makeJTable(TableSorter srtr)
Overrides:
makeJTable in class BeanTableDataModel

getBeanType

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

matchPropertyName

protected boolean matchPropertyName(PropertyChangeEvent e)
Description copied from class: BeanTableDataModel
Is this property event announcing a change this table should display?

Note that events will come both from the NamedBeans and also from the manager

Overrides:
matchPropertyName in class BeanTableDataModel

getClassName

protected String getClassName()

getClassDescription

public String getClassDescription()


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