jmri.jmrix.openlcb.swing.tie
Class ProducerTableModel

Show UML class diagram
java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by jmri.jmrix.openlcb.swing.tie.ProducerTableModel
All Implemented Interfaces:
Serializable, TableModel

public class ProducerTableModel
extends AbstractTableModel

Table Model for access to producer info

Since:
2.3.7
See Also:
Serialized Form

Field Summary
(package private)  String[] columnName
           
(package private)  String[][] dummy
           
(package private) static org.slf4j.Logger log
           
static int NODE_COLUMN
           
static int NUMBER_COLUMN
           
(package private) static ResourceBundle rb
           
static int USERNAME_COLUMN
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
ProducerTableModel()
           
 
Method Summary
 Class<?> getColumnClass(int c)
           
 int getColumnCount()
           
 String getColumnName(int c)
           
 int getRowCount()
           
 Object getValueAt(int r, int c)
           
 boolean isCellEditable(int r, int c)
           
protected  void printColumns(HardcopyWriter w, String[] columnStrings, int[] columnSize)
           
 void printTable(HardcopyWriter w, int[] colWidth)
          Method to print or print preview the assignment table.
 void setValueAt(Object type, int r, int c)
           
 
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

rb

static ResourceBundle rb

USERNAME_COLUMN

public static final int USERNAME_COLUMN
See Also:
Constant Field Values

NODE_COLUMN

public static final int NODE_COLUMN
See Also:
Constant Field Values

NUMBER_COLUMN

public static final int NUMBER_COLUMN
See Also:
Constant Field Values

columnName

String[] columnName

dummy

String[][] dummy

log

static org.slf4j.Logger log
Constructor Detail

ProducerTableModel

public ProducerTableModel()
Method Detail

getColumnName

public String getColumnName(int c)
Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class AbstractTableModel

getColumnClass

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

isCellEditable

public boolean isCellEditable(int r,
                              int c)
Specified by:
isCellEditable in interface TableModel
Overrides:
isCellEditable in class AbstractTableModel

getColumnCount

public int getColumnCount()

getRowCount

public int getRowCount()

getValueAt

public Object getValueAt(int r,
                         int c)

setValueAt

public void setValueAt(Object type,
                       int r,
                       int c)
Specified by:
setValueAt in interface TableModel
Overrides:
setValueAt in class AbstractTableModel

printTable

public void printTable(HardcopyWriter w,
                       int[] colWidth)
Method to print or print preview the assignment table. Printed in proportionately sized columns across the page with headings and vertical lines between each column. Data is word wrapped within a column. Can only handle 4 columns of data as strings. Adapted from routines in BeanTableDataModel.java by Bob Jacobsen and Dennis Miller


printColumns

protected void printColumns(HardcopyWriter w,
                            String[] columnStrings,
                            int[] columnSize)


Copyright © 1997-2013 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